/* 学生工作台 · 北斗认证（与履历银行 / 深蓝主色体系统一） */

/* 与「我的课程」等页一致：主区留白仅由 `.student-my-page .dashboard-main` 承担，内层不再叠加 padding */
.student-beidou-page .student-beidou-page-inner {
    padding: 0;
}

.student-beidou-page .dashboard-main {
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .student-beidou-page .dashboard-main {
        padding-bottom: 20px;
    }
}

/* 勿在 body 上设 padding-top，否则会顶开顶栏 */
.student-beidou-hero {
    position: relative;
    margin-bottom: 24px;
    padding: 28px 28px 30px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2463 0%, #1e3a5f 50%, #2c5282 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(10, 36, 99, 0.25);
    overflow: hidden;
}

.student-beidou-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(62, 146, 204, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.student-beidou-hero h1 {
    position: relative;
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.student-beidou-hero .tagline {
    position: relative;
    margin: 0;
    max-width: 52rem;
    opacity: 0.93;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
}

.student-beidou-hero-code {
    display: inline;
    margin: 0 2px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 500;
    font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
    vertical-align: baseline;
}

.student-beidou-hero .to-resume {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #bfdbfe;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.student-beidou-hero .to-resume:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.student-beidou-page .beidou-section {
    border: 1px solid rgba(10, 36, 99, 0.1);
    border-left: 4px solid #22c55e;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fffc 0%, #f0fdf4 48%, #ecfdf5 100%);
    box-shadow: 0 4px 14px rgba(10, 36, 99, 0.06);
    padding: 22px 24px 24px;
}

.student-beidou-page .beidou-section h2 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #0f2f66;
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-beidou-page .beidou-section h2 .icon {
    font-size: 20px;
    line-height: 1;
}

.student-beidou-page .beidou-section-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #536784;
    line-height: 1.65;
    max-width: 48rem;
}

.student-beidou-page .beidou-materials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 12px;
    margin: 4px 0 20px;
}

.student-beidou-page .beidou-material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(34, 197, 94, 0.22);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.student-beidou-page .beidou-material-item:hover {
    border-color: rgba(34, 197, 94, 0.45);
    background: #fff;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.12);
}

.student-beidou-page .beidou-material-item:focus-within {
    outline: 2px solid rgba(62, 146, 204, 0.45);
    outline-offset: 2px;
}

.student-beidou-page .beidou-material-item input {
    margin: 0;
    flex-shrink: 0;
    accent-color: #16a34a;
}

.student-beidou-page .beidou-material-item .label {
    font-size: 13px;
    font-weight: 500;
    color: #1f3557;
    line-height: 1.35;
}

.student-beidou-page .beidou-submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.student-beidou-page .btn-beidou-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.student-beidou-page .btn-beidou-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.42);
    opacity: 1;
}

.student-beidou-page .btn-beidou-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.student-beidou-page .btn-beidou-submit:focus-visible {
    outline: 2px solid #3e92cc;
    outline-offset: 3px;
}

.student-beidou-page .beidou-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.student-beidou-page .beidou-status.pending {
    background: rgba(107, 114, 128, 0.14);
    color: #4b5563;
}

.student-beidou-page .beidou-status.submitted {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.student-beidou-page .beidou-status.reviewing {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.student-beidou-page .beidou-status.certified {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.student-beidou-page .beidou-status.error {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.student-beidou-api-hint {
    margin: 14px 0 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
}

@media (max-width: 640px) {
    .student-beidou-hero {
        padding: 22px 20px 24px;
    }

    .student-beidou-hero h1 {
        font-size: 22px;
    }

    .student-beidou-page .beidou-materials {
        grid-template-columns: 1fr;
    }

    .student-beidou-hero-code {
        font-size: 11px;
        padding: 2px 6px;
        white-space: normal;
        word-break: break-all;
    }
}
