/* 联系页面样式 */
/* 与首页一致的动态背景 */
body {
    background: linear-gradient(135deg, #ffccbc, #f8bbd9, #e1bee7, #c5cae9);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景图片 */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: -2;
    background: url('../candy.jpg') center/cover no-repeat;
    transition: transform 0.2s ease-out;
    filter: brightness(0.8) saturate(1.1);
}

.dynamic-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 112, 67, 0.2) 0%, 
        rgba(240, 98, 146, 0.15) 30%, 
        rgba(77, 208, 225, 0.1) 60%,
        transparent 80%);
    transition: all 0.3s ease;
}

.bg-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at calc(100% - var(--mouse-x, 50%)) calc(100% - var(--mouse-y, 50%)), 
        rgba(171, 71, 188, 0.15) 0%, 
        rgba(255, 171, 64, 0.1) 40%,
        transparent 70%);
}

/* 粒子效果 */
.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), var(--accent));
    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);
    transform: scale(1.05);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-role {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(0, 134, 195, 0.1);
    padding: 3px 15px;
    border-radius: 20px;
}

.team-bio {
    color: var(--light-text);
    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(33, 150, 243, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* 联系卡片样式优化 */
.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);
    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);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(33, 150, 243, 0.1);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-3px);
}

/* 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);
}

/* 安全声明样式 */
.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(120px, 15vh, 140px) 0 clamp(30px, 5vh, 40px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -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(--light-text);
    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: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    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), var(--accent));
    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(--dark-text);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--light-text);
    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);
    font-weight: 600;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-dark);
    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);
}

.info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content {
    color: var(--light-text);
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 10px;
}

.info-content a {
    color: var(--primary);
    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;
    }
}