:root {
    --primary-color: #c7000b;
    --secondary-color: #ffcb05;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --bg-dark: #b71c1c;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部导航栏 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* 主导航栏 */
.main-header {
    background: url("https://cee.hutb.edu.cn/r/cms/jsjxy/default/images/header.jpg") no-repeat center center;
    background-size: cover;
    color: var(--light-text);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    background-color: #fff;
    flex: 1;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #9E020B;
}

.detail-info {
    color: #9E020B;
    font-size: 1.2rem;
    margin-left: 10px;
    font-weight: bold;
}

/* 修改导航菜单样式 */
.nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-left: 30px;
    position: relative;
}

.nav li a {
    padding: 10px 0;
    font-size: 1.1rem;
    transition: color 0.3s;
    color: #9E020B;
}

.nav li a:hover {
    color: #9E020B;
}

.nav li.active a {
    color: #9E020B;
    font-weight: bold;
}

.nav li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #9E020B;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 2px 0;
    transition: all 0.3s;
}

/* 通知公告页面样式 */
.page-header {
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #9E020B;
}

.page-header h1 {
    color: #9E020B;
    font-size: 1.8rem;
    font-weight: bold;
}

.notice-list-section {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.section-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #333;
    position: relative;
    padding-left: 15px;
    font-weight: bold;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background-color: #9E020B;
    border-radius: 2px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    position: relative;
}

.notice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #9E020B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.notice-content {
    flex-grow: 1;
}

.notice-content a {
    color: #333;
    line-height: 1.6;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: bold;
}

.notice-content .publish-info {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.notice-content a:hover {
    color: #9E020B;
}

.notice-date {
    color: #888;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-title {
    flex-grow: 1;
    transition: color 0.3s;
}

.notice-title:hover {
    color: var(--primary-color);
}

/* 重要通知标记 */
.notice-important {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #FF5252;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.notice-important::before {
    content: '!';
    font-weight: bold;
}

/* 底部导航栏 */
.footer {
    background-image: url('../images/footer.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

/* 友情链接部分 */
.footer-links {
    padding: 15px 0;
    position: relative;
    z-index: 2;
}

.links-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.links-title {
    font-weight: bold;
    color: #D7C1C1;
    margin-right: 10px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.6;
    padding: 0;
    margin-bottom: 5px;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.links-list a {
    color: #D7C1C1;
    margin: 0 10px 5px;
    transition: opacity 0.3s;
    display: inline-block;
    line-height: 1.6;
    padding: 0;
}

.links-list a:hover {
    opacity: 0.8;
}

/* 底部信息部分 */
.footer-info {
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.copyright {
    text-align: center;
    width: 100%;
    padding: 20px 0;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .logo img {
        height: 40px;
    }
    
    .logo-text, .detail-info {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        width: 80%;
    }
    
    .logo-text, .detail-info {
        font-size: 1rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .menu-toggle {
        display: flex;
        width: 20%;
        justify-content: flex-end;
    }
    
    .nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .nav.active {
        max-height: 300px;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav li.active::after {
        display: none;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* 通知公告页面移动端适配 */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .notice-list-section {
        padding: 15px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .notice-item {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    .notice-icon {
        margin-bottom: 10px;
    }
    
    .notice-content a {
        font-size: 15px;
    }
    
    .notice-date {
        margin-top: 5px;
        margin-right: 0;
    }
    
    .notice-important {
        top: 15px;
        right: 5px;
    }
    
    /* 底部导航栏移动端适配 */
    .links-wrapper {
        flex-direction: column;
    }
    
    .links-title {
        margin-bottom: 10px;
    }
    
    .links-list {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo-text, .detail-info {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .notice-content a {
        font-size: 14px;
    }
    
    .notice-content .publish-info {
        font-size: 12px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}