/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei";
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

ul, li {
    list-style: none;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 头部操作链接样式 */
.header-action {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.header-action:hover {
    color: #B80E15;
    text-decoration: underline;
}

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

.logo {
    height: 40px;
    margin-right: 10px;
}

.site-title {
    color: #c00;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-box {
    display: flex;
    border: 1px solid #CF0A0A;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 6px 10px;
    width: 100%;
    outline: none;
}

.search-box button {
    background-color: #c00;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
}

.search-box button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.main-nav {
    background-color: #c00;

}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

 .divider{
    width: 100%;
    height: 1px;
    display: block;
    margin-top: 10px;
    background-color: #E9E9E9;
}

/* Banner样式 */
#banner {
    margin-top: 15px;
    position: relative;
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.banner-slide {
    display: none;
    position: relative;
}

.banner-slide.active {
    display: block;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
}

.banner-caption h2 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.banner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
}

.banner-dots span.active {
    background-color: #c00;
}



.section-title {
    border-bottom: 2px solid #c00;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.section-title h2 {
    display: inline-block;
    background-color: #c00;
    color: #fff;
    padding: 5px 15px;
    font-size: 1.1rem;
    border-radius: 4px 4px 0 0;
}

.more {
    float: right;
    color: #666;
    font-size: 0.9rem;
}

/* 党建专栏 */
#party-building {
    margin: 20px 0;
}

.section-banner {
    margin-bottom: 15px;
}

.icon-links {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.icon-link {
    padding: 5px;
    text-align: center;
}

.icon-link a {
    display: block;
}

.icon-wrapper {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.icon-wrapper:hover {
    background-color: #ffebeb;
}

.icon-wrapper img {
    width: 40px;
    height: 40px;
}

/* 教学资源 */
#resources {
    margin: 20px 0;
}

.resource-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.resource-item {
    padding: 5px;
    text-align: center;
}

.resource-item a {
    display: block;
}

.resource-icon {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.resource-icon:hover {
    background-color: #ffebeb;
}

.resource-icon img {
    width: 40px;
    height: 40px;
}

.resource-item h3 {
    font-size: 1rem;
    font-weight: normal;
}

/* 党校风采 */
#school-highlights {
    margin: 20px 0;
}

.highlights-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.highlight-item {
    position: relative;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.highlight-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
}

.highlight-caption h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date {
    font-size: 0.8rem;
    color: #ddd;
}

/* 底部区域 */
footer {
    background-color: #c00;
    color: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-info {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.8;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.qrcode img {
    width: 80px;
    height: 80px;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;
}

.qrcode p {
    margin-top: 5px;
    font-size: 0.8rem;
}
