/* 站点外壳：7 栏顶栏 + 占位页排版 + 站点页脚（临时配色：暗红 + 米色，与登录页一致） */

.site-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    align-self: stretch;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    background: #8B0000;
    color: #F3E6C4;
    box-shadow: 0 2px 12px rgba(80, 40, 10, 0.28);
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
}

.site-topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
    color: #FFF6E0;
}

.site-topnav-brand:hover {
    text-decoration: none;
    opacity: 0.92;
}

.site-topnav-brand img {
    height: 34px;
    width: auto;
    display: block;
}

.site-topnav-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-topnav-brand .brand-text strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-topnav-brand .brand-text em {
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.24em;
    color: rgba(255, 246, 224, 0.72);
    margin-top: 2px;
}

.site-topnav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-topnav-menu::-webkit-scrollbar {
    display: none;
}

.site-topnav-menu a {
    position: relative;
    flex: 0 0 auto;
    padding: 20px 14px;
    color: rgba(255, 246, 224, 0.86);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.site-topnav-menu a:hover {
    color: #FFF6E0;
    background: rgba(255, 246, 224, 0.1);
    text-decoration: none;
}

.site-topnav-menu a.is-active {
    color: #FFF6E0;
}

.site-topnav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.site-topnav-auth:empty {
    display: none;
}

.site-topnav-auth-btn {
    padding: 7px 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 246, 224, 0.85);
    background: transparent;
    color: #FFF6E0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.site-topnav-auth-btn:hover {
    background: #FFF6E0;
    color: #8B0000;
}

.site-topnav-user {
    font-size: 14px;
    color: rgba(255, 246, 224, 0.85);
    white-space: nowrap;
}

.site-topnav-user b {
    color: #FFF6E0;
    font-weight: 700;
}

/* 登录弹框：iframe 内嵌登录页 */
.site-login-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 10, 5, 0.55);
    backdrop-filter: blur(3px);
}

.site-login-dialog {
    position: relative;
    width: min(960px, 96vw);
    height: min(660px, 92vh);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.site-login-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.site-login-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.site-login-close:hover {
    background: rgba(0, 0, 0, 0.68);
}

@media (max-width: 640px) {
    .site-login-modal {
        padding: 0;
    }

    .site-login-dialog {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

/* 登录弹框（iframe 内嵌登录页） */
.site-login-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 10, 5, 0.55);
    backdrop-filter: blur(3px);
}

.site-login-dialog {
    position: relative;
    width: min(960px, 96vw);
    height: min(680px, 94vh);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.site-login-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.site-login-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.site-login-close:hover {
    background: rgba(0, 0, 0, 0.65);
}

@media (max-width: 640px) {
    .site-login-modal {
        padding: 0;
    }

    .site-login-dialog {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

.site-topnav-menu a.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 10px;
    height: 3px;
    border-radius: 2px;
    background: #E8C877;
}

@media (max-width: 860px) {
    .site-topnav {
        gap: 14px;
        padding: 0 14px;
        min-height: 56px;
    }

    .site-topnav-brand .brand-text {
        display: none;
    }

    .site-topnav-menu a {
        padding: 16px 10px;
        font-size: 15px;
    }
}

/* ---------- 占位页与站点页脚 ---------- */

.site-shell {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse 76% 58% at 50% 40%, #F7EDD4 0%, #F3E6C4 58%, #EAD6A8 100%);
    color: #3F3A33;
    font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
}

.site-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.site-placeholder {
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
    padding: 56px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #D2B48C;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(80, 40, 10, 0.14);
}

.site-placeholder h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    color: #8B0000;
}

.site-placeholder p {
    margin: 0 auto;
    max-width: 34em;
    color: #6B6055;
    font-size: 15px;
    line-height: 1.9;
}

.site-placeholder .site-placeholder-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #FFF3DC;
    border: 1px solid #E3C88C;
    color: #9A6B14;
    font-size: 12px;
    font-weight: 700;
}

.site-footer {
    flex: 0 0 auto;
    padding: 18px 16px 22px;
    text-align: center;
    color: #5C5346;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer p {
    margin: 0;
}

.site-footer .beian {
    margin-top: 4px;
}

.site-footer .beian a {
    color: #007BFF;
    text-decoration: underline;
}

.site-footer .beian a:hover {
    color: #66b0ff;
}

.site-footer .beian .sep {
    margin: 0 8px;
    color: #8A8274;
}
