/* --- 基础设置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Georgia", sans-serif;
    background-color: #f9f7f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    width: 1200px;
    max-width: 98%;
    margin: 0 auto;
}

.mb-20 {
    margin-bottom: 20px;
}

/* --- Header & 搜索 --- */
.header-section {
    background: #fff;
   
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    display: block;
}


/* --- 导航栏 (居中一行) --- */
.nav-section {
    background: #8B2323;
}

.nav-horizontal-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-item a {
    display: block;
    padding: 16px 25px;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #c0a16b;
    padding-bottom: 13px;
}

/* --- 纯CSS轮播图 --- */
.banner-section {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.css-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fade 12s infinite;
    background-size: cover;
    background-position: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(60, 20, 20, 0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-align: center;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-family: "SimSun", serif;
}

.slide-content h3 {
    font-size: 18px;
    font-weight: 300;
}

/* 图片地址 */
.slide-1 {
    background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b955?auto=format&fit=crop&w=1200&q=80');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('https://images.unsplash.com/photo-1453738773917-9c3eff1db985?auto=format&fit=crop&w=1200&q=80');
    animation-delay: 4s;
}

.slide-3 {
    background-image: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1200&q=80');
    animation-delay: 8s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* --- 内容布局 (Grid Layout) --- */
.main-content {
    padding: 30px 0;
}

.content-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

/* 修改为两列等宽，用于展示不同模块 */
.col-half {
    flex: 1;
    width: 50%;
}

.col-full {
    flex: 1;
    width: 100%;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(139, 35, 35, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.theme-title {
    color: #8B2323;
    font-size: 18px;
    font-weight: bold;
    border-left: 4px solid #8B2323;
    padding-left: 10px;
}

.theme-title.secondary {
    color: #b08d55;
    border-color: #b08d55;
}

.more {
    color: #999;
    font-size: 13px;
}

/* 滚动条美化 - 人文红风格 */
.scroll-wrapper {
    height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-wrapper::-webkit-scrollbar {
    width: 5px;
}

.scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
    background: #dcbdbd;
    border-radius: 5px;
}

.scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #8B2323;
}

.gold-scroll::-webkit-scrollbar-thumb:hover {
    background: #c0a16b;
}

/* 列表样式 */
.news-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
    align-items: center;
}

.news-item a:hover {
    color: #8B2323;
}

.news-item span {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px;
}

/* 内部小标题标签 (用于区分简介、师资等) */
.list-label {
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    display: inline-block;
}

.list-label:first-child {
    margin-top: 0;
}

/* 双列列表 (用于全宽的信息公开栏) */
.two-column-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.two-column-list .news-item {
    width: 48%;
}

/* --- Footer --- */
.footer-links-section {
    background: #eaeaea;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.links-container {
    text-align: center;
}

.links-container a {
    margin: 0 15px;
    color: #666;
    font-size: 14px;
}

.links-container a:hover {
    color: #8B2323;
}

.footer-section {
    background: #2b1b1b;
    color: #bdaaaaaa;
    padding: 30px 0;
    text-align: center;
}

.footer-uni {
    color: #e6e6e6;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-copy,
.footer-addr {
    font-size: 13px;
    margin: 5px 0;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }

    .nav-horizontal-list {
        flex-wrap: wrap;
    }

    .nav-item {
        flex: 0 0 33.33%;
        text-align: center;
    }

    .nav-item a {
        padding: 10px 5px;
        font-size: 13px;
        white-space: normal;
    }

    .content-row {
        flex-direction: column;
    }

    .col-half,
    .col-full,
    .two-column-list .news-item {
        width: 100%;
    }

    .banner-section {
        height: 220px;
    }

    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }
}