* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* PC端：高度 = 100vh - .n-pdf-header高度 - 84px，由 JS 设置 --pdf-header-height */
#pdf-viewer{
    height: calc(100vh - var(--pdf-header-height, 100px) - 84px);
}
.n-project-page{
    margin: 20px auto 80px;
    width: 1600px;
}
.n-pdf-header{
    padding: 20px 0;
    border-bottom: 1px solid #E3E5E6;
}
.n-pdf-header h1{
    overflow: hidden;
    color: #2A2B2E;
    text-overflow: ellipsis;
    font-size: 24px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    align-self: stretch;
    margin-bottom: 4px;
}
.n-pdf-header-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.n-pdf-header-content span{
    color:#6A6B6D;
    font-size: 14px;
}
.n-span-date{
    margin: 0 12px;
    padding: 0 12px;
    border-left: 1px solid #D5D5D5;
    border-right: 1px solid #D5D5D5;
}
.n-pdf-header-btns{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.n-pdf-header-btns > div{
    cursor: pointer;
    border: 1px solid #E60039;
    border-radius: 16px;
    line-height: 32px;
    color: #E60039;
    font-size: 14px;
}
.n-pdf-header-btns > div:hover{
    background: rgba(230, 0, 57, 0.05);
}

.n-pdf-header-btn{
    padding: 0 16px;
    position: relative;
}
#pdf-preview-file{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* 三点按钮与下拉 */
.n-pdf-dropdown-wrap{
    position: relative;
}
.n-pdf-dot-btn{
    cursor: pointer;
    height: 32px;
    color: #E60039;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}
.n-pdf-dot-btn img{
    display: block;
}
.n-pdf-dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    z-index: 100;
}
.n-pdf-dropdown-menu.show{
    display: block;
}
.n-pdf-dropdown-item{
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #2A2B2E;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.n-pdf-dropdown-item:hover{
    color: #E60039;
}
.n-pdf-dropdown-icon{
    margin-right: 4px;
    flex-shrink: 0;
}
.n-pdf-icon-download{
    color: #2A2B2E;
    filter: brightness(0) saturate(100%) invert(17%) sepia(5%) saturate(500%) hue-rotate(180deg);
}
.n-pdf-dropdown-item:hover .n-pdf-dropdown-icon{
    color: #E60039;
    filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(5000%) hue-rotate(338deg);
}


.n-pdf-body{
    margin-top: 20px;
}

.pdf-viewer-wrap {
    background: #F1F3F5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* 工具栏最右侧全屏按钮 */
.pdf-toolbar-fullscreen {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    margin: 8px;
    border: none;
    border-radius: 6px;
    background: #F1F3F5;
    color: #2A2B2E;
    font-size: 14px;
    cursor: pointer;
}
.pdf-toolbar-fullscreen:hover {
    border: 1px solid #E60039;
    background-color: #ffffff;
}
.pdf-toolbar-fullscreen .pdf-fullscreen-icon {
    flex-shrink: 0;
}
.pdf-toolbar-fullscreen .pdf-fullscreen-text {
    white-space: nowrap;
}

/* 全屏时 PDF 查看区域高度 100vh */
.pdf-viewer-wrap.is-fullscreen #pdf-viewer {
    height: 100vh;
}
.pdf-viewer-wrap.is-fullscreen {
    height: 100vh;
    width: 100vw;
}

/* CSS 模拟全屏（用于 iOS 等不支持 Fullscreen API 的设备） */
.pdf-viewer-wrap.css-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    /* 兼容 iOS 安全区域 */
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    z-index: 999999 !important;
    background: #F1F3F5 !important;
}
.pdf-viewer-wrap.css-fullscreen #pdf-viewer {
    height: 100vh !important;
    height: 100dvh !important;
}
/* 隐藏页面其他内容和滚动条 */
body.has-css-fullscreen {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}
/* 全屏状态下的全屏按钮样式 */
.pdf-viewer-wrap.css-fullscreen .pdf-toolbar-fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000000;
}

.pdf-toolbar {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .pdf-toolbar button {
    padding: 6px 12px;
    cursor: pointer;
  }
/**弹窗**/
.modal-mask{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.modal-mask.show{
    display: block;
}
.modal-content{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    z-index: 1001;
}
.modal-content.show{
    display: block;
}
.modal-header{
    font-size: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E3E5E6;
    text-align: left;
}
.modal-body{
    font-size: 16px;
    text-align: left;
    margin: 20px 0;
}
.modal-login-btn{
    display: block;
    background-color: #E60039;
    color: #fff;
    line-height: 40px;
    padding: 0 40px;
    width: fit-content;
    border-radius: 4px;
    margin: 0 auto;
}
.modal-login-btn:hover{
    background-color: #CC0033;
    color: #fff;
}
.modal-close{
    position: absolute;
    font-size: 40px;
    top: 8px;
    right: 20px;
    cursor: pointer;
}

@media screen and (max-width:1600px) { 
    .n-project-page{
       
        width: 1400px;
    }
}

@media screen and (max-width:1440px) { 
    .n-project-page{
        margin: 30px auto 20px;
        width: 1200px;
    }
}

@media screen and (max-width:1280px) { 
    .n-project-page{
        width: 1080px;
    }
}

@media screen and (max-width:1080px) { 
    .n-project-page{
        width: 900px;
    }
}

@media screen and (max-width:900px) { 
    .n-project-page{
        width: 100%;
        padding: 0 20px;
    }
}

@media screen and (max-width:768px) { 
    .n-project-page{
        width: 100%;
        padding: 0 20px;
    }
    .n-pdf-header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    #pdf-viewer{
        height: 80vh;    
    }
    .modal-content{
        width: calc(100% - 40px);
    }
}
