/* ============================================================
   认证证书查询页面
   与官网主色（#024196）保持一致
   ============================================================ */

.certq-section {
    background: #f2f6fb;
    padding: 46px 0 72px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.certq-container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

.certq-container *,
.certq-container *::before,
.certq-container *::after {
    box-sizing: border-box;
}

/* ---------- 查询卡片 ---------- */
.certq-card {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(2, 65, 150, .09);
    overflow: hidden;
}

.certq-card-head {
    padding: 26px 20px 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #024196 0%, #0b5cbb 100%);
}

.certq-card-head h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
}

.certq-card-head p {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    letter-spacing: .5px;
}

.certq-form {
    padding: 32px 64px 30px;
}

.certq-field {
    margin-bottom: 18px;
}

.certq-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2b3648;
}

.certq-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d7e0ed;
    border-radius: 6px;
    background: #fff;
    color: #1b2433;
    font-size: 15px;
    line-height: 46px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.certq-input::placeholder {
    color: #a4afc0;
}

.certq-input:focus {
    border-color: #024196;
    box-shadow: 0 0 0 3px rgba(2, 65, 150, .10);
}

.certq-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.certq-captcha .certq-input {
    flex: 1;
    min-width: 0;
}

.certq-captcha-img {
    display: block;
    width: 160px;
    height: 50px;
    border: 1px solid #d7e0ed;
    border-radius: 6px;
    cursor: pointer;
    background: #f7fbff;
}

.certq-submit {
    display: block;
    width: 180px;
    height: 48px;
    margin: 6px auto 0;
    border: 0;
    border-radius: 6px;
    background: #024196;
    color: #fff;
    font-size: 16px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.certq-submit:hover {
    background: #01306f;
    box-shadow: 0 6px 16px rgba(2, 65, 150, .25);
}

.certq-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.certq-tip {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
    color: #8a95a7;
}

.certq-msg {
    min-height: 20px;
    margin: 0 0 6px;
    color: #d93025;
    font-size: 13px;
    text-align: center;
}

.certq-msg.is-ok {
    color: #178a4c;
}

/* ---------- 查询结果 ---------- */
.certq-results {
    max-width: 1000px;
    margin: 34px auto 0;
}

.certq-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.certq-results-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #17233d;
}

.certq-results-head h2 span {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
    color: #7a8699;
}

.certq-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: #024196;
    font-size: 14px;
    cursor: pointer;
}

.certq-linkbtn:hover {
    color: #0b5cbb;
    text-decoration: underline;
}

.certq-item {
    position: relative;
    margin-bottom: 14px;
    padding: 20px 24px 16px;
    background: #fff;
    border: 1px solid #e2e9f3;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.certq-item:hover {
    border-color: #9fb9dd;
    box-shadow: 0 8px 24px rgba(2, 65, 150, .09);
    transform: translateY(-1px);
}

.certq-item-title {
    margin: 0 0 12px;
    padding-right: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #17233d;
    line-height: 1.5;
}

.certq-item-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 8px;
    font-size: 14px;
}

.certq-item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 40px;
    margin-bottom: 6px;
    font-size: 14px;
}

.certq-item-grid > div {
    flex: 1 1 320px;
    min-width: 0;
}

.certq-item .k {
    color: #7a8699;
}

.certq-item .v {
    color: #2b3648;
}

.certq-item-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #edf1f7;
    font-size: 13px;
}

.certq-item-foot .arrow {
    display: inline-block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin-left: auto;
    border: 0;
    vertical-align: baseline;
    color: #024196;
    white-space: nowrap;
}

.certq-item:hover .arrow {
    text-decoration: underline;
}

.certq-chip {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
}

.certq-chip-valid {
    background: #178a4c;
    color: #fff;
}

.certq-chip-invalid {
    background: #fdecea;
    color: #c0392b;
}

.certq-chip-cnas {
    background: #0b57a4;
    color: #fff;
}

.certq-chip-plain {
    background: #eef2f8;
    color: #5b6b82;
}

.certq-empty {
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed #cfd9e8;
    border-radius: 10px;
    text-align: center;
    color: #7a8699;
}

.certq-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #17233d;
}

.certq-empty p {
    margin: 0;
    font-size: 13px;
}

/* ---------- 证书详情 ---------- */
.certq-detail {
    max-width: 1000px;
    margin: 34px auto 0;
    background: #fff;
    border: 1px solid #e2e9f3;
    border-radius: 12px;
    overflow: hidden;
}

.certq-detail-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: #fbfcfe;
    border-bottom: 1px solid #edf1f7;
}

.certq-detail-bar-title {
    font-size: 16px;
    font-weight: 600;
    color: #17233d;
}

.certq-printbtn {
    padding: 7px 20px;
    border: 1px solid #024196;
    border-radius: 4px;
    background: #fff;
    color: #024196;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.certq-printbtn:hover {
    background: #024196;
    color: #fff;
}

.certq-sec {
    border-bottom: 1px solid #edf1f7;
}

.certq-sec:last-child {
    border-bottom: 0;
}

.certq-sec-title {
    padding: 11px 22px;
    background: #eef4fc;
    border-left: 4px solid #024196;
    color: #024196;
    font-size: 15px;
    font-weight: 600;
}

.certq-dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    padding: 8px 22px 14px;
}

.certq-row {
    display: flex;
    padding: 7px 0;
    border-bottom: 1px dashed #f0f3f8;
    font-size: 14px;
    line-height: 1.75;
}

.certq-row.full {
    grid-column: 1 / -1;
}

.certq-row dt {
    position: relative;
    flex: 0 0 auto;
    min-width: 120px;
    margin-right: 20px;
    padding-left: 12px;
    color: #7a8699;
}

.certq-row dt::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b9c6d8;
}

.certq-row dd {
    flex: 1;
    margin: 0;
    color: #17233d;
    word-break: break-all;
}

/* ---------- 其他查询 ---------- */
.certq-other {
    margin: 26px 0 0;
    text-align: center;
    font-size: 13px;
    color: #8a95a7;
}

.certq-other a {
    color: #024196;
}

.certq-other a:hover {
    text-decoration: underline;
}

/* ---------- 查询入口（两卡片） ---------- */
.certq-entry {
    padding: 44px 0 8px;
}

.certq-entry-grid {
    display: flex;
    gap: 26px;
}

.certq-entry-card {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 40px 26px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #024196 0%, #0b5cbb 100%);
    box-shadow: 0 14px 44px rgba(2, 65, 150, .14);
    transition: box-shadow .2s, transform .2s;
}

.certq-entry-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 38, 92, .32);
}

.certq-entry-card > * {
    position: relative;
    z-index: 1;
}

.certq-entry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    font-size: 32px;
}

.certq-entry-title {
    margin: 0 0 12px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
}

.certq-entry-desc {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    text-align: center;
}

.certq-entry-btn {
    display: inline-block;
    padding: 11px 38px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 3px;
    transition: background .2s, color .2s;
}

.certq-entry-card:hover {
    box-shadow: 0 18px 52px rgba(2, 65, 150, .24);
    transform: translateY(-2px);
}

.certq-entry-card:hover .certq-entry-btn {
    background: #fff;
    color: #024196;
}

.certq-card-head {
    position: relative;
}

.certq-entry-back {
    position: absolute;
    top: 16px;
    left: 18px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}

.certq-entry-back:hover {
    background: rgba(255, 255, 255, .18);
}

@media screen and (max-width: 768px) {
    .certq-entry-grid {
        flex-direction: column;
    }

    .certq-entry-card {
        min-height: 220px;
        padding: 30px 20px;
    }

    .certq-entry-title {
        font-size: 20px;
    }
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 768px) {
    .certq-section {
        padding: 26px 0 46px;
    }

    .certq-card-head {
        padding: 20px 16px;
    }

    .certq-card-head h1 {
        font-size: 21px;
        letter-spacing: 1px;
    }

    .certq-card-head p {
        font-size: 12px;
        line-height: 1.6;
    }

    .certq-form {
        padding: 22px 20px 24px;
    }

    .certq-submit {
        width: 100%;
        letter-spacing: 2px;
    }

    .certq-captcha {
        gap: 8px;
    }

    .certq-captcha-img {
        width: 128px;
        height: 40px;
    }

    .certq-item {
        padding: 16px 16px 12px;
    }

    .certq-item-title {
        font-size: 16px;
    }

    .certq-item-grid > div {
        flex: 1 1 100%;
    }

    .certq-dl {
        grid-template-columns: 1fr;
        padding: 6px 16px 12px;
    }

    .certq-row {
        display: block;
        padding: 6px 0 8px;
    }

    .certq-row dt {
        min-width: 0;
        margin-right: 0;
        margin-bottom: 2px;
    }

    .certq-row.full {
        grid-column: auto;
    }

    .certq-detail-bar {
        padding: 10px 14px;
    }
}

/* ---------- 打印 ---------- */
@media print {
    .heads,
    .gtiao,
    .foot,
    .banners,
    .certq-other,
    .certq-card,
    .certq-results,
    .certq-detail-bar,
    .certq-msg {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .certq-section {
        padding: 0 !important;
        background: #fff !important;
    }

    .certq-detail {
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .certq-sec-title {
        background: #eef4fc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .certq-row {
        page-break-inside: avoid;
    }
}
