/* 通知公告详情页样式 */

/* 页面允许滚动 */
html, body {
    overflow: auto;
    scrollbar-width: auto;
    height: auto;
    min-height: 100%;
}

/* 导航栏滚动后的样式 */
.main-nav.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Webkit 浏览器显示滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 页面主体 */
.notice-detail-page {
    padding-top: 60px;
    background: url('../images/about/page-bg.png') center top no-repeat;
    background-size: cover;
    min-height: calc(100vh - 245px);
}

.notice-detail-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #0073ff;
    margin-bottom: 15px;
}

.title-icon {
    width: 484px;
    height: 21px;
    display: block;
    margin: 0 auto;
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-item {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #333;
    text-decoration: none;
    width: 181px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tab-item.active {
    background: linear-gradient(180deg, #D0E5FF 0%, #F3F8FF 48.08%, #D0E5FF 100%);
    color: #0073ff;
}

.tab-item:hover {
    color: #0073ff;
}

/* 详情内容区域 */
.detail-content {
    background: #fff;
    border-radius: 4px;
    padding: 50px 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 标题 */
.detail-title {
    font-family: "Microsoft YaHei";
    font-weight: 700;
    font-size: 32px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

/* 发布信息 */
.detail-meta {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.detail-meta span {
    font-family: "Microsoft YaHei";
    font-weight: 400;
    font-size: 14px;
    color: #818181;
    margin: 0 15px;
}

/* 正文内容 */
.detail-body {
    font-family: "Microsoft YaHei";
    font-weight: 400;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 40px;
}

.detail-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 正文中的图片 */
.detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
}

/* 分割线 */
.detail-divider {
    height: 1px;
    background: #A8CFFF;
    margin-bottom: 30px;
}

/* 上一篇下一篇导航 */
.detail-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-article {
    font-family: "Microsoft YaHei";
    font-weight: 400;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nav-article:hover {
    color: #0073ff;
}

/* 图标 */
.nav-icon {
    width: 15px;
    height: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 3px;
}

/* 上一篇图标 - 默认 */
.prev-article .nav-icon {
    background-image: url('../images/wenzhang.png');
}

/* 上一篇图标 - 激活 */
.prev-article:hover .nav-icon {
    background-image: url('../images/wenzhang_a.png');
}

/* 下一篇图标 - 默认 */
.next-article .nav-icon {
    background-image: url('../images/wenzhang.png');
}

/* 下一篇图标 - 激活 */
.next-article:hover .nav-icon {
    background-image: url('../images/wenzhang_a.png');
}

.nav-label {
    color: #666;
    margin-right: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-article:hover .nav-label {
    color: #0073ff;
}

.nav-title {
    color: #333;
}

.nav-article:hover .nav-title {
    color: #0073ff;
}

/* ==================== 大屏幕适配 (1920px 以下) ==================== */
@media (max-width: 1920px) {
    .notice-detail-container {
        max-width: 1320px;
        padding: 100px 20px 60px;
    }
}

/* ==================== 1600px 以下适配 ==================== */
@media (max-width: 1600px) {
    .notice-detail-container {
        max-width: 1200px;
        padding: 80px 20px 50px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .tab-item {
        font-size: 20px;
        width: 170px;
        height: 48px;
    }

    .detail-content {
        padding: 45px 50px;
    }

    .detail-title {
        font-size: 30px;
    }
}

/* ==================== 1440px 以下适配 ==================== */
@media (max-width: 1440px) {
    .notice-detail-container {
        max-width: 1100px;
        padding: 70px 20px 45px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .title-icon {
        width: 400px;
        height: auto;
    }

    .tab-nav {
        gap: 15px;
        margin-bottom: 40px;
    }

    .tab-item {
        font-size: 18px;
        width: 160px;
        height: 46px;
    }

    .detail-content {
        padding: 40px 45px;
    }

    .detail-title {
        font-size: 28px;
    }
}

/* ==================== 1366px 以下适配 ==================== */
@media (max-width: 1366px) {
    .notice-detail-container {
        max-width: 1000px;
        padding: 60px 20px 40px;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .title-icon {
        width: 360px;
    }

    .tab-nav {
        gap: 12px;
        margin-bottom: 35px;
    }

    .tab-item {
        font-size: 17px;
        width: 150px;
        height: 44px;
    }

    .detail-content {
        padding: 35px 40px;
    }

    .detail-title {
        font-size: 26px;
    }

    .detail-body {
        font-size: 15px;
    }
}

/* ==================== 1280px 以下适配 ==================== */
@media (max-width: 1280px) {
    .notice-detail-container {
        max-width: 950px;
        padding: 50px 20px 35px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .title-icon {
        width: 320px;
    }

    .tab-item {
        font-size: 16px;
        width: 140px;
        height: 42px;
    }

    .detail-content {
        padding: 30px 35px;
    }

    .detail-title {
        font-size: 24px;
    }
}

/* ==================== 1024px 以下适配 (平板横屏) ==================== */
@media (max-width: 1024px) {
    .notice-detail-page {
        padding-top: 60px;
    }

    .notice-detail-container {
        max-width: 100%;
        padding: 40px 20px 30px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .title-icon {
        width: 280px;
    }

    .tab-nav {
        gap: 10px;
        margin-bottom: 30px;
    }

    .tab-item {
        font-size: 15px;
        width: 130px;
        height: 40px;
    }

    .detail-content {
        padding: 25px 25px;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-body {
        font-size: 14px;
    }
}

/* ==================== 移动端适配 (768px 以下) ==================== */
@media (max-width: 768px) {
    /* 移动端 logo 切换为深色 */
    .logo img {
        content: url('../images/logo-b.png');
    }

    /* 搜索按钮深色 */
    .search-btn-nav {
        background-image: url('../images/search-dark.png');
        filter: brightness(0) saturate(100%) invert(31%) sepia(97%) saturate(1620%) hue-rotate(198deg) brightness(97%) contrast(101%);
    }

    /* 页面主体 */
    .notice-detail-page {
        padding-top: 60px;
    }

    .notice-detail-container {
        padding: 40px 15px 30px;
    }

    /* 页面标题 */
    .page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .title-icon {
        width: 200px;
        height: auto;
    }

    /* Tab 导航 */
    .tab-nav {
        gap: 10px;
        margin-bottom: 30px;
    }

    .tab-item {
        font-size: 16px;
        width: 130px;
        height: 40px;
    }

    /* 详情内容区域 */
    .detail-content {
        padding: 25px 20px;
    }

    /* 标题 */
    .detail-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* 发布信息 */
    .detail-meta {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .detail-meta span {
        font-size: 12px;
        margin: 0 8px;
    }

    /* 正文内容 */
    .detail-body {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .detail-body p {
        margin-bottom: 15px;
    }

    /* 正文中的图片 */
    .detail-body img {
        margin: 20px auto;
    }

    /* 上一篇下一篇导航 */
    .nav-article {
        font-size: 12px;
        gap: 6px;
    }

    .nav-icon {
        width: 12px;
        height: 12px;
    }

}
