/**
 * 社交媒体展示组件
 * 高端设计 - 香槟金 + 纯黑配色
 */

/* 社交媒体板块 */
.footer-social-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(230, 191, 136, 0.15);
    text-align: center;
}

.social-title {
    font-size: 20px;
    font-weight: 700;
    color: #e6bf88;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e6bf88, transparent);
}

/* 社交图标容器 */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* 单个图标包装器 */
.social-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.social-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(230, 191, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-icon-wrapper:hover::before {
    opacity: 1;
}

/* 图标圆形容器 */
.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid rgba(230, 191, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 微光效果 */
.social-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(230, 191, 136, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.social-icon svg {
    width: 32px;
    height: 32px;
    color: #e6bf88;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 悬停效果 */
.social-icon-wrapper:hover .social-icon {
    transform: translateY(-8px) scale(1.1);
    border-color: #e6bf88;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    box-shadow: 
        0 12px 32px rgba(230, 191, 136, 0.4),
        0 0 40px rgba(230, 191, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-icon-wrapper:hover .social-icon svg {
    color: #f4d9a8;
    transform: scale(1.15);
}

/* 标签文字 */
.social-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.social-icon-wrapper:hover .social-label {
    color: #e6bf88;
    transform: translateY(-2px);
}

/* 二维码弹窗 */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.qrcode-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 遮罩层 */
.qrcode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 弹窗内容 */
.qrcode-content {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(230, 191, 136, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(230, 191, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 关闭按钮 */
.qrcode-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.qrcode-close svg {
    width: 20px;
    height: 20px;
    color: #999;
    transition: all 0.3s ease;
}

.qrcode-close:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: rotate(90deg);
}

.qrcode-close:hover svg {
    color: #ef4444;
}

/* 弹窗头部 */
.qrcode-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.qrcode-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 2px solid rgba(230, 191, 136, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(230, 191, 136, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.qrcode-icon svg {
    width: 32px;
    height: 32px;
    color: #e6bf88;
}

.qrcode-title {
    font-size: 22px;
    font-weight: 700;
    color: #e6bf88;
    margin: 0;
    letter-spacing: 1px;
}

/* 弹窗主体 */
.qrcode-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qrcode-body img {
    width: 240px;
    height: 240px;
    border-radius: 16px;
    border: 3px solid rgba(230, 191, 136, 0.3);
    background: white;
    padding: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(230, 191, 136, 0.1);
    transition: all 0.3s ease;
}

.qrcode-body img:hover {
    transform: scale(1.05);
    border-color: #e6bf88;
    box-shadow: 
        0 12px 48px rgba(230, 191, 136, 0.4),
        0 0 60px rgba(230, 191, 136, 0.2);
}

.qrcode-tip {
    font-size: 14px;
    color: #999;
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

/* 小红书图标特殊样式 - 使用图片 */
.xiaohongshu-icon {
    /* 保持圆形容器的背景和边框 */
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    border: 2px solid rgba(230, 191, 136, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.social-icon-img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.social-icon-wrapper:hover .xiaohongshu-icon {
    transform: translateY(-8px) scale(1.1);
    border-color: #e6bf88 !important;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%) !important;
    box-shadow: 
        0 12px 32px rgba(230, 191, 136, 0.4),
        0 0 40px rgba(230, 191, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-social-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .social-title {
        font-size: 18px;
        margin-bottom: 24px;
    }
    
    .social-icons {
        gap: 30px;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .social-label {
        font-size: 12px;
    }
    
    .qrcode-content {
        padding: 30px;
        border-radius: 20px;
    }
    
    .qrcode-icon {
        width: 50px;
        height: 50px;
    }
    
    .qrcode-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .qrcode-title {
        font-size: 20px;
    }
    
    .qrcode-body img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 20px;
    }
    
    .social-icon {
        width: 56px;
        height: 56px;
    }
    
    .social-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .qrcode-content {
        padding: 24px;
    }
    
    .qrcode-body img {
        width: 180px;
        height: 180px;
    }
}
