html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh - 61px);
}

#mainbody > .container > .text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody > .container > .text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody > .container > .text-center > a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody > .container > .text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody > .container > .text-center > h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

/* ===== examination page styles ===== */
.location-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0 20px;
}
.loc-left {
    font-size: 14px;
    color: #333;
}
.loc-left i {
    color: #c9302c;
    margin-right: 5px;
}
.loc-right form {
    display: flex;
    align-items: center;
}
.search-input {
    width: 240px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    margin-right: 10px;
}
.search-input:focus { border-color: #c9302c; }
.btn-search {
    height: 36px;
    padding: 0 24px;
    background: #c9302c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}
.btn-search:hover { opacity: 0.85; }

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.header-left {
    font-size: 13px;
    color: #999;
}
.header-right {
    font-size: 13px;
    color: #999;
}

.list-body { background: #fff; }

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #f5f5f5;
}
.list-item:hover { background: #fafafa; }
.list-item:last-child { border-bottom: none; }

.item-left {
    flex: 1;
    min-width: 0;
}
.item-title {
    font-size: 16px;
    font-weight: normal;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
}
.item-meta {
    font-size: 13px;
    color: #999;
}
.item-meta span {
    margin-right: 20px;
}
.meta-org { color: #666; }
.meta-time i {
    margin-right: 5px;
    color: #ccc;
    font-size: 6px;
    vertical-align: middle;
}

.item-right {
    flex-shrink: 0;
    margin-left: 20px;
}
.btn-detail {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #c9302c;
    color: #c9302c;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}
.btn-detail:hover {
    background: #c9302c;
    color: #fff;
}

.empty-tip {
    text-align: center;
    padding: 50px 0;
    color: #ccc;
    font-size: 14px;
}

/* ===== lists page styles ===== */
.in {
    display: flex;
    align-items: stretch;
}

.in2 {
    align-items: stretch;
}
.slideBar {
    width: 240px;
    flex-shrink: 0;
    margin-right: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}
.slideBar .content { padding: 10px 0; }
.second_nav dl { margin: 0; padding: 0; }
.second_nav dt {
    position: relative;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.second_nav dt::after {
    content: '\f105';
    font-family: FontAwesome;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 13px;
}
.second_nav dt:hover { color: #c9302c; }
.second_nav dt.on { color: #c9302c; font-weight: bold; }
.second_nav dt a { text-decoration: none; color: inherit; display: block; }

.second_nav .item {
    display: none;
    background: #fafafa;
    padding: 8px 0;
}
.second_nav dt.on + .item { display: block; }

.second_nav dd {
    padding: 6px 20px 6px 32px;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}
.second_nav dd::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border: 1px solid #bbb;
    border-radius: 50%;
}
.second_nav dd a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
}
.second_nav dd a:hover,
.second_nav dd a.on { color: #c9302c; }

.main {
    flex: 1;
    min-width: 0;
    min-height: 400px;
}

.location-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px 4px 0 0;
}
.loc-left {
    font-size: 14px;
    color: #333;
}
.loc-left i {
    color: #c9302c;
    margin-right: 5px;
}
.loc-right form {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}
.search-input {
    width: 200px;
    height: 32px;
    padding: 0 12px;
    border: none;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    color: #666;
}
.search-input::placeholder { color: #bbb; }
.btn-search-icon {
    width: 36px;
    height: 32px;
    border: none;
    background: #fff;
    cursor: pointer;
    color: #aaa;
    font-size: 13px;
    border-left: 1px solid #eee;
}
.btn-search-icon:hover { color: #c9302c; }

.list-content {
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0 24px;
}

.list-item {
    border-bottom: 1px solid #f2f2f2;
}
.list-item:last-child { border-bottom: none; }

.item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.item-link:hover .item-title { color: #c9302c; }

.item-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.item-date {
    flex-shrink: 0;
    min-width: 85px;
    text-align: right;
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.article-box .hd {
    padding: 20px 0 15px;
    border-bottom: 1px solid #eee;
}
.article-box .title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
}
.article-box .bd {
    padding: 25px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.empty-tip {
    text-align: center;
    padding: 80px 0;
    color: #ccc;
    font-size: 14px;
}

.pagination.page {
    padding: 25px 0 35px;
    text-align: center;
}

/* ===== exam_detail page styles ===== */
.wsbmxq2 .content .hd {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #c9302c;
    padding: 30px 0 20px;
    line-height: 1.6;
}

.position-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    table-layout: fixed;
}

.position-table thead th {
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: normal;
    padding: 12px 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
} 

.position-table tbody td {
    border: 1px solid #e0e0e0;
    padding: 16px 10px;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.position-table .col-name { width: 150px; }
.position-table .col-count { width: 120px; }
.position-table .col-req { width: 250px; }
.position-table .col-remark { width: 220px; }
.position-table .col-time { width: 120px; }
.position-table .col-action { width: 80px; }

.td-name { text-align: center; }
.td-name .pos-name { font-size: 15px; font-weight: bold; color: #333; margin-bottom: 6px; }
.td-name .pos-code { font-size: 13px; color: #666; margin-bottom: 4px; }
.td-name .pos-company { font-size: 13px; color: #666; }
.td-count { text-align: center; }
.td-req { font-size: 13px; line-height: 1.8; }
.td-remark { font-size: 13px; }
.td-time { text-align: center; }
.td-time p { margin: 3px 0; font-size: 13px; }
.td-time .time-sep { color: #999; font-size: 12px; }
.td-action { text-align: center; }

.bm {
    display: inline-block;
    color: #c9302c;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
}
.bm:hover { opacity: 0.7; text-decoration: underline; }

/* 报名须知弹窗 */
#apply-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: none; }
.modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.modal-box {
    position: relative;
    width: 700px;
    max-width: 90%;
    max-height: 85vh;
    margin: 50px auto 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.modal-header {
    background: #c9302c;
    color: #fff;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: rgba(255,255,255,0.7);
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.95); color: #c9302c; }
.modal-body {
    padding: 24px 30px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.modal-body p { margin-bottom: 10px; }
.modal-footer {
    padding: 18px 24px 26px;
    text-align: center;
    border-top: 1px solid #eee;
}
.btn-agree {
    display: inline-block;
    background: #c9302c;
    color: #fff;
    font-size: 16px;
    padding: 10px 48px;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.3s;
}
.btn-agree:hover { opacity: 0.85; color: #fff; }

/* ===== detail page styles ===== */
.disArtilce .content .hd {
    text-align: center;
    padding: 30px 0 15px;
}

.disArtilce .content .hd .title {
    font-size: 22px;
    font-weight: bold;
    color: #c9302c;
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-all;
}

.disArtilce .content .hd .titBar {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.disArtilce .content .hd .titBar i {
    margin-right: 4px;
}

.disArtilce .content .bd {
    font-size: 15px;
    line-height: 2;
    color: #333;
    padding: 10px 0 40px;
}

.disArtilce .content .bd p,
.disArtilce .content .bd div {
    margin-bottom: 10px;
}

.disArtilce .content .back {
    text-align: center;
    padding: 20px 0 50px;
}

.disArtilce .content .back a {
    display: inline-block;
    background-color: #c9302c;
    color: #fff;
    padding: 10px 36px;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.disArtilce .content .back a:hover {
    background-color: #ac2925;
}
