/* 联系页面样式 */
/* 与首页一致的动态背景 */
body {
    background: transparent; /* 移除固定背景，让动态背景显示 */
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 移除重复的CSS变量定义，直接使用统一变量 */
:root {
    --card-hover: translateY(-5px);
    --z-particles: -2;
}

/* 移除页面特定的背景定义，使用统一背景系统 */

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-particles);
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 团队部分样式 */
.team-section {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(52, 152, 219, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.team-bio {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* 联系卡片样式优化 */
.contact-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(52, 152, 219, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.contact-btn:hover {
    background: rgba(52, 152, 219, 0.25);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* QQ群部分样式 */
.qrcode-section {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 40px 0;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qrcode-container {
    margin-bottom: 20px;
}

.qq-group-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qq-group-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.qq-group-icon:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 35px rgba(18, 183, 245, 0.4);
}

.qq-group-icon:hover::before {
    left: 100%;
}

.qq-group-icon i {
    transition: transform 0.3s ease;
}

.qq-group-icon:hover i {
    transform: scale(1.1);
}

/* 联系方式卡片优化 */
.contact-method {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.contact-method div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-method div:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* 安全声明样式 */
.safety-declaration {
    position: relative;
    overflow: hidden;
}

.safety-declaration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px 3px 0 0;
}

.safety-declaration h5 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.safety-declaration i {
    color: #4CAF50;
}

/* 自愿添加提示样式 */
.voluntary-note {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
    margin-top: 15px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qrcode-section {
        margin: 20px 0;
        padding: 30px 20px;
    }
    
    .qrcode-container img {
        width: 150px !important;
        height: 150px !important;
    }
    
    .contact-method {
        align-items: stretch;
    }
    
    .contact-method div {
        justify-content: center;
    }
}

/* 装饰气泡样式 */
.bubble-1, .bubble-2 {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.1);
    z-index: -1;
    animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 8%;
    animation-delay: -4s;
}

@keyframes bubbleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.2;
    }
}

/* 修复页面头部样式 */
.page-header {
    padding: clamp(40px, 8vh, 60px) 0 clamp(30px, 5vh, 40px);
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 0; /* 移除额外的margin，因为main已经有padding-top */
}

.page-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    line-height: 1.2;
}

.page-description {
    max-width: min(800px, 90vw);
    margin: 0 auto clamp(25px, 4vh, 40px);
    color: var(--text-color);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(12px, 2vh, 15px) clamp(15px, 3vw, 20px);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: clamp(20px, 4vh, 30px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(6px, 1.5vh, 8px) clamp(12px, 2.5vw, 15px);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 1);
}

.contact-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.contact-card:hover {
    transform: var(--card-hover);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.contact-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info {
    background: rgba(33, 150, 243, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info-section {
    margin-top: 50px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    border: 2px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content {
    color: var(--text-light);
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 10px;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .info-card {
        padding: 20px 15px;
    }
}