/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #1a237e;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #1a237e;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: #fb8c00;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fb8c00;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1a237e;
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hero区域样式 */
/* 主要内容区域的通用样式 */
.content {
    padding-top: 80px; /* 根据头部高度调整这个值 */
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* 确保从父元素底部开始向下显示 */
    right: 0; /* 从右侧展开 */
    left: auto; /* 取消左侧定位 */
    background-color: #f9f9f9;
    min-width: 250px; /* 增加最小宽度以容纳更多文字 */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* 增加z-index确保在最上层显示 */
    margin-top: 0; /* 确保没有间隙 */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 1001; /* 确保链接在最上层 */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 如果你想要点击而不是悬停触发 */
.dropdown.active .dropdown-content {
    display: block;
}





/* 响应式设计，针对窄屏设备 */
@media (max-width: 768px) {
    .content {
        padding-top: 120px; /* 在窄屏设备上可能需要更大的内边距 */
    }
    
    /* 在窄屏设备上调整下拉菜单方向 */
    .dropdown-content {
        right: 0; /* 从右侧展开 */
        left: auto; /* 取消左侧定位 */
        min-width: 250px; /* 增加最小宽度以容纳更多文字 */
    }
    
    /* 确保导航菜单适应窄屏 */
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
}

.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.9)), url('photo/d588a52017c8d8afefbd2358b9d07368.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
}

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: #1a237e;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background-color: #0d164a;
}

/* 关于我们区域 */
.about {
    padding: 60px 0;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 30px;
}

.about p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* 成员页面样式 */
.member-header {
    text-align: center;
    padding: 40px 0;
}

.member-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.member-header h2 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.member-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.member-teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    padding: 20px;
}

.team-card {
    background-color: white;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.member-list {
    list-style: none;
}

.member-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.member-list li:last-child {
    border-bottom: none;
}

/* 成就页面样式 */
.achievements {
    padding: 60px 0;
}

.achievements h1 {
    text-align: center;
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 40px;
}

.year-section {
    margin-bottom: 40px;
}

.year-section h2 {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.achievement-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-medal {
    font-size: 2rem;
    margin-right: 15px;
    min-width: 40px;
}

.achievement-medal.gold {
    color: #fbc02d;
}

.achievement-medal.silver {
    color: #90caf9;
}

.achievement-medal.bronze {
    color: #ffb74d;
}

.achievement-medal.rocket {
    color: #e57373;
}

.achievement-medal.trophy {
    color: #81c784;
}

.achievement-medal.sword {
    color: #7986cb;
}

.achievement-content h3 {
    font-size: 1.1rem;
    color: #1a237e;
    margin-bottom: 5px;
}

.achievement-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 合作单位页面样式 */
.cooperate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cooperate-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.cooperate-item:hover {
    transform: translateY(-5px);
}

.cooperate-logo {
    height: 150px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.cooperate-item h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cooperate-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 资讯页面样式 */
.news-header {
    text-align: center;
    padding: 40px 0 20px;
}

.news-header img {
    width: 700px;
    height: 700px;
    /* border-radius: 100%; */
    margin-bottom: 20px;
}

.news-header h1 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 20px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-item a {
    color: #1a237e;
    text-decoration: none;
}

.news-item a:hover {
    color: #fb8c00;
}

.news-meta {
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #999;
}

.news-date {
    margin-right: 15px;
}

.news-item p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    background-color: #1a237e;
    color: white;
    padding: 30px 0;
    margin-top: 200px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info p {
    margin-bottom: 5px;
}

.icp a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.icp a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        display: none;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 70px;
        left: 0;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul li {
        width: 100%;
        margin: 0;
    }
    
    nav ul li a {
        padding: 12px 20px;
        display: block;
    }
    
    .hamburger {
        display: block;
        margin-top: 10px;
    }
    
    .hero {
        background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.9)), url('photo/d588a52017c8d8afefbd2358b9d07368.jpg') center/cover;
        height: 100vh;
        padding-bottom: 30px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 20px;
    }
    
    .achievement-list {
        grid-template-columns: 1fr;
    }
    
    .cooperate-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .member-teams {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    nav ul li {
        margin-left: 10px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .about h2, .achievements h1 {
        font-size: 1.8rem;
    }
}