/**
 * 会员证书查询页（member-certificate）专用样式
 * 含：通栏查询条、结果证书卡、未查询到空状态。仅本页引用，不影响其它页面。
 */

/* ===== 通栏主视觉查询（无左侧菜单） ===== */
.cert-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 56px 0 100px;
}

.cert-query-panel {
    margin-bottom: 0;
}

/* 页面仅保留搜索框：无任何背景衬托 */
.cert-hero {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 92px 0 96px;
}

/* 胶囊式一体搜索条：页面主角 */
.cert-searchbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 14px 14px 36px;
    background: #fff;
    border: 2px solid #1976d2;
    border-radius: 999px;
    box-shadow: 0 22px 50px rgba(13, 71, 161, .18);
}

.cert-field {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 14px;
    border-radius: 14px;
    transition: background .2s;
}

.cert-field:focus-within {
    background: #f4f8ff;
}

.cert-label {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #0a326c;
}

.cert-input {
    width: 100%;
    height: 28px;
    padding: 0;
    font-size: 16px;
    color: #1f2d3d;
    background: transparent;
    border: 0;
    outline: none;
}

.cert-input::placeholder {
    color: #9aa8bd;
}

.cert-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 38px;
    background: #e3eaf3;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 58px;
    padding: 0 42px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(13, 71, 161, .35);
    transition: transform .2s, box-shadow .2s;
}

.cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(13, 71, 161, .45);
}

.cert-btn svg {
    width: 19px;
    height: 19px;
}

.cert-tip {
    position: relative;
    z-index: 2;
    margin: 18px 0 0;
    min-height: 20px;
    text-align: center;
    font-size: 14px;
    color: #c62828;
}

.cert-empty {
    margin: 44px 0 0;
    text-align: center;
    font-size: 15px;
    color: #8a93a3;
}

@media (max-width: 768px) {
    .cert-layout { padding: 20px 0 24px; }
    .cert-hero { max-width: 100%; padding: 30px 0 0; }
    .cert-searchbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; border-radius: 22px; }
    .cert-divider { display: none; }
    .cert-btn { width: 100%; padding: 0 20px; }
}

/* ===== 查询结果：单张会员证书（结果最多一条，不做列表） ===== */
.cert-detail-card {
    max-width: 760px;
    margin: 44px auto 0;
    background: #fff;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(13, 71, 161, .12);
}

/* 证书抬头：深蓝渐变 */
.cert-detail-head {
    padding: 26px 28px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #05203f 0%, #0a326c 48%, #1257b8 100%);
}

.cert-detail-org {
    font-size: 13px;
    letter-spacing: 4px;
    opacity: .82;
}

.cert-detail-title {
    margin: 10px 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 6px;
}

.cert-detail-en {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .65;
}

/* 证书正文 */
.cert-detail-body {
    padding: 24px 28px 10px;
}

.cert-detail-row {
    display: flex;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px dashed #e6edf6;
}

.cert-detail-row:last-child {
    border-bottom: 0;
}

.cert-detail-label {
    flex: 0 0 128px;
    font-size: 13px;
    color: #7a879b;
}

.cert-detail-value {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2d3d;
    word-break: break-all;
}

.cert-detail-value.level {
    color: #0d47a1;
}

/* 证书页脚：状态 + 说明 */
.cert-detail-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px 22px;
}

.cert-detail-status {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    color: #8a93a3;
    background: #f2f5f8;
    border: 1px solid #e4eaf2;
    border-radius: 999px;
}

.cert-detail-status.ok {
    color: #fff;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-color: transparent;
}

.cert-detail-note {
    font-size: 12px;
    color: #8a93a3;
}

@media (max-width: 640px) {
    .cert-detail-card { margin-top: 28px; }
    .cert-detail-head { padding: 22px 18px; }
    .cert-detail-title { font-size: 22px; letter-spacing: 4px; }
    .cert-detail-body { padding: 18px 18px 4px; }
    .cert-detail-row { flex-direction: column; gap: 4px; }
    .cert-detail-label { flex: none; }
    .cert-detail-foot { flex-direction: column; align-items: flex-start; padding: 12px 18px 18px; }
}

/* ===== 未查询到（空状态，宽度与证书卡一致） ===== */
.cert-empty-state {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 46px 32px 38px;
    text-align: center;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(13, 71, 161, .08);
}

.cert-empty-icon {
    width: 96px;
    margin: 0 auto 18px;
}

.cert-empty-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.cert-empty-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
}

.cert-empty-desc {
    max-width: 520px;
    margin: 0 auto 22px;
    font-size: 14px;
    line-height: 1.8;
    color: #6b7787;
}

.cert-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0d47a1;
    background: #fff;
    border: 1px solid #c9ddf5;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.cert-empty-btn:hover {
    background: #f2f7ff;
    border-color: #1976d2;
}

.cert-empty-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    border-color: transparent;
}

.cert-empty-btn-primary:hover {
    background: #0d47a1;
}

.cert-empty-contact {
    margin: 22px 0 0;
    font-size: 13px;
    color: #8a93a3;
}

@media (max-width: 640px) {
    .cert-empty-state {
        margin-top: 32px;
        padding: 34px 20px 28px;
    }

    .cert-empty-actions {
        flex-direction: column;
    }

    .cert-empty-btn {
        width: 100%;
    }
}
