/* 联系我们页面样式 - GitHub 风格 */

/* 整体背景 - GitHub 深色主题 */
body {
    background: linear-gradient(180deg, #0d1117 0%, #010409 50%, #0d1117 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景光晕效果 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

/* 第二层光晕 */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

body > * {
    position: relative;
    z-index: 1;
}

/* 互动层：发光小点（萤火虫）与提示 */
.interaction-layer {
    position: absolute;
    inset: 0;
    pointer-events: none; /* 让鼠标事件透传到页面 */
    z-index: 1;
}

/* 精准跟随的鼠标环 */
#cursor-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(31, 164, 233, 0.25) 0%, 
        rgba(31, 164, 233, 0.4) 30%, 
        rgba(31, 164, 233, 0.6) 60%,
        rgba(31, 164, 233, 0.8) 80%,
        rgba(31, 164, 233, 0) 100%);
    border: 4px solid rgba(31, 164, 233, 1);
    box-shadow: 0 0 30px rgba(31, 164, 233, 1), 
                0 0 60px rgba(31, 164, 233, 0.8),
                0 0 100px rgba(31, 164, 233, 0.5),
                inset 0 0 20px rgba(31, 164, 233, 0.7);
    left: -9999px;
    top: -9999px;
    transform: translate(-50%, -50%);
    will-change: left, top;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
                height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(31, 164, 233, 1), 
                    0 0 60px rgba(31, 164, 233, 0.8),
                    0 0 100px rgba(31, 164, 233, 0.5),
                    inset 0 0 20px rgba(31, 164, 233, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(31, 164, 233, 1), 
                    0 0 80px rgba(31, 164, 233, 0.9),
                    0 0 120px rgba(31, 164, 233, 0.6),
                    inset 0 0 30px rgba(31, 164, 233, 0.9);
        transform: scale(1.05);
    }
}

.firefly {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,255,220,1) 0%, rgba(120,255,200,0.7) 35%, rgba(80,255,180,0.2) 70%, transparent 100%);
    box-shadow: 0 0 10px rgba(180,255,220,0.9), 0 0 20px rgba(120,255,200,0.6);
    animation: firefly-flicker 1.8s ease-in-out infinite;
}

@keyframes firefly-flicker {
    0%, 100% { opacity: 0.6; transform: scale(0.9); box-shadow: 0 0 8px rgba(180,255,220,0.7), 0 0 16px rgba(120,255,200,0.5); }
    50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px rgba(180,255,220,1), 0 0 28px rgba(120,255,200,0.8); }
}

.capture-toast {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    background: rgba(13,17,23,0.7);
    border: 1px solid rgba(139,92,246,0.4);
    color: #e5e7eb;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    display: none;
    z-index: 2;
}

.plus-bubble {
    position: absolute;
    color: #a5f5dc;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(165,245,220,0.9), 0 0 16px rgba(120,255,200,0.6);
    pointer-events: none;
    z-index: 2;
    will-change: transform, opacity;
}

/* 联系我们主区域 */
.contact-main {
    margin-top: 66px;
    background: transparent;
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem;
}

/* 联系内容包装器 - 左右布局 */
.contact-wrapper {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 左文案，右地图+联系方式 */
    gap: 2rem;
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: none;
    height: 100%;
}

/* 左侧一句话文案 */
.contact-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 0.8rem;
}

.contact-slogan {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 28ch;
}

/* 右侧整体容器：地图在上，联系方式在下 */
.contact-right {
    display: grid;
    grid-template-rows: minmax(220px, 34vh) 1fr;
    gap: 1.2rem;
}

/* 地图容器 - GitHub 风格 */
.map-container {
    width: 100%;
    height: 100%;
    background: rgba(22, 27, 34, 0.8);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.map-container:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
}

/* 联系信息区域 */
.contact-info-section {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact-container {
    width: 100%;
}

.contact-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(139, 92, 246, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: left;
    letter-spacing: 0.5px;
}

.contact-details {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.1rem 1rem; /* 缩小信息组整体 */
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.contact-details:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.6rem; /* 缩小每行高度 */
    background: transparent;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(139, 92, 246, 0.1);
    padding-left: 1.2rem;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.copy-btn {
    margin-left: auto;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #fff;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.copy-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.98);
}

.contact-icon {
    font-size: 1.2rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

.contact-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    min-width: 60px;
}

.contact-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* 两行邮箱换行表现更紧凑 */
.email-line { display: inline-block; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.3rem; }
    .contact-hero { padding: 0.5rem 0.5rem; }
    .contact-slogan { text-align: center; }

    .map-container {
        height: 380px;
    }

    .contact-title {
        text-align: center;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .contact-wrapper { padding: 1.2rem; gap: 1.2rem; }
    .contact-slogan { font-size: clamp(1.6rem, 4.4vw, 2.1rem); }

    .map-container {
        height: 320px;
    }

    .contact-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .contact-details {
        padding: 1rem 1.2rem;
    }

    .contact-item {
        padding: 0.8rem 0.5rem;
        gap: 0.8rem;
    }

    .contact-icon {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }

    .contact-label {
        font-size: 0.85rem;
        min-width: 55px;
    }

    .contact-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 1.5rem 0.8rem;
    }

    .contact-wrapper {
        padding: 1rem;
        gap: 1rem;
        border-radius: 12px;
    }

    .map-container {
        height: 260px;
        border-radius: 10px;
    }

    .contact-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .contact-details {
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }

    .contact-item {
        padding: 0.7rem 0.4rem;
        gap: 0.7rem;
    }

    .contact-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .contact-label {
        font-size: 0.8rem;
        min-width: auto;
    }

    .contact-value {
        font-size: 0.85rem;
        word-break: break-all;
    }
}
