/**
 * PC端作者页面样式
 *
 * @package GoodBase
 * @since 1.0.0
 */

/* 作者页面容器 */
.author-page {
    padding: 18px 0;
}

/* 作者头部 */
.author-header {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-header-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

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

.author-avatar img,
.author-avatar .avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    display: block;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.author-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.author-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.author-registered {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-registered i {
    color: #ff6b35;
}

/* 统计数据区域 */
.author-stats-section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-stats-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-stats-section .section-title i {
    color: #ff6b35;
}

.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    border-radius: 8px;
    color: #fff;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 内容包装器 */
.author-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 18px;
}

.author-main-content {
    min-width: 0;
}

/* 分类统计区域 */
.author-categories-section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-categories-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-categories-section .section-title i {
    color: #ff6b35;
}

.author-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-stat-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-stat-item .category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 14px;
    color: #666;
}

/* 文章列表区域 */
.author-posts-section {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-posts-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-posts-section .section-title i {
    color: #ff6b35;
}

/* 最新内容卡片 - 参照搜索页样式 */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.author-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.author-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.author-post-item .post-thumbnail {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.author-post-item .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.author-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* 无封面图样式 */
.author-post-item .post-thumbnail .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #bbb;
    font-size: 48px;
}

/* 标签徽章 */
.author-post-item .post-thumbnail .post-tag-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
}

.author-post-item .post-thumbnail .post-tag-badge.post-tag-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.author-post-item .post-thumbnail .post-tag-badge.post-tag-exclusive {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.author-post-item .post-thumbnail .post-tag-badge.post-tag-recommended {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

.author-post-item .post-thumbnail .post-tag-badge.post-tag-premium {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* 收费/VIP徽章样式 */
.author-post-item .post-thumbnail .post-price-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 11;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.author-post-item .post-thumbnail .post-price-badge i {
    font-size: 10px;
}

.author-post-item .post-thumbnail .post-price-badge.badge-price {
    background: linear-gradient(135deg, #f66600 0%, #ff8533 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-free {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-vip {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-vip-trial {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-vip-month {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-vip-quarter {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-vip-year {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.author-post-item .post-thumbnail .post-price-badge.badge-vip-lifetime {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* 分类徽章 - 底部渐变遮罩样式 */
.author-post-item .post-thumbnail .post-category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 10px 8px 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.author-post-item .post-thumbnail .post-category-badge i {
    font-size: 10px;
    opacity: 0.9;
}

.author-post-item .post-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.author-post-item .post-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.author-post-item .post-title a {
    color: #333;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-post-item .post-title a:hover {
    color: #f66600;
}

.author-post-item .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.author-post-item .post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.author-post-item .post-meta i {
    font-size: 11px;
}

.author-post-item .post-date i {
    color: #f66600;
}

.author-post-item .post-views i {
    color: #bbb;
}

/* 侧边栏 */
.author-sidebar {
    min-width: 0;
    position: sticky;
    top: 8px;
    align-self: flex-start;
}

.author-popular-posts,
.author-tags {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: #ff6b35;
}

.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-link {
    flex: 1;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    min-width: 0;
}

.popular-post-link:hover {
    color: #ff6b35;
}

.popular-post-views {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.popular-post-views i {
    color: #ff6b35;
}

.author-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-tags-cloud .tag-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-tags-cloud .tag-link:hover {
    background: #ff6b35;
    color: #fff;
}

.author-tags-cloud .tag-count {
    color: #999;
    margin-left: 3px;
}

.author-tags-cloud .tag-link:hover .tag-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 分页 - 重新设计，简洁美观 */
.author-pagination {
    margin: 40px 0 20px 0 !important;
    padding: 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

/* 所有分页按钮和链接的基础样式 */
.author-pagination > .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    background: #fafafa !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    color: #888 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 悬停效果 */
.author-pagination > .page-numbers:hover:not(.current):not(.dots) {
    background: #fff5f0 !important;
    border-color: #ffb399 !important;
    color: #ff6b35 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2) !important;
}

/* 当前页样式 */
.author-pagination > .page-numbers.current {
    background: #fff5f0 !important;
    border-color: #ffb399 !important;
    color: #ff6b35 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.25) !important;
    transform: scale(1.02) !important;
    cursor: default !important;
}

/* 省略号样式 */
.author-pagination > .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    font-weight: 400 !important;
    min-width: auto !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    cursor: default !important;
}

.author-pagination > .page-numbers.dots:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 上一页/下一页按钮特殊样式 */
.author-pagination > .page-numbers.prev,
.author-pagination > .page-numbers.next {
    padding: 0 12px !important;
    font-weight: 600 !important;
    background: #fafafa !important;
    border: 1px solid #ffb399 !important;
    color: #ff8c5a !important;
}

.author-pagination > .page-numbers.prev:hover,
.author-pagination > .page-numbers.next:hover {
    background: #fff5f0 !important;
    border-color: #ffb399 !important;
    color: #ff6b35 !important;
}

/* 图标样式 */
.author-pagination > .page-numbers i {
    margin: 0 4px !important;
    font-size: 13px !important;
    transition: transform 0.3s ease !important;
}

.author-pagination > .page-numbers.prev:hover i {
    transform: translateX(-3px) !important;
}

.author-pagination > .page-numbers.next:hover i {
    transform: translateX(3px) !important;
}

/* 禁用状态的上一页/下一页按钮 */
.author-pagination > .page-numbers.disabled {
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #bbb !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.author-pagination > .page-numbers.disabled:hover {
    background: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #bbb !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* 无内容提示 */
.no-posts {
    background: #fff;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-posts p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .author-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .author-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .author-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .author-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .author-post-item .post-thumbnail {
        height: 140px;
    }
    
    .author-post-item .post-content {
        padding: 10px;
    }
    
    .author-post-item .post-title {
        font-size: 13px;
    }
    
    .author-post-item .post-meta {
        font-size: 11px;
    }
    
    .author-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-sidebar {
        grid-template-columns: 1fr;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

