/* CSS变量定义 */
:root {
    --primary-color: #003366;
    --secondary-color: #165DFF;
    --accent-color: #FF6B35;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #E0E0E0;
    --bg-color: #FFFFFF;
    --light-bg: #F8F9FA;
    --footer-bg: #003366;
    --header-height: 120px;
    --banner-height: 200px;
    --nav-height: 60px;
    --secondary-nav-height: 40px;
    --breadcrumb-height: 50px;


    --h1: 28px;
    --h2: 24px;
    --h3: 18px;
    --spacing-xs: 8px;
    --body: 16px;
    --caption: 14px;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* 字体定义 */
    --font-family-primary: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    --font-family-secondary: "Arial", "Helvetica", "Roboto", sans-serif;
    --font-family-mono: "Consolas", "Monaco", "Courier New", monospace;
}

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

body {
    font-family: var(--font-family-primary), var(--font-family-secondary);
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--bg-color);
}

/*p {*/
/*    text-indent: 2em;*/
/*}*/









.outter-header {
    background-image: url('../img/fengjing.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* 页面横幅样式 */
.page-banner {
    height: var(--banner-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 40px;
}

.banner-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.banner-logo .logo-placeholder {
    width: 64px;
    height: 64px;
    margin-right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.banner-text {
    text-align: left;
}

.banner-title {
    font-size: var(--h1);
    font-weight: var(--weight-bold);
    color: var(--color-text-light);
}

.banner-subtitle {
    font-family: var(--font-family-secondary);
    font-size: var(--body);
    color: var(--color-text-light);
    opacity: 0.9;
}





/* 主内容区域样式 */
.main-content {
    background-color: var(--light-bg);
    padding: 30px 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

/* 左侧主内容样式 */
.left-content {
    flex: 1;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.news-article {
    width: 100%;
}

.news-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
}

.news-meta {
    justify-content: center;
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--light-text);
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.news-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-image {
    margin: 30px 0;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
}

/* 右侧边栏样式 */
.right-sidebar {
    width: 350px;
}

/* 轮播图样式 */
.sidebar-banner {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.banner-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 260px;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--secondary-color);
    width: 24px;
    border-radius: 4px;
}

/* 轮播控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 200px;
    }
}

/* Tab页样式 */
.sidebar-tabs {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tab页签样式 */
.tab-headers {
    display: flex;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-header {
    flex: 1;
    padding: 12px 15px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.tab-header.active {
    color: var(--secondary-color);
    font-weight: 500;
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Tab内容样式 */
.tab-contents {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 原有侧边栏区块样式 */
.sidebar-section {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 15px;
    position: relative;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-links a:hover {
    color: var(--secondary-color);
}











/* 响应式设计 */
/* 平板设备（1024px及以下） */
@media (max-width: 1024px) {


    .content-container {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
    }

    .sidebar-section h3 {
        font-size: 16px;
    }


}

/* 小型平板和手机（768px及以下） */
@media (max-width: 768px) {

    .secondary-links {
        overflow-x: auto;
        white-space: nowrap;
    }

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

    .left-content {
        padding: 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .school-name h1 {
        font-size: 20px;
    }

    .school-name p {
        font-size: 14px;
    }
}
/* 手机设备（390px及以下） */
@media (max-width: 390px) {
    .news-title {
        font-size: 20px;
    }

    .news-content {
        font-size: 14px;
    }
}
