: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: #9E020B;
    margin: 2px 0;
    transition: all 0.3s;
}

/* 轮播图 */
.banner {
    margin: 20px 0;
}

.swiper {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.slide-caption h2 {
    font-size: 24px;
    margin: 0;
}

/* 自定义导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgb(33,160,243) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* 覆盖默认的prev和next文本 */
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 22px !important;
    font-weight: bold;
    font-family: "SimSun", serif; /* 使用宋体，显示更好看的箭头 */
}

.swiper-button-prev:after {
    content: "<" !important;
}

.swiper-button-next:after {
    content: ">" !important;
}

/* 轮播图无数据状态 */
.swiper .no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 18px;
}

/* 轮播图加载状态 */
.swiper .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 18px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 通知公告 */
.notice {
    margin: 30px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.more-btn {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

.more-btn:hover {
    color: #dc3545;
}

.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.notice-date {
    width: 80px;
    color: #666;
    font-size: 14px;
}

.notice-title {
    flex: 1;
    text-decoration: none;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-title:hover {
    color: #dc3545;
}

/* 学习进度和党员身份 */
.progress-status {
    margin: 30px 0;
}

.progress-status-wrapper {
    display: flex;
    gap: 20px;
}

.learning-progress, .party-status {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.progress-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 0;
}

.circle-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
}

.circle-wrapper svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-wrapper svg circle {
    stroke-linecap: round;
}

.circle-wrapper svg circle:nth-child(1) {
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
}

.circle-wrapper svg circle:nth-child(2) {
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .label {
    display: block;
    font-size: 14px;
    color: #666;
}

.progress-text .value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.progress-number {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

.progress-number .current {
    color: #8bc34a;
    font-weight: bold;
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.status-title {
    font-size: 28px;
    font-weight: bold;
    color: #dc3545;
}

.status-subtitle {
    font-size: 20px;
    color: #666;
    margin-top: 10px;
}

/* 底部导航栏 */
.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: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .nav {
        width: 100%;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .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);
    }
    
    /* 轮播图移动端适配 */
    .swiper {
        height: 250px;
    }
    
    .slide-caption h2 {
        font-size: 18px;
    }
    
    /* 学习进度和党员身份移动端适配 */
    .progress-status-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .learning-progress, .party-status {
        width: 100%;
    }
    
    /* 通知公告移动端适配 */
    .notice-date {
        width: 70px;
        font-size: 12px;
    }
    
    .notice-title {
        font-size: 14px;
    }
    
    /* 底部链接移动端适配 */
    .links-wrapper {
        flex-direction: column;
    }
    
    .links-title {
        margin-bottom: 10px;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 18px !important;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .detail-info {
        font-size: 0.9rem;
    }
    
    .swiper {
        height: 200px;
    }
    
    .slide-caption {
        padding: 10px;
    }
    
    .slide-caption h2 {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .status-title {
        font-size: 22px;
    }
    
    .status-subtitle {
        font-size: 16px;
    }
    
    .circle-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .progress-text .value {
        font-size: 20px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* 其他样式保持不变 */

/* 加载状态样式 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top: 2px solid #9E020B;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 党员身份标签样式 */
.identity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.identity-tag {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f5f5f5;
    color: #333;
}

.identity-tag.formal {
    background-color: #9E020B;
    color: white;
}

.identity-tag.assistant {
    background-color: #01903d;
    color: white;
}

.identity-tag.probationary {
    background-color: #f44336;
    color: white;
}

.identity-tag.secretary {
    background-color: #3f51b5;
    color: white;
}

.identity-tag.committee {
    background-color: #2196f3;
    color: white;
}

.identity-tag.admin {
    background-color: #424242; /* 系统管理员 - 深灰色 */
    color: white;
}