/* ==========================================================================
   证书查询独立页样式（电脑端 + 移动端）
   ========================================================================== */
.cert-page {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f7fb;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

.cert-page,
.cert-page * {
    box-sizing: border-box;
}

.cert-page a {
    text-decoration: none;
}

/* 页头 */
.cert-head {
    background: #fff;
    padding: 18px 16px;
}

.cert-head .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1002px;
    margin: 0 auto;
}

.cert-head .brand svg {
    width: 58px;
    height: 58px;
    flex: none;
    display: block;
}

.cert-head .brand-text {
    margin-left: 14px;
}

.cert-head .brand-text strong {
    display: block;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.cert-head .brand-text em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 10px;
    color: #9aa6b4;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 几何渐变背景舞台 */
.cert-stage {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 54px 16px 60px;
    min-height: 480px;
    background: #16294f;
}

.cert-stage::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(108deg,
            #d5e26b 0%, #a9d886 9%, #74c7a8 19%, #49aac6 29%,
            #2f74b2 40%, #245198 52%, #1c3b78 68%, #142a5c 86%, #101f46 100%);
}

.cert-stage::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(63deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 220px),
        linear-gradient(-63deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 240px),
        linear-gradient(27deg, rgba(0, 20, 60, .18) 0 1px, transparent 1px 260px),
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .22), transparent 40%),
        radial-gradient(circle at 84% 76%, rgba(96, 196, 255, .30), transparent 46%);
}

.cert-beam {
    position: absolute;
    top: -45%;
    right: 6%;
    width: 26%;
    height: 190%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(150, 220, 255, .55), rgba(255, 255, 255, .2), transparent);
    filter: blur(16px);
    pointer-events: none;
}

/* 查询表单 */
.cert-form-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    color: #fff;
}

.cert-form-wrap h1 {
    margin: 0 0 26px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.cert-field {
    margin-bottom: 15px;
}

.cert-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #eaf3fd;
}

.cert-input {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    background: #fff;
    border-radius: 2px;
}

.cert-input svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-right: 8px;
    color: #a7b6c8;
}

.cert-input input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    font-family: inherit;
}

.cert-input input::placeholder {
    color: #b7c2cf;
}

.cert-captcha {
    display: flex;
    align-items: center;
}

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

.cert-captcha img {
    width: 118px;
    height: 44px;
    margin-left: 10px;
    display: block;
    background: #fff;
    border-radius: 2px;
    cursor: pointer;
}

.cert-submit {
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 3px;
    background: #e0273c;
    color: #fff;
    font-size: 15px;
    letter-spacing: 6px;
    font-family: inherit;
    cursor: pointer;
}

.cert-submit:hover {
    background: #cd2033;
}

.cert-error {
    margin-bottom: 14px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .94);
    color: #d0202f;
    font-size: 13px;
    line-height: 20px;
    border-radius: 2px;
}

.cert-back-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #dbe8f7;
}

.cert-back-link:hover {
    color: #fff;
}

/* 查询结果卡片 */
.cert-result-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 16px 44px rgba(6, 20, 48, .28);
    padding: 34px 40px 30px;
}

.cert-result-wrap h1 {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 400;
    color: #5d6875;
    letter-spacing: 2px;
    text-align: center;
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cert-table th,
.cert-table td {
    border: 1px solid #e3e8ef;
    padding: 12px 10px;
    font-size: 14px;
    line-height: 20px;
    word-break: break-all;
}

.cert-table th {
    background: #f7f9fc;
    color: #5d6875;
    font-weight: 400;
    text-align: center;
}

.cert-table td {
    color: #3d4a5a;
    text-align: left;
}

.cert-table .photo-cell {
    width: 128px;
    padding: 0;
    background: #f7f9fc;
    text-align: center;
    vertical-align: middle;
}

.cert-table .photo-cell img {
    width: 118px;
    height: 150px;
    margin: 5px auto;
    display: block;
    object-fit: cover;
    border: 1px solid #dbe4ee;
}

.cert-photo-top {
    display: none;
    width: 110px;
    height: 142px;
    margin: 0 auto 16px;
    border: 1px solid #dbe4ee;
    background: #f2f6fb;
    overflow: hidden;
}

.cert-photo-top img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cert-result-actions {
    margin-top: 24px;
    text-align: center;
}

.cert-result-actions .btn-home {
    display: inline-block;
    min-width: 200px;
    height: 42px;
    line-height: 42px;
    padding: 0 26px;
    background: #e0273c;
    color: #fff;
    font-size: 14px;
    border-radius: 3px;
}

.cert-result-actions .btn-home:hover {
    background: #cd2033;
}

.cert-result-actions .btn-again {
    margin-left: 18px;
    font-size: 13px;
    color: #7b8a9c;
}

.cert-result-actions .btn-again:hover {
    color: #14539a;
}

.cert-result-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: #9aa7b5;
}

/* 页脚 */
.cert-foot {
    padding: 16px 16px 22px;
    background: #f4f7fb;
    text-align: center;
    font-size: 12px;
    line-height: 22px;
    color: #93a1b1;
}

.cert-foot a {
    color: #93a1b1;
}

/* 移动端 */
@media screen and (max-width: 640px) {
    .cert-head {
        padding: 12px 14px;
    }

    .cert-head .brand svg {
        width: 38px;
        height: 38px;
    }

    .cert-head .brand-text {
        margin-left: 9px;
    }

    .cert-head .brand-text strong {
        font-size: 18px;
        letter-spacing: 0;
    }

    .cert-head .brand-text em {
        display: none;
    }

    .cert-stage {
        min-height: 420px;
        padding: 34px 14px 40px;
    }

    .cert-beam {
        width: 60%;
        right: -12%;
    }

    .cert-form-wrap {
        max-width: none;
    }

    .cert-form-wrap h1 {
        font-size: 20px;
        letter-spacing: 2px;
        margin-bottom: 22px;
    }

    .cert-captcha img {
        width: 100px;
        height: 42px;
        margin-left: 8px;
    }

    .cert-submit {
        height: 44px;
        letter-spacing: 4px;
    }

    .cert-result-wrap {
        max-width: none;
        padding: 20px 14px 22px;
    }

    .cert-result-wrap h1 {
        font-size: 19px;
        letter-spacing: 1px;
        margin-bottom: 18px;
    }

    .cert-photo-top {
        display: block;
    }

    .cert-table .photo-cell {
        display: none;
    }

    .cert-table {
        table-layout: auto;
    }

    .cert-table th,
    .cert-table td {
        font-size: 12px;
        padding: 9px 6px;
        word-break: break-word;
    }

    .cert-table th {
        width: auto;
        white-space: nowrap;
    }

    .cert-result-actions .btn-home {
        min-width: 0;
        width: 100%;
        display: block;
    }

    .cert-result-actions .btn-again {
        display: block;
        margin: 12px 0 0;
    }

    .cert-foot {
        font-size: 11px;
        line-height: 20px;
    }
}
