/* 北斗认证页 - 区块与查询栏样式 */

.certification-page .content-sections .container {
    max-width: 960px;
}

.cert-block {
    margin-bottom: 48px;
    padding: 32px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.cert-block:target {
    scroll-margin-top: 120px;
}

.cert-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.cert-block .cert-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.cert-block .cert-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.cert-block .cert-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--deep-space-blue, #1a365d);
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.3;
}

.cert-block .cert-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-gray, #4a5568);
    margin: 0 0 24px 0;
}

/* 查询栏 */
.cert-query {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
}

.cert-query-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--deep-space-blue, #1a365d);
    margin-bottom: 10px;
}

.cert-query-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cert-query-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    color: #2d3748;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cert-query-input:focus {
    outline: none;
    border-color: var(--starlight-gold, #c9a227);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.cert-query-input::placeholder {
    color: #a0aec0;
}

.cert-query-btn {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    background: var(--deep-space-blue, #1a365d);
    color: #fff;
}

.cert-query-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* 各区块强调色 */
.cert-block-growth::before { background: linear-gradient(180deg, #2b6cb0 0%, #3182ce 100%); }
.cert-block-growth .cert-icon { background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%); }
.cert-block-growth .cert-query-btn { background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%); }

.cert-block-student::before { background: linear-gradient(180deg, #276749 0%, #38a169 100%); }
.cert-block-student .cert-icon { background: linear-gradient(135deg, #276749 0%, #38a169 100%); }
.cert-block-student .cert-query-btn { background: linear-gradient(135deg, #276749 0%, #38a169 100%); }

.cert-block-teacher::before { background: linear-gradient(180deg, #b7791f 0%, #d69e2e 100%); }
.cert-block-teacher .cert-icon { background: linear-gradient(135deg, #b7791f 0%, #d69e2e 100%); }
.cert-block-teacher .cert-query-btn { background: linear-gradient(135deg, #b7791f 0%, #d69e2e 100%); }

.cert-block-mentor::before { background: linear-gradient(180deg, #553c9a 0%, #6b46c1 100%); }
.cert-block-mentor .cert-icon { background: linear-gradient(135deg, #553c9a 0%, #6b46c1 100%); }
.cert-block-mentor .cert-query-btn { background: linear-gradient(135deg, #553c9a 0%, #6b46c1 100%); }

@media (max-width: 768px) {
    .cert-block {
        padding: 24px 20px;
        margin-bottom: 36px;
    }
    .cert-query-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cert-query-input {
        min-width: 0;
    }
}
