/* ========================================
   作者页面样式
   ======================================== */

.author-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.author-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.author-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.author-bio {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
}

.author-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.author-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #777;
}

.author-meta-item i {
    color: var(--primary-color);
}

.author-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.author-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 作者主页 */
.author-page {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.author-page-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.author-page-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-page-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-page-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-page-info h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.author-page-info .author-meta-line {
    color: #999;
    margin: 8px 0;
    font-size: 0.8rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.author-page-info .author-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.author-page-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.author-stat-card {
    display: flex;
    align-items: baseline;
    gap: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.author-stat-card:hover .stat-value {
    color: var(--primary-color);
}

.author-stat-card .stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s;
}

.author-stat-card .stat-label {
    color: #999;
    font-size: 0.85rem;
}

.author-data-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
}

.author-data-card h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.author-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.author-category-item:last-child {
    border-bottom: none;
}

.author-category-item:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.author-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-tag-item {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.author-tag-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.article-filter {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.article-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-tab:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 响应式 */
@media (max-width: 768px) {
    .author-page {
        padding: 15px;
    }
    
    .author-page-header {
        padding: 20px;
    }
    
    .author-page-content {
        flex-direction: column;
        align-items: center;
    }
    
    .author-page-info {
        text-align: center;
    }
    
    .author-page-info h1 {
        font-size: 1.3rem;
    }
    
    .author-page-stats {
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    
    .author-stat-card {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    .author-stat-card .stat-value {
        font-size: 1.1rem;
    }
    
    .author-stat-card .stat-label {
        font-size: 0.75rem;
    }
    
    .author-page-info .author-meta-line {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    .author-page-avatar,
    .author-page-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

