﻿/* 优化后的社交媒体样式 - 使用flex布局和响应式设计 */


/* 社交媒体主容器 */
.social-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 300px;
}

/* 社交媒体列表容器 */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

/* 社交媒体单项 */
.social-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 60px;
}

/* 社交媒体图标 */
.social-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 社交媒体链接按钮 */
.social-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background-color: #105E8C;
    color: #ffffff;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #0d4a6b;
}

/* 隐藏input按钮，使用div作为按钮 */
.social-btn {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* 响应式设计 */

/* 大屏幕 (桌面) */
@media (min-width: 1200px) {
    .social-container {
        padding: 40px;
    }
    
    .social-list {
        max-width: 600px;
    }
    
    .social-item {
        min-height: 70px;
    }
    
    .social-icon {
        width: 56px;
        height: 56px;
    }
    
    .social-link {
        height: 56px;
        font-size: 18px;
    }
}

/* 中等屏幕 (平板) */
@media (min-width: 768px) and (max-width: 1199px) {
    .social-container {
        padding: 30px;
    }
    
    .social-list {
        max-width: 500px;
    }
    
    .social-item {
        min-height: 60px;
    }
    
    .social-link {
        font-size: 16px;
    }
}

/* 小屏幕 (手机) */
@media (max-width: 767px) {
    .social-container {
        padding: 15px;
    }
    
    .social-list {
        gap: 15px;
    }
    
    .social-item {
        min-height: 50px;
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-link {
        height: 40px;
        font-size: 14px;
    }
}

/* 超小屏幕 (小手机) */
@media (max-width: 480px) {
    .social-container {
        padding: 10px;
    }
    
    .social-list {
        gap: 12px;
    }
    
    .social-item {
        min-height: 45px;
        gap: 12px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-link {
        height: 36px;
        font-size: 13px;
    }
}

/* 可扩展性增强 - 主题变量 */
:root {
    --social-primary-color: #105E8C;
    --social-primary-hover: #0d4a6b;
    --social-text-color: #ffffff;
    --social-gap: 20px;
    --social-border-radius: 4px;
}

/* 使用CSS变量的样式 */
.social-list {
    gap: var(--social-gap);
}

.social-item {
    gap: var(--social-gap);
}

.social-link {
    background-color: var(--social-primary-color);
    color: var(--social-text-color);
    border-radius: var(--social-border-radius);
}

.social-link:hover {
    background-color: var(--social-primary-hover);
}

.social-link a {
    color: #fff;
}