.common-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.common-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    background: #fff;
    cursor: pointer;
}

.common-pagination button:hover:not(:disabled),
.common-pagination button.is-active {
    border-color: #1e3a8a;
    color: #fff;
    background: #1e3a8a;
}

.common-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.common-pagination-info {
    margin-left: 4px;
    color: #64748b;
    font-size: 13px;
}

.common-toast-region {
    position: fixed;
    z-index: 9999;
    top: 18px;
    right: 18px;
    display: flex;
    width: min(360px, calc(100vw - 36px));
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.common-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    color: #0f172a;
    background: #fff;
    pointer-events: auto;
}

.common-toast-icon {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 17px;
}

.common-toast-text {
    min-width: 0;
    line-height: 1.5;
}

.common-toast.is-success {
    border-color: #059669;
    border-left: 4px solid #059669;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.16);
}

.common-toast.is-success .common-toast-icon {
    color: #059669;
}

.common-toast.is-error {
    border-color: #dc2626;
    border-left: 4px solid #dc2626;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.16);
}

.common-toast.is-error .common-toast-icon {
    color: #dc2626;
}

.common-toast.is-warning {
    border-color: #d97706;
    border-left: 4px solid #d97706;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.16);
}

.common-toast.is-warning .common-toast-icon {
    color: #d97706;
}

.common-toast.is-info {
    border-color: #2563eb;
    border-left: 4px solid #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.16);
}

.common-state {
    padding: 34px 18px;
    text-align: center;
    color: #64748b;
}

.common-state.is-error {
    color: #b91c1c;
}

.common-dialog-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.common-dialog {
    width: min(420px, 100%);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    background: #fff;
}

.common-dialog--file-limit {
    width: min(560px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    overflow: auto;
}

.common-dialog--file-limit .common-dialog-message {
    overflow-wrap: anywhere;
}

.common-dialog-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}

.common-dialog-message {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.common-dialog-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #92400e;
    background: #fffbeb;
    font-size: 13px;
    line-height: 1.7;
}

.common-dialog-section-title {
    margin: 16px 0 0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.common-dialog-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 9px;
}

.common-dialog-link {
    display: flex;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dbe4f5;
    border-radius: 8px;
    color: #1d4ed8;
    text-decoration: none;
    background: #f8fbff;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
}

.common-dialog-link:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.common-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.common-dialog-actions button {
    min-width: 84px;
    padding: 9px 16px;
    border-radius: 8px;
}

.common-dialog-cancel {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
}

.common-dialog-submit {
    border: 1px solid #1e3a8a;
    color: #fff;
    background: #1e3a8a;
}

body.common-loading-locked {
    overflow: hidden;
}

.common-loading-overlay {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.common-loading-card {
    display: flex;
    width: min(360px, 100%);
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    background: #fff;
    text-align: center;
}

.common-loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #dbeafe;
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: common-loading-spin 0.85s linear infinite;
}

.common-loading-message {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.common-loading-dots {
    display: inline-flex;
    gap: 7px;
    min-height: 10px;
    align-items: center;
}

.common-loading-dots i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e3a8a;
    opacity: 0.25;
    animation: common-loading-dot 1.2s ease-in-out infinite;
}

.common-loading-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.common-loading-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes common-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes common-loading-dot {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.login-storage-browse {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 16px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

#login-storage-warning {
    z-index: 10003;
}

@media (max-width: 640px) {
    .common-pagination-info {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 24px;
    color: #334155;
    background: #f8fafc;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.error-page-card {
    width: min(460px, 100%);
    padding: 40px 28px;
    border-radius: 18px;
    text-align: center;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.error-page-code {
    margin: 0;
    color: #1e3a8a;
    font-size: 64px;
    font-weight: 800;
}

.error-page-card a {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    background: #1e3a8a;
}

/* 统一页头：共享蓝渐变底，各页用修饰类切换装饰图形 */
.page-hero,
.legal-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #1e3a8a 0%, #1d4ed8 68%, #2563eb 100%);
}

.page-hero::before,
.page-hero::after,
.legal-hero::before,
.legal-hero::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

/* 首页：柔和光斑 + 斜向光带，偏开放大气 */
.page-hero--home {
    background: linear-gradient(125deg, #163275 0%, #1e3a8a 42%, #2563eb 100%);
}

.page-hero--home::before {
    top: -80px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}

.page-hero--home::after {
    right: -90px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        -140px -60px 0 -80px rgba(191, 219, 254, 0.18),
        90px -120px 0 -120px rgba(255, 255, 255, 0.1);
}

/* 公告列表：横向波纹条，像信息流 */
.page-hero--news {
    background: linear-gradient(105deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%);
}

.page-hero--news::before {
    right: -40px;
    top: 18%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 0 28px rgba(255, 255, 255, 0.04),
        0 0 0 56px rgba(255, 255, 255, 0.03);
}

.page-hero--news::after {
    left: 8%;
    bottom: -28px;
    width: 70%;
    max-width: 720px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    transform: skewX(-18deg);
    opacity: 0.55;
}

/* 公告详情：细线文档感 + 右下角小弧 */
.page-hero--detail {
    background: linear-gradient(118deg, #1e3a8a 0%, #1e40af 70%, #2563eb 100%);
}

.page-hero--detail::before {
    right: 8%;
    top: 22%;
    width: 180px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    box-shadow:
        18px 18px 0 -2px rgba(255, 255, 255, 0.08),
        36px 36px 0 -4px rgba(255, 255, 255, 0.05);
    transform: rotate(8deg);
}

.page-hero--detail::after {
    right: -100px;
    bottom: -160px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 48px solid rgba(255, 255, 255, 0.07);
}

/* 报名中心 / 项目详情：方块阵列，像岗位卡片 */
.page-hero--project {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 48%, #1d4ed8 100%);
}

.page-hero--project::before {
    right: 6%;
    top: 18%;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        92px 0 0 rgba(255, 255, 255, 0.08),
        0 92px 0 rgba(255, 255, 255, 0.08),
        92px 92px 0 rgba(255, 255, 255, 0.05),
        184px 46px 0 rgba(255, 255, 255, 0.06);
    transform: rotate(12deg);
}

.page-hero--project::after {
    left: -80px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    border-radius: 40px;
    border: 36px solid rgba(255, 255, 255, 0.06);
    transform: rotate(24deg);
}

/* 成绩：向上阶梯/折线感 */
.page-hero--score {
    background: linear-gradient(112deg, #1e3a8a 0%, #2563eb 62%, #60a5fa 100%);
}

.page-hero--score::before {
    right: 10%;
    bottom: 18%;
    width: 110px;
    height: 96px;
    background: rgba(255, 255, 255, 0.14);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: none;
}

.page-hero--score::after {
    right: -60px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    transform: rotate(28deg);
}

/* 报名填写/详情：圆角列表条 */
.page-hero--apply {
    background: linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 100%);
}

.page-hero--apply::before {
    right: 7%;
    top: 24%;
    width: 210px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 28px 0 rgba(255, 255, 255, 0.1),
        0 56px 0 rgba(255, 255, 255, 0.06);
}

.page-hero--apply::after {
    right: -120px;
    bottom: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 65%);
}

/* 政策法规/关于我们等：保留原同心圆 */
.page-hero--legal,
.legal-hero {
    background: linear-gradient(115deg, #1e3a8a 0%, #1d4ed8 68%, #2563eb 100%);
}

.page-hero--legal::before,
.legal-hero::before {
    right: -40px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border: 50px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-hero--legal::after,
.legal-hero::after {
    right: -110px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 70px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .page-hero--home::before,
    .page-hero--news::after,
    .page-hero--project::before,
    .page-hero--score::before,
    .page-hero--apply::before,
    .page-hero--detail::before {
        opacity: 0.55;
        transform: scale(0.85);
    }

    .page-hero--project::before {
        transform: rotate(12deg) scale(0.75);
        right: -10px;
    }
}
