/* 作品详情页样式 - PC端 */

.work-detail-page {
    margin-top: 70px;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
    padding: 20px 0 60px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #b1ce48;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* 详情布局 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* 左侧主内容 */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 作品展示 */
.work-showcase {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.image-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 400px;
}

.image-viewer .main-image {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.video-player video,
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.external-video {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.external-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder .play-btn {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.video-placeholder .play-btn:hover {
    background: rgba(0,0,0,0.8);
}

.video-placeholder .play-btn i {
    font-size: 48px;
    color: #b1ce48;
}

/* 作品信息 */
.work-info-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.work-info-section .work-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

.work-info-section .work-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.work-info-section .work-meta .category {
    padding: 4px 12px;
    background: #f0f7e6;
    color: #b1ce48;
    border-radius: 4px;
    font-size: 13px;
}

.work-info-section .work-meta .divider {
    color: #ddd;
}

.work-info-section .work-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.work-info-section .work-meta i {
    font-size: 18px;
    color: #999;
}

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

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tags .tag {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
}

/* 互动按钮 */
.action-bar {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #ebebeb;
}

.action-btn.active {
    background: #ff6b6b;
    color: #fff;
}

.action-btn.active i {
    color: #fff;
}

.action-btn i {
    font-size: 20px;
    color: #999;
}

/* 相似作品 */
.similar-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

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

.similar-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.similar-item:hover {
    transform: translateY(-4px);
}

.similar-cover {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f5f5f5;
}

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

.similar-item:hover .similar-cover img {
    transform: scale(1.05);
}

.similar-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.similar-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* 右侧侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 作者卡片 */
.author-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.author-header .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-badge {
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 11px;
    border-radius: 4px;
    font-weight: normal;
}

.author-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

.author-actions {
    display: flex;
    gap: 12px;
}

.author-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.author-actions .btn-primary {
    background: linear-gradient(135deg, #b1ce48 0%, #9ab73a 100%);
    color: #fff;
    border: none;
}

.author-actions .btn-primary:hover {
    opacity: 0.9;
}

.author-actions .btn-outline {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.author-actions .btn-outline:hover {
    background: #f5f5f5;
}

/* 其他作品 */
.other-works {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.other-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.other-item:hover {
    background: #f8f9fa;
}

.other-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f5f5f5;
}

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

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.video-icon i {
    font-size: 18px;
}

.other-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.other-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.other-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.other-meta i {
    font-size: 14px;
}

/* 分享区域 */
.share-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #f8f9fa;
    border-color: #b1ce48;
    color: #b1ce48;
}

.share-btn i {
    font-size: 24px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        order: 2;
    }
    
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
