* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', sans-serif;
}

html, body {
    color: #000;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
    overflow-x: hidden;
    position: relative;
    font-family: MicrosoftYaHei;
    background: #fff;
    min-width: 1400px;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img,
input {
    border: 0;
    outline: none;
}

:root {
    --party-red: #c8102e;
    --tech-blue: #0057b8;
    --light-gray: #f5f7fa;
    --text-gray: #333;
    --light-text: #666;
}

/* 顶部党建标识栏 */
.top-bar {
    background-color: var(--party-red);
    color: white;
    padding: 6px 10%;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}


/* 轮播横幅 */
.banner {
    height: 450px;
    background: linear-gradient(120deg, var(--tech-blue), #003366);
    position: relative;
    overflow: hidden;
}

.banner-content {
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    z-index: 2;
}

.banner-content img{width: 100%;height: 300px;object-fit: cover;}


/* 党建引领专区 */
.party-section {
    padding: 60px 10%;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 32px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.section-title .line {
    width: 80px;
    height: 3px;
    background-color: var(--party-red);
    margin: 0 auto;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.party-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.party-card:hover {
    transform: translateY(-5px);
}

.party-card h4 {
    color: var(--party-red);
    font-size: 18px;
    margin-bottom: 15px;
}

.party-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 14px;
}

/* 学院概况与专业建设 */
.info-section {
    padding: 60px 10%;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-block h4 {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 20px;
    border-left: 4px solid var(--tech-blue);
    padding-left: 15px;
}

.info-block p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 学院风采轮播 */
.carousel {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    animation: carousel 12s infinite;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://picsum.photos/id/1076/800/400');
    animation-delay: 0s;
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://picsum.photos/id/1071/800/400');
    animation-delay: 4s;
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://picsum.photos/id/1067/800/400');
    animation-delay: 8s;
}

@keyframes carousel {
    0%, 25% {
        opacity: 1;
    }

    33%, 92% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.major-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.major-item {
    padding: 12px 15px;
    background-color: var(--light-gray);
    border-radius: 4px;
    color: var(--text-gray);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.major-tag {
    font-size: 12px;
    color: white;
    background-color: var(--tech-blue);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

/* 校企合作板块 */
.coop-section {
    padding: 60px 10%;
    background-color: var(--light-gray);
}

.coop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.coop-logo {
    background-color: white;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s;
}

.coop-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 新闻动态 */
.news-section {
    padding: 60px 10%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.news-img {
    height: 200px;
    background-color: #eaecef;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--party-red);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.news-title:hover {
    color: var(--party-red);
}

.news-desc {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--party-red);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .top-bar, header, section, footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    nav ul {
        gap: 15px;
        font-size: 14px;
    }

    .party-grid, .news-grid, .coop-grid {
        grid-template-columns: 1fr;
    }

    .info-container, .footer-grid {
        grid-template-columns: 1fr;
    }

    .banner-text h2 {
        font-size: 28px;
    }

    .major-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}