/* 基础样式和全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'MainFont';
    src: url('/fonts/Font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: MainFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

:root {
    --primary-color: #C5C1FF;
    --plasma-start: #7B68EE;
    --plasma-middle: #FF69B4;
    --plasma-end: #00BFFF;
    --pulse-color: rgba(123, 104, 238, 0.3);
    --tag-bg: #f0f4ff;
    --transition-default: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* 修复未定义的渐变变量 */
    --grad-start: var(--plasma-start);
    --grad-middle: var(--plasma-middle);
    --grad-end: var(--plasma-end);
    --text-accent: var(--plasma-start);
    --gray: #666;
}

/* 头部和导航融合样式 - 关键修改 */
.header-container {
    background: linear-gradient(135deg, 
                    var(--primary-color) 40%, 
                    var(--grad-start) 60%, 
                    var(--grad-middle) 80%, 
                    var(--grad-end) 100%);
    position: relative;
    transition: background 1.5s ease;
}

/* 头部样式 */
.header {
    padding: 30px;
    color: #333;
    position: relative;
    z-index: 1;
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    justify-content: space-between;
}

/* 粒子动画样式保持不变 */
.plasma-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    background: var(--pulse-color);
    z-index: 0;
    animation: pulse 4s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.plasma-particle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    animation: plasma-flow 8s infinite ease-in-out;
}

@keyframes plasma-flow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -5px) scale(1.2); }
    50% { transform: translate(5px, 10px) scale(0.8); }
    75% { transform: translate(-10px, 5px) scale(1.1); }
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.4);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    margin-right: 20px;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(123, 104, 238, 0.6);
}

.info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    position: relative;
    z-index: 2;
}

.info .title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
    color: #333;
    position: relative;
    z-index: 2;
}

.contact {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(197, 193, 255, 0.2);
}

.contact-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 193, 255, 0.3);
}

/* 导航栏样式 - 与头部完全融合 */
.nav {
    /* 使用与头部相同的渐变背景，确保颜色完全融合 */
    background: linear-gradient(135deg, 
                    var(--primary-color) 40%, 
                    var(--grad-start) 60%, 
                    var(--grad-middle) 80%, 
                    var(--grad-end) 100%);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.8rem 0 1rem;
    /* 移除任何可能的分隔线 */
    border-top: none;
}

.nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
}

/* 导航按钮 - 始终显示边框 */
.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* 关键：始终显示边框 */
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.4s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.7);
}

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

/* 主体内容样式保持不变 */
.content {
    padding: 30px;
    background: transparent;
}

.section {
    margin-bottom: 40px;
    background: transparent;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--text-accent);
}

/* 滚动动画相关样式 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 社团简介样式 */
.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.intro-text {
    flex: 1 1 400px;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.intro-img {
    flex: 1 1 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.6s ease;
}

.intro-img:hover {
    transform: scale(1.02);
}

.intro-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 7s ease;
}

.intro-img:hover img {
    transform: scale(1.05);
}

/* 特色活动样式 */
.activities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.activity-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    background-color: white;
    cursor: pointer;
    transform: translateY(0) scale(1);
}

.activity-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 7s ease;
}

.activity-card:hover .activity-img {
    transform: scale(1.05);
}

.activity-info {
    padding: 15px;
}

.activity-info h4 {
    margin-bottom: 8px;
    color: var(--text-accent);
    font-size: 1.2rem;
}

.activity-info p {
    color: #666;
    opacity: 0.9;
    line-height: 1.5;
}

/* 技术栈样式 */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-item {
    flex: 1 1 200px;
    background-color: var(--tag-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.5s ease;
}

.tech-item:hover {
    background-color: var(--text-accent);
    color: white;
    transform: translateY(-3px) scale(1.02);
}

.tech-item i {
    font-size: 3rem;
    color: var(--text-accent);
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.tech-item:hover i {
    color: white;
}

.tech-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tech-item p {
    transition: color 0.5s ease;
}

.tech-item:hover p {
    color: white;
}

/* 核心成员样式 */
.members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.member-card {
    text-align: center;
    transition: transform 0.5s ease;
    position: relative;
}

.member-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 3px solid var(--tag-bg);
    transition: border-color 0.5s ease;
}

.member-card:hover .member-avatar {
    border-color: var(--text-accent);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.member-card:hover .member-avatar img {
    transform: scale(1.1);
}

.member-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.05rem;
    color: var(--text-accent);
}

.member-role {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 成员联系方式弹窗 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.show {
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: var(--text-accent);
    transform: rotate(90deg);
}

.modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--tag-bg);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-methods {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--tag-bg);
    border-radius: 8px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.contact-method:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--text-accent);
    transition: color 0.4s ease;
}

.contact-method:hover i {
    color: white;
}

/* 加入我们样式 */
.join-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.join-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.join-btn {
    display: inline-block;
    background-color: var(--text-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.join-btn:hover {
    background-color: var(--grad-middle);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 标签容器样式 */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: transparent;
    padding: 15px;
    border-radius: 15px;
    justify-content: flex-start;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--tag-bg);
    color: var(--text-accent);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(197, 193, 255, 0.1);
    transition: all 0.4s ease;
    white-space: nowrap;
    transform: translateY(0);
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(197, 193, 255, 0.2);
}

/* 版权与信息标签样式 */
.copyright-notice {
    background-color: #ffe6e6;
    color: #ff3333;
    border: 2px solid #ff3333;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    display: inline-block;
}

.client-info-tag {
    background-color: #ffe6e6;
    color: #ff3333;
    border: 2px solid #ff3333;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.client-info-tag:hover {
    background-color: #ff3333;
    color: white;
}

/* 工作成就样式 */
.achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
    background: transparent;
}

.achievement-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(197, 193, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    transform: translateY(0);
}

.achievement-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.achievement-item i {
    color: var(--text-accent);
    font-size: 24px;
    margin-bottom: 12px;
}

.achievement-item .number {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.achievement-item .label {
    font-size: 14px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    opacity: 0.9;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: all 0.4s ease;
    transform: translateY(0);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.2);
}

/* 响应式增强 */
@media (max-width: 992px) {
    .container {
        margin: 0 auto;
        border-radius: 0 0 15px 15px;
    }
    
    .header {
        padding: 25px;
    }
    
    .content {
        padding: 25px;
    }
}

@media (max-width:768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact {
        justify-content: center;
    }
    
    .copyright-notice {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .skill-list {
        padding: 10px;
        gap: 8px;
    }
    
    .skill-tag, .client-info-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .achievement-list {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        flex-direction: column;
    }
    
    .info h1 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .activity-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .content {
        padding: 20px 15px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .contact-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .activities {
        grid-template-columns: 1fr;
    }
    
    .members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .info h1 {
        font-size: 20px;
    }
    
    .contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .join-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
    