.author-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    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;
    inset: 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: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.author-card-header-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 3;
    padding: 0 20px;
}

.author-info-left {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 33.33%;
}

.author-info-right {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 33.33%;
}

.author-card-header-info.no-info {
    justify-content: center;
}

.author-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
}

.admin-badge {
    width: 0.8em;
    height: 0.8em;
    flex-shrink: 0;
}

.author-card-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 5px 0;
    line-height: 1.4;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

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

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

.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; }
    .author-card-body { padding: 10px 15px 20px; }
    .author-card-name { font-size: 1rem; }
    .author-card-bio { font-size: 0.8rem; }
.author-info-left { padding-right: 40px; }
.author-info-right { padding-left: 40px; }
.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; }
}
