/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 导航栏样式 - 黑色主色调 */
.navbar {
    background-color: #000;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #22c32e; /* 绿色强调色 */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

/* 字体悬浮效果 */
.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4CAF50; /* 绿色下划线 */
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #4CAF50; /* 悬浮时文字变绿 */
}

.nav-links a:hover::after {
    width: 100%; /* 下划线展开效果 */
}

/* 横幅区域 - 黑色背景 */
.banner {
    background-color: #000;
    text-align: center;
    padding: 5rem 0;
    color: white;
}

.banner h1 {
    color: #4CAF50; /* 绿色标题 */
    margin-bottom: 1rem;
}

/* 内容区域样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: #000; /* 黑色标题 */
    margin-bottom: 2rem;
    border-bottom: 2px solid #4CAF50; /* 绿色下划线 */
    padding-bottom: 0.5rem;
}

/* 页脚样式 - 黑色背景 */
footer {
    background-color: #000;
    color: white;
    padding: 2rem;
    text-align: center;
}

.contact-info {
    margin-bottom: 1rem;
}

/* 添加绿色强调按钮样式 */
.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3d8b40; /* 深绿色悬停效果 */
}


/* 部门卡片样式 */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.department-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
}

.department-card h3 {
    color: #4CAF50; /* 绿色标题 */
    margin-bottom: 1rem;
}

/* 活动风采区域 */
.activities-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* 加入我们区域 */
.join-section {
    text-align: center;
    padding: 3rem 0;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.join-section p {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* 联系页面样式 */
.page-title {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.page-title h1 {
    color: #4CAF50;
}

.contact-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-person h2 {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    list-style: none;
}

.contact-item strong {
    color: #000;
    display: block;
    margin-bottom: 0.5rem;
}

.person-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.person-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* 招新详情页面样式 */
.recruitment-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.recruitment-intro,
.recruitment-details,
.recruitment-process,
.recruitment-notice {
    margin-bottom: 4rem;
}

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

.detail-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.detail-item h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.process-steps {
    list-style: none;
    counter-reset: step-counter;
}

.process-steps li {
    position: relative;
    padding: 2rem 2rem 2rem 5rem;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.step-number {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.recruitment-notice ul {
    padding-left: 1.5rem;
    line-height: 1.8;
}

.recruitment-notice li {
    margin-bottom: 0.8rem;
}


/* 添加动画效果 */
/* 页面过渡动画 */
body {
    transition: opacity 0.3s ease-in-out;
}

/* 文本飘动动画 */
.float-in {
    animation: floatIn 0.8s ease-out forwards;
}

@keyframes floatIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: translate(0);
    }
}

/* 页面元素进入动画 */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏滚动效果 */
.navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}