/* 全站页面状态 / 布局模板（由 pages.json 控制） */
.page-state-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 111, 165, 0.16), transparent 45%),
        linear-gradient(135deg, #f6f9ff 0%, #eef6f2 100%);
    backdrop-filter: blur(4px);
}

.page-state-card {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid #e3ebf5;
    border-radius: 20px;
    padding: 34px 32px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(28, 44, 72, 0.18);
}

.page-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #a06a12;
    background: #fdf6e7;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.page-state-card h1 {
    margin: 0 0 10px;
    font-size: 25px;
    color: #26303d;
}

.page-state-card p {
    margin: 0 auto 22px;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.75;
    color: #7b8491;
}

.page-state-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-state-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    color: #4a6fa5;
    border: 1px solid #d9e4f2;
    background: #f7faff;
    transition: all 0.2s ease;
}

.page-state-actions a:hover {
    border-color: #b9cbe2;
    background: #eef5ff;
}

.page-state-actions a.primary {
    background: #4a6fa5;
    border-color: #4a6fa5;
    color: #fff;
}

.page-state-actions a.primary:hover {
    background: #3d5d8a;
}

body.page-state-disabled {
    overflow: hidden;
}

body.page-template-minimal .container {
    max-width: 880px;
}

body.page-template-wide .container {
    max-width: 1440px;
}

@media (max-width: 560px) {
    .page-state-card {
        padding: 26px 20px;
    }

    .page-state-card h1 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-state-actions a {
        transition: none;
    }
}
/* 页面状态确认前先隐藏内容，避免维护页被看到/短暂可访问 */
html.page-state-checking body {
    visibility: hidden;
}
/* ===== 公开模板：紧凑版 / 卡片版 ===== */
body.page-template-compact .container {
    max-width: 1100px;
}

body.page-template-card .container {
    max-width: 1120px;
    margin-top: 24px;
    padding: 28px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(28, 44, 72, 0.1);
}

body.page-template-compact .hero {
    padding-top: 54px;
    padding-bottom: 34px;
}

/* ===== 维护模板 ===== */
.page-state-overlay.ps-maint--legal {
    background: #f7f8fa;
}

.page-state-overlay.ps-maint--minimal {
    justify-content: flex-start;
    padding-left: max(24px, 8vw);
    background: #fff;
}

.page-state-overlay.ps-maint--notice {
    align-items: flex-start;
    padding-top: 7vh;
    background: #f7f9fc;
}

.ps-legal-card {
    width: min(520px, 100%);
    border-radius: 12px;
    border: 1px solid #e3e7ee;
    padding: 42px 38px;
    box-shadow: 0 16px 44px rgba(28, 44, 72, 0.09);
}

.ps-legal-card h1 {
    margin: 0 0 10px;
    font-size: 25px;
}

.ps-legal-card p {
    line-height: 1.85;
}

.ps-legal-card .ps-muted {
    margin: 4px 0 28px;
}

.ps-legal-card .page-state-actions {
    margin-top: 6px;
    gap: 12px;
}

.ps-legal-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fdecec;
    color: #b02a37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ps-muted {
    color: #9aa3af !important;
    font-size: 12px !important;
}

.ps-minimal-card {
    max-width: 620px;
}

.ps-minimal-dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4a6fa5;
    margin-bottom: 20px;
}

.ps-minimal-card h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    color: #26303d;
    letter-spacing: -0.02em;
}

.ps-minimal-card p {
    margin: 0 0 22px;
    font-size: 14px;
    color: #7b8491;
}

.ps-text-link {
    font-size: 13px;
    color: #4a6fa5;
    text-decoration: none;
}

.ps-notice-wrap {
    width: min(540px, 100%);
}

.ps-notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px 10px 0 0;
    background: #4a6fa5;
    color: #fff;
    font-size: 12px;
}

.ps-notice-bar em {
    font-style: normal;
    opacity: 0.82;
}

.ps-notice-card {
    background: #fff;
    border: 1px solid #e3ebf5;
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(28, 44, 72, 0.1);
}

.ps-notice-card h2 {
    margin: 0 0 8px;
    font-size: 25px;
    color: #26303d;
}

.ps-notice-card p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: #7b8491;
}
