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

/* 定义全局CSS变量，方便主题统一管理 */
:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #333;
    --text-secondary: #666;
    --accent-color: #007aff;
    --accent-hover: #0051d5;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* 背景图片 */
body {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 添加动态背景效果 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 40%),
                radial-gradient(circle at 80% 80%, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0) 40%);
    z-index: -1;
}

/* 液态玻璃效果通用类 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border-radius: 16px;
}

/* 深色液态玻璃效果 */
.glass-effect-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border-radius: 16px;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏容器样式 */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 导航栏样式 - 与contact.html一致的液态玻璃效果 */
.navbar {
    margin: 10px;
    padding: 15px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    position: sticky;
    top: 10px;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    position: static;
}

/* 链接样式 - iOS风格 */
.nav-links a {
    color: var(--accent-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-color);
}

.nav-links a::after {
    display: none;
}

/* 汉堡菜单按钮 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* 汉堡菜单动画 */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(0px, 0px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 0px);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* 显示汉堡菜单 */
    .hamburger-menu {
        display: flex;
        margin-left: auto; /* 确保汉堡菜单在右侧 */
    }
    
    /* 隐藏默认导航菜单 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        border-radius: 0 0 0 16px;
        margin: 0; /* 重置可能的外边距 */
    }
    
    /* 显示导航菜单 */
    .nav-links.active {
        right: 0;
    }
    
    /* 为移动端菜单添加间距 */
    .nav-links li {
        margin-bottom: 15px;
        width: 100%;
        list-style: none; /* 移除列表标记 */
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 500;
        text-decoration: none; /* 移除下划线 */
        box-sizing: border-box; /* 确保padding不会增加元素宽度 */
    }
    
    .nav-links a:hover {
        background: rgba(0, 122, 255, 0.1);
        border-radius: 8px;
    }
    
    /* 确保在移动端隐藏导航链接 */
    .nav-links:not(.active) {
        display: flex !important; /* 覆盖默认样式 */
    }
}

/* 横幅区域 - 液态玻璃效果 */
.banner {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
    padding: 5rem 0;
    color: var(--text-primary);
}

.banner h1 {
    color: var(--accent-color); /* 蓝色标题 */
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

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

section {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
}

h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color); /* 蓝色下划线 */
    padding-bottom: 0.5rem;
    font-weight: 600;
}

/* 页脚样式 - 液态玻璃效果 */
footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 2rem;
    text-align: center;
}

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

/* 添加iOS风格按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 12px; /* 圆角更大 */
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 122, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}


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

.department-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.15);
}

.department-card h3 {
    color: var(--accent-color); /* iOS蓝色标题 */
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 活动风采区域 */
.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: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.join-section p {
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}


/* 联系页面样式 */
.page-title {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
}

.page-title h1 {
    color: var(--accent-color);
    font-weight: 700;
}

.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: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.contact-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.person-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.person-card:hover {
    box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.15);
}

.person-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

@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;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

.detail-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.15);
}

.detail-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.process-steps li {
    position: relative;
    padding: 2rem 2rem 2rem 5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.process-steps li:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.15);
}

.step-number {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--accent-color);
    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;
    color: var(--text-secondary);
}


/* 添加动画效果 */
/* 页面过渡动画 */
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, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

h5 {
   color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1.5rem;
    }
}