* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft Yahei', sans-serif;
}
 a { text-decoration: none; color: inherit; }
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;
}

/* å¤´éƒ¨å¯¼èˆª */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width:450px;
}
.logo img{display:block;width:100%;}
.logo h1 {
    font-size: 22px;
    color: var(--text-gray);
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    color: var(--party-red);
    border-bottom: 2px solid var(--party-red);
}

/* è½®æ’­æ¨ªå¹… */
/*banner*/

.banner,
.banner div.slick-list,
.banner .slick-slide a,
.banner .slick-slide a img {
  width: 100%;
  height: auto;
}

.banner {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.banner::after {
  /*content: '';*/
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26.76%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 22, 35, 0.2) 100%);
  pointer-events: none;
}

.banner .slick-slide a {
  display: block;
  overflow: hidden;
  position: relative;
}

.banner .slick-slide a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 17.89%;
  opacity: 0.4;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.banner .slick-slide img {
  display: block;
  width: 100%;
  transform: scale(1.1);
  transition: all 5s ease-out;
  object-fit: cover;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
  .banner .slick-slide img {
    transform: scale(1);
  }
}

.banner .img_scale img {
  transform: scale(1);
}

.banner .slick-slide h3 {
  position: absolute;
  bottom: 0.4rem;
  left: 2.1rem;
  right: 4rem;
  font-size: 0.32rem;
  font-weight: bold;
  color: #FFFFFF;
  z-index: 1;
}

.banner .slick-dots {
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: 27px;
  font-size: 0;
  z-index: 1;
}

.banner .slick-dots li {
  vertical-align: middle;
  margin: 0 5px;
  padding: 0;
  width: 10px;
  height: 10px;
  border: 1px solid #B7B7B7;
  border-radius: 50%;
  font-size: 0;
  opacity: 1;
  transition: all 0.5s;
}

.banner .slick-dots li.slick-active {
  background: #fff;
  border-color: #fff;
}

.banner .slick-dots li button {
  display: none;
}


/* å…šå»ºå¼•é¢†ä¸“åŒº */
.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: 110px;
    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;
    flex-direction: column;
    padding: 10px;
}

.coop-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.coop-logo .img{display: flex;height:40px;align-items: center;justify-content: center;}
.coop-logo .img img{display:block;max-width: 100%;max-height:100%;}
.coop-logo p{
    font-size: 16px;
    margin-top: 10px;
}
/* æ–°é—»åŠ¨æ€ */
.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 {
    background-color: #2c3e50;
    color: white;
    padding: 40px 10%;
}

.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;
    }
}