/* ==================== 作者头部信息 ==================== */
.author-header {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

.author-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.author-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.author-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.author-header .container {
    position: relative;
    z-index: 1;
}

.author-info-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.author-avatar-wrapper {
    flex-shrink: 0;
}

.author-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #f5f5f5;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.2;
}

.author-level {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.author-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

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

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #999;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

.author-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* ==================== 作者文章列表 ==================== */
.author-articles-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: #999;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-row {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-row:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.article-thumbnail {
    flex-shrink: 0;
    width: 240px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-row:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 12px;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: #1890ff;
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}

.article-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta svg {
    flex-shrink: 0;
}

.article-category a {
    color: #1890ff;
    transition: color 0.3s ease;
}

.article-category a:hover {
    color: #40a9ff;
}

/* ==================== 其他文章推荐 ==================== */
.recommend-section {
    padding: 80px 0;
    background: #fff;
}

.recommend-header {
    text-align: center;
    margin-bottom: 50px;
}

.recommend-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.recommend-subtitle {
    font-size: 15px;
    color: #999;
    margin: 0;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.recommend-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.recommend-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: transparent;
}

.recommend-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-item:hover .recommend-image img {
    transform: scale(1.05);
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.recommend-item:hover .video-badge {
    opacity: 1;
}

.recommend-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommend-item-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.5;
}

.recommend-item-title a {
    color: #333;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-item-title a:hover {
    color: #1890ff;
}

.recommend-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.recommend-author {
    color: #666;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.recommend-author:hover {
    color: #1890ff;
}

.recommend-views {
    color: #999;
    flex-shrink: 0;
}

/* ==================== 响应式布局 ==================== */

/* 平板 */
@media screen and (max-width: 992px) {
    .author-header {
        padding: 80px 0 50px;
    }
    
    .author-info-card {
        padding: 30px;
        gap: 30px;
    }
    
    .author-avatar {
        width: 140px;
        height: 140px;
    }
    
    .author-name {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .author-articles-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-thumbnail {
        width: 200px;
        height: 125px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .recommend-section {
        padding: 60px 0;
    }
    
    .recommend-header {
        margin-bottom: 40px;
    }
    
    .recommend-title {
        font-size: 28px;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* 手机 */
@media screen and (max-width: 768px) {
    .author-header {
        padding: 60px 0 40px;
    }
    
    .author-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }
    
    .author-avatar {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 26px;
    }
    
    .author-level {
        font-size: 13px;
        padding: 5px 14px;
    }
    
    .author-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-divider {
        height: 35px;
    }
    
    .author-intro {
        font-size: 14px;
    }
    
    .author-articles-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .articles-list {
        gap: 16px;
    }
    
    .article-row {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    
    .article-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    
    .article-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .article-excerpt {
        font-size: 13px;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .article-meta {
        gap: 16px;
        font-size: 12px;
    }
    
    .recommend-section {
        padding: 50px 0;
    }
    
    .recommend-header {
        margin-bottom: 30px;
    }
    
    .recommend-title {
        font-size: 24px;
    }
    
    .recommend-subtitle {
        font-size: 14px;
    }
    
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .recommend-content {
        padding: 12px;
    }
    
    .recommend-item-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .recommend-meta {
        font-size: 12px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .author-header {
        padding: 50px 0 30px;
    }
    
    .author-info-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    
    .author-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }
    
    .author-name {
        font-size: 22px;
    }
    
    .author-level {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .author-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-divider {
        height: 30px;
    }
    
    .author-intro {
        font-size: 13px;
    }
    
    .author-articles-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .articles-list {
        gap: 12px;
    }
    
    .article-row {
        padding: 12px;
        gap: 12px;
        border-radius: 8px;
    }
    
    .article-title {
        font-size: 15px;
    }
    
    .article-excerpt {
        font-size: 12px;
    }
    
    .article-meta {
        gap: 12px;
        font-size: 11px;
    }
    
    .article-meta svg {
        width: 12px;
        height: 12px;
    }
    
    .recommend-section {
        padding: 40px 0;
    }
    
    .recommend-header {
        margin-bottom: 24px;
    }
    
    .recommend-title {
        font-size: 20px;
    }
    
    .recommend-subtitle {
        font-size: 13px;
    }
    
    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .recommend-content {
        padding: 12px;
    }
    
    .recommend-item-title {
        font-size: 13px;
    }
    
    .recommend-meta {
        font-size: 11px;
    }
    
    .video-badge svg {
        width: 28px;
        height: 28px;
    }
}

