.author-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

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

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

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

.author-card-bg::before,
.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;
}

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

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

.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;
}

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

.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;
}

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

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

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

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

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

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

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

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

.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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.social-email {
    background: var(--theme-color);
    color: #fff;
}

.social-email:hover {
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb, 102, 126, 234), 0.4);
}

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

.wechat-qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 160px;
}

.wechat-qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg-card);
}

.social-link-wrapper:hover .wechat-qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.wechat-qrcode-popup img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

@media (max-width: 480px) {
    .author-card-header-wrapper {
        height: 150px;
    }
    
    .author-card-bg-section {
        height: 100px;
    }
    
    .author-card-avatar {
        width: 80px;
        height: 80px;
        bottom: 0;
    }
    
    .author-card-body {
        padding: 10px 15px 20px;
    }
    
    .author-card-name {
        font-size: 1.3rem;
    }
    
    .author-card-stats {
        gap: 30px;
    }
    
    .author-card-stat .stat-value {
        font-size: 0.9rem;
    }
    
    .author-card-social {
        gap: 12px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
}
