/* 作者卡片组件样式 */
.sotms-author-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.sotms-author-card-header-wrapper {
    position: relative;
    height: 170px;
}

.sotms-author-card-bg-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sotms-author-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sotms-author-card-bg::before,
.sotms-author-card-bg::after {
    content: '';
    position: absolute;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q25,20 50,50 T90,50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 200px;
    opacity: 0.3;
}

.sotms-author-card-bg::before {
    top: 20%;
    left: -10%;
    width: 60%;
    height: 60%;
    transform: rotate(15deg);
}

.sotms-author-card-bg::after {
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    transform: rotate(-20deg);
}

.sotms-author-card-avatar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.sotms-author-card-body {
    padding: 20px 20px 25px;
    text-align: center;
}

.sotms-author-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sotms-admin-badge {
    width: 0.8em;
    height: 0.8em;
    display: inline-block;
    vertical-align: middle;
}

.sotms-author-card-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.sotms-author-card-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.sotms-author-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sotms-author-card-stat .sotms-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-tertiary);
    line-height: 1;
}

.sotms-author-card-stat .sotms-stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.sotms-author-card-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sotms-social-link-wrapper {
    position: relative;
}

.sotms-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sotms-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.sotms-social-link svg {
    width: 16px;
    height: 16px;
}

.sotms-social-qq {
    background: #12b7f5;
    color: #fff;
}

.sotms-social-qq:hover {
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
}

.sotms-social-wechat {
    background: #07c160;
    color: #fff;
}

.sotms-social-wechat:hover {
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
}

.sotms-social-bilibili {
    background: #00aeec;
    color: #fff;
}

.sotms-social-bilibili:hover {
    box-shadow: 0 4px 12px rgba(0, 174, 236, 0.4);
}

.sotms-social-weibo {
    background: #e6162d;
    color: #fff;
}

.sotms-social-weibo:hover {
    box-shadow: 0 4px 12px rgba(230, 22, 45, 0.4);
}

.sotms-social-github {
    background: #333;
    color: #fff;
}

.sotms-social-github:hover {
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.4);
}

.sotms-social-rss {
    background: #ff6b6b;
    color: #fff;
}

.sotms-social-rss:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.sotms-social-csdn {
    background: #fc5531;
    color: #fff;
}

.sotms-social-csdn:hover {
    box-shadow: 0 4px 12px rgba(252, 85, 49, 0.4);
}

.sotms-social-email {
    background: #ea4335;
    color: #fff;
}

.sotms-social-email:hover {
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}

/* 微信二维码弹窗 */
.sotms-wechat-qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin-bottom: 10px;
}

.sotms-social-link-wrapper:hover .sotms-wechat-qrcode-popup {
    opacity: 1;
    visibility: visible;
}

.sotms-wechat-qrcode-popup img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* 深色模式适配 */
html[data-theme="dark"] .sotms-author-card-avatar {
    border-color: var(--bg-card);
    background-color: var(--bg-secondary);
}

/* 响应式 */
@media (max-width: 768px) {
    .sotms-author-card-header-wrapper {
        height: 150px;
    }
    
    .sotms-author-card-bg-section {
        height: 100px;
    }
    
    .sotms-author-card-avatar {
        width: 80px;
        height: 80px;
    }
    
    .sotms-author-card-body {
        padding: 15px 15px 20px;
    }
    
    .sotms-author-card-name {
        font-size: 1.25rem;
    }
    
    .sotms-author-card-stats {
        gap: 25px;
    }
    
    .sotms-author-card-stat .sotms-stat-value,
    .sotms-author-card-stat .sotms-stat-label {
        font-size: 0.85rem;
    }
    
    .sotms-author-card-social {
        gap: 12px;
    }
    
    .sotms-social-link {
        width: 30px;
        height: 30px;
    }
    
    .sotms-social-link svg {
        width: 14px;
        height: 14px;
    }
}
