/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #2C1A4D; /* 深色背景 */
    color: #ffffff;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部固定导航栏 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #2C1A4D;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: none; /* 移除阴影，因为下面还有一层导航 */
    border-bottom: 1px solid #222;
}

.header-inner {
    width: 90%; 
    max-width: 1600px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
}

.school-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.search-area {
    flex-grow: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #444; /* 稍微亮一点的背景 */
    border-radius: 20px;
    padding: 5px 15px;
    width: 250px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
}

/* 粘性导航栏 (Scroll Sticky) */
.sticky-nav-bar {
    position: sticky;
    top: 64px; /* Sticks right below the main header */
    background-color: #2C1A4D; 
    z-index: 99;
    padding: 15px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.nav-title {
    font-size: 20px; 
    font-weight: bold;
    margin-right: 20px;
    color: white;
    white-space: nowrap;
}

.sticky-nav-list {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 5px; 
}

/* Hide scrollbar for sticky nav */
.sticky-nav-list::-webkit-scrollbar {
    display: none;
}
.sticky-nav-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sticky-nav-list li a {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    transition: color 0.2s;
}

.sticky-nav-list li a:hover {
    color: #1e6cff;
}


/* 左侧侧边栏 */
.sidebar {
    width: 200px;
    background-color: transparent; 
    height: 100vh; 
    position: fixed; 
    top: 0;
    left: 0; 
    padding-top: 80px; /* 避开Header */
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 50; 
    
    overscroll-behavior: contain; 
    direction: rtl; 
    
    scrollbar-width: thin;
    scrollbar-color: #555 transparent; 
}

.nav-list {
    direction: ltr; 
}

@media (min-width: 1780px) { 
    .sidebar {
        left: 0; 
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.nav-list li {
    margin-bottom: 5px;
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7); 
    font-size: 15px;
    transition: all 0.3s ease; 
    border-radius: 8px;
    margin: 0 10px;
}

.nav-list li a:hover {
    color: #fff; 
    filter: brightness(1.5); 
    transform: translateX(5px); 
}

.nav-list .icon {
    margin-right: 12px;
    width: 20px;
    height: 20px; 
    object-fit: contain; 
    display: block; 
}

/* 主体容器 */
.main-container {
    position: relative;
    z-index: 1; 
    display: flex;
    min-height: 100vh;
    width: 90%;
    max-width: 1600px;
    margin: 80px auto 0; /* 调整顶部间距，避开Fixed Header */
}

/* 右侧内容区域 */
.content-area {
    flex: 1;
    padding: 0 0 40px 80px; /* Left padding for sidebar space */
}

/* 文章容器 */
.detail-article {
    background-color: #ffffff; /* 白底 */
    color: #333333; /* 黑字 */
    padding: 40px;
    border-radius: 8px;
    min-height: 80vh;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #000;
}

.article-meta {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.meta-divider {
    margin: 0 10px;
    color: #ddd;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.content-image-block {
    margin-bottom: 30px;
    text-align: center;
}

.content-image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-text {
    margin-bottom: 30px;
    text-indent: 2em;
    text-align: justify;
}

.content-banner-block {
    margin-top: 40px;
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.banner-wrapper {
    position: relative;
    width: 100%;
}

.banner-wrapper img {
    width: 100%;
    display: block;
}

.banner-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    text-align: center;
    /* text-shadow: 0 2px 4px rgba(0,0,0,0.8); */
}

.banner-main-title {
    font-size: 48px;
    color: #FFD700; /* Gold */
    font-weight: 900;
    letter-spacing: 5px;
    margin-top: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    /* Try to match image style */
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-sub-info {
    width: 100%;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.highlight-stat {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .sidebar {
        left: 0; 
    }
    .content-area {
        padding-left: 220px; 
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none; 
    }
    .main-container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 80px; 
    }
    .content-area {
        padding-left: 0;
    }
    .banner-main-title {
        font-size: 32px;
    }
    .highlight-stat {
        font-size: 24px;
    }
}
