/* 全局样式重置 */
* {
    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: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #222; /* 增加底部边框区分 */
}

/* 滚动后的导航栏样式 - 保持一致 */
.top-header.scrolled {
    background-color: #2C1A4D;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-inner {
    width: 90%; /* 占据 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: #2b2b2b;
    border-radius: 20px;
    padding: 5px 15px;
    /*width: 300px;*/
    transition: width 0.3s ease;
}

.search-box:focus-within {
    background-color: #333;
    /*width: 350px;*/
}

.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;*/
}

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

/* 左侧侧边栏 */
.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;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 悬停效果 */
.nav-list li a:hover {
    background-color: transparent; 
    color: #fff; 
    filter: brightness(1.5); 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 15px rgba(30, 108, 255, 0.3); 
    transform: translateX(5px); 
    backdrop-filter: none;
}

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

/* 右侧内容区域 */
.content-area {
    flex: 1;
    /* 保持左侧缩进以避开Sidebar */
    padding: 0 0 20px 80px; 
    overflow: visible; 
}

/* Section 通用 */
.section-block {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.more-link {
    font-size: 14px;
    color: #888;
}

.more-link:hover {
    color: white;
}

/* 透明圆角卡片样式 */
.transparent-card {
    background-color: transparent; 
    border-radius: 12px; 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 0; 
}

.transparent-card:hover {
    transform: translateY(-8px); 
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; 
    border-radius: 12px; 
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; 
}

.transparent-card:hover .card-image-wrapper img {
    transform: scale(1.1); 
}

.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(90deg, #ff8f00, #ff6f00);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-content {
    padding: 12px 10px; 
    border-radius: 12px; 
    transition: background-color 0.3s ease; 
}

.transparent-card:hover .card-content {
    background-color: #25252b; 
}

.card-title {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.card-summary {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 粘性导航栏 (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;
}

/* 3列卡片网格布局 */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-bottom: 20px;
}

/* 底部Logo+文字区域 */
.card-footer {
    display: flex;
    align-items: flex-start;
    padding: 15px 10px;
    gap: 15px;
    transition: background-color 0.3s ease; /* 背景色过渡 */
    border-radius: 12px;
}

/* 悬停时Footer背景变色 */
.transparent-card:hover .card-footer {
    background-color: #25252b;
}


.footer-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-text {
    flex: 1;
    overflow: hidden;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/
    width: 280px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.footer-summary {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 响应式调整 for 3列 */
@media (max-width: 1000px) {
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (max-width: 600px) {
    .card-grid-3 {
        grid-template-columns: 1fr; 
    }
}

/* 大网格 - 辅助样式 */
.center-overlay {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.4); 
}

.gold-text.big {
    font-size: 28px;
    margin-bottom: 10px;
}

.highlight {
    font-size: 16px;
    color: white;
    margin-bottom: 5px;
}

.sub-text {
    color: #ddd;
    font-size: 14px;
}

/* 响应式调整 */
@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;
    }
}
