/* ======================= 全局样式和变量 ======================= */

/* 引入谷歌字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 使用CSS变量来定义一套深色主题 */
:root {
    --primary-color: #4f8ff7;
    --secondary-color: #ffffff;
    --background-color: #262626ec;
    /* 我们不再直接使用 --light-background，而是通过 rgba 定义半透明背景 */
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --container-width: 1100px;
}


/* 基础重置和默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 【新增】创建背景颜色流动的动画 */
@keyframes animate-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);

    /* 关键修改：使用两个背景图像叠加 */
    background-image: 
        /* 顶层：斜向流线 (让线条更明显一点) */
        repeating-linear-gradient(
            -45deg,
            rgba(47, 79, 193, 0.422),
            rgba(189, 37, 37, 0.03) 1px,
            transparent 1px,
            transparent 30px
        ),
        /* 底层：缤纷的、会动的颜色渐变 */
        linear-gradient(
            -45deg, 
            #101a2e, /* 深蓝 */
            var(--background-color),
            #112921 /* 深绿 */
        );
    
    background-size: auto, 400% 400%; /* 第一个背景(线条)尺寸自动，第二个(颜色)放大4倍 */
    animation: animate-gradient 20s ease infinite; /* 应用动画 */
}

/* ======================= 通用样式类 ======================= */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: rgba(28, 28, 28, 0.386); /* 从 0.9 改为 0.6，透明度更高 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 加一个淡淡的亮色边框增加轮廓感 */
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #87b1f9;
}

/* ======================= 页眉和导航栏 ======================= */
header {
    background-color: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo i {
    margin-right: 8px;
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* ======================= 成员列表 ======================= */

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background-color: rgba(40, 40, 40, 0.3); /* 从纯色改为 70% 不透明度 */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); /* 同样加上亮色边框 */
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.member-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.member-card .role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.member-card .bio {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ======================= 其他区域 ======================= */

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 20px auto 0;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
}

/* ======================= 页脚 ======================= */
footer {
    background-color: #111;
    color: #eee;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

/* ======================= 响应式设计 ======================= */
@media (max-width: 768px) {
    /* 【已修改】调整移动端菜单背景为半透明 */
/* style.css Line 233 */
.nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(28, 28, 28, 0); /* 移动端菜单可以稍微不透明一些，保证文字清晰 */
    backdrop-filter: blur(8px);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    h2 {
        font-size: 2rem;
    }
}
/* style.css 新增样式 */

.year-group {
    margin-bottom: 60px; /* 增加不同年份之间的垂直间距 */
}

.year-group:last-child {
    margin-bottom: 0; /* 最后一个年份组不需要下边距 */
}

.year-title {
    font-size: 1.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

/* 为年份标题下方添加一条装饰性的线条 */
.year-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.5;
}