/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    color: #666;
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    overflow-x: auto;
    min-width: 1200px;
    /* 短内容时 footer 贴视口底；内容超出后整页滚动，footer 随内容到页面外 */
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

ul, li {
    list-style: none;
}

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

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

a:hover, a:active, a:focus {
    text-decoration: none;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.clearfix:after {
    content: '';
    display: block;
    height: 0;
    clear: both;
    font-size: 0;
    visibility: hidden;
}

.clearfix {
    *zoom: 1;
}

:root {
    --primary: #466BB1;
    --text: #333;
    --muted: #999;
    --body: #666;
    --footer-bg: #242424;
    --search-bg: #F5F6F8;
    --light-bg: #F5F5F5;
    --border: #DDD;
}

.wd1200 {
    width: 1200px;
    margin: 0 auto;
}

/* ===== 头部 ===== */
.header {
    width: 100%;
    height: 96px;
    background: #fff;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.header .wd1200 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

.header .logo {
    display: flex;
    align-items: center;
}

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

.header .logo .logo-full {
    height: 54px;
    width: auto;
    max-height: 96px;
}

.header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header .login-entry-wrap {
    position: relative;
    flex-shrink: 0;
}

.header .login-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 10px;
}

.header .login-entry img {
    width: 40px;
    height: 40px;
}

.header .login-name {
    display: none;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.header .login-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e6ebf2;
    box-shadow: 0 6px 18px rgba(15, 35, 70, 0.12);
    z-index: 100;
    padding: 6px 0;
}

.header .login-dropdown[hidden] {
    display: none !important;
}

.header .login-dropdown-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.header .login-dropdown-item:hover {
    background: #f5f8fc;
    color: var(--primary);
}

/* ===== 通用标题 ===== */
.common-title {
    text-align: left;
}

.common-title span.subtitle {
    background: url('/certificate/pc/images/title.png') no-repeat center center;
    background-size: 169px 80px;
    width: 169px;
    height: 80px;
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    line-height: 80px;
}

/* ===== 快捷服务 ===== */
/* 与通知公告统一：各模块上下间距一致 */
.service-express {
    padding: 40px 0 0;
}

.content-wrap > .service-express:last-child {
    padding-bottom: 40px;
}

.service-express .wd1200 {
    display: flex;
    flex-direction: column;
}

.service-list {
    width: 100%;
    margin-top: 10px;
    display: flex;
    gap: 20px;
}

.service-item {
    flex: 1;
    height: 140px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #F5F6F8;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

/* 按行同色：培训证书一行蓝，相关链接一行暖金 */
.service-item.tone-cert {
    background-color: #E8F1FB;
}

.service-item.tone-link {
    background-color: #FBF3E6;
}

.service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url('/certificate/pc/images/decor-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.service-item a {
    position: relative;
    z-index: 1;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(70, 107, 177, .2);
}

.service-item a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 32px;
}

.service-item .text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.service-item .icon-wrap {
    width: 102px;
    height: 102px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 28px;
}

.service-item.item-apply .icon-wrap {
    background-image: url('/certificate/pc/images/icon-cert-apply.png');
}

.service-item.item-verify .icon-wrap {
    background-image: url('/certificate/pc/images/icon-cert-verify.png');
}

.service-item .icon {
    width: 48px;
    height: 48px;
}

.service-item .service-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.service-item .service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 6px;
}

.service-item:hover .service-title {
    color: var(--primary);
}

.service-item:hover .service-desc {
    color: var(--primary);
}

/* ===== 内容区背景容器 ===== */
.content-wrap,
.query-page-wrap {
    flex: 1 0 auto;
    width: 100%;
}

.content-wrap {
    background: url(/certificate/pc/images/bg1.png) no-repeat center center;
    background-size: cover;
}

/* ===== 新闻中心 ===== */
.news {
    padding: 40px 0 0;
}

.news .news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news .news-head .left {
    display: flex;
    align-items: center;
}

.news .news-head .left .subtitle {
    background: url('/certificate/pc/images/title.png') no-repeat center center;
    background-size: 169px 80px;
    width: 180px;
    height: 80px;
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    line-height: 80px;
}
.service-express .subtitle {
    background: url('/certificate/pc/images/title.png') no-repeat center center;
    background-size: 169px 80px;
    width: 180px;
    height: 80px;
    display: inline-block;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    line-height: 80px;
}
.news .contmain {
    padding-top: 10px;
}

.news .contmain_r {
    width: 100%;
    overflow: hidden;
}

.contmain_r .news-list {
    width: 100%;
    padding-top: 0;
}

.contmain_r .news-list li {
    width: 100%;
    height: 40px;
    font-size: 17px;
    font-weight: 500;
    color: #333;
    line-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contmain_r .news-list li a,
.contmain_r .news-list li .news-title {
    color: #333;
    font-size: 17px;
}

.contmain_r .news-list li a {
    cursor: pointer;
}

.contmain_r .news-list li .news-title {
    cursor: default;
}

.contmain_r .news-list li a img,
.contmain_r .news-list li .news-title img {
    width: 8px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    padding-bottom: 3px;
}

.contmain_r .news-list li a:hover {
    color: var(--primary);
}

/* ===== 页脚 ===== */
.footer {
    min-width: 1200px;
    height: 160px;
    background: var(--footer-bg);
    flex-shrink: 0;
    margin-top: auto;
}

.footer .footerbox {
    width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p.top {
    padding-top: 48px;
}

.footer p {
    font-size: 14px;
    color: #999;
    width: 100%;
    text-align: center;
}

.footer p.bot {
    color: #666;
    padding-top: 20px;
}

.footer p a {
    color: #fff;
}

.footer p.bot a {
    color: #666666;
}

.footer p img {
    height: 16px;
    padding-right: 3px;
}

.footer p span {
    margin-left: 20px;
}

.footer p span:first-child {
    margin-left: 0;
}

/* ===== 登录弹窗 ===== */
.login-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-mask.show {
    display: flex;
}

.login-dialog {
    width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 40px 32px;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
    animation: dlgIn .25s ease;
}

@keyframes dlgIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-dialog .close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    background: #f5f5f5;
}

.login-dialog .close-btn:hover {
    background: #eee;
    color: #666;
}

.login-dialog .dlg-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 28px;
}

.login-dialog .form-item {
    margin-bottom: 20px;
}

.login-dialog .form-item label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.login-dialog .form-item input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color .2s ease;
}

.login-dialog .form-item input:focus {
    border-color: var(--primary);
    outline: none;
}

.login-dialog .form-item input::placeholder {
    color: #bbb;
}

.login-dialog .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.login-dialog .form-row .form-item {
    flex: 1;
    margin-bottom: 0;
}

.login-dialog .code-btn {
    width: 120px;
    height: 44px;
    flex-shrink: 0;
    align-self: flex-end;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

.login-dialog .code-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.login-dialog .code-btn:disabled {
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.login-dialog .submit-btn {
    width: 100%;
    height: 46px;
    margin-top: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background .25s ease;
}

.login-dialog .submit-btn:hover {
    background: #3a5a9c;
}

/* ===== 全局 Tips（3s 自动消失） ===== */
.global-tip {
    position: fixed;
    left: 50%;
    top: 28px;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    max-width: 520px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
    opacity: 0;
    z-index: 10001;
    pointer-events: none;
    transition: all .25s ease;
}

.global-tip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.global-tip-info {
    background: rgba(51, 51, 51, .92);
}

.global-tip-success {
    background: rgba(82, 196, 26, .95);
}

.global-tip-warning {
    background: rgba(250, 173, 20, .95);
}

.global-tip-error {
    background: rgba(255, 77, 79, .95);
}
