/* 详情页面样式 */

/* 面包屑导航 */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 100px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

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

.breadcrumb a:hover {
    color: #5a6fd8;
}

.separator {
    margin: 0 0.5rem;
    color: #999;
}

.current {
    color: #333;
    font-weight: 500;
}

/* 主要内容区域 */
.detail-main {
    padding: 2rem 0;
    background: #f8f9fa;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* 左侧详情内容 */
.detail-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 详情头部 */
.detail-header {
    margin-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: bold;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-meta i {
    color: #667eea;
}

/* 详情图片 */
.detail-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 详细描述 */
.detail-description {
    margin-bottom: 2rem;
}

.detail-description h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.detail-description h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.detail-description p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.detail-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.detail-description li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.5rem;
}

.detail-description strong {
    color: #333;
    font-weight: 600;
}

/* 标签 */
.detail-tags {
    margin-bottom: 2rem;
}

.detail-tags h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f2ff;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e0e6ff;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
    cursor: pointer;
}

/* 操作按钮 */
.detail-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #667eea;
    color: white;
}

.action-btn.liked {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.action-btn.collected {
    background: #ffa726;
    border-color: #ffa726;
    color: white;
}

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

/* 发布人信息卡片 */
.publisher-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.publisher-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.publisher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f2ff;
}

.publisher-info {
    flex: 1;
}

.publisher-name {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.publisher-title {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.publisher-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffa726;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #666;
}

.publisher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

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

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.publisher-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 联系信息卡片 */
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.contact-item i {
    width: 20px;
    color: #667eea;
    font-size: 1.1rem;
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.copy-btn {
    background: #f0f2ff;
    border: 1px solid #e0e6ff;
    color: #667eea;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #667eea;
    color: white;
}

.contact-actions {
    display: flex;
    gap: 0.8rem;
}

.contact-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-btn.secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.contact-btn.secondary:hover {
    background: #e9ecef;
}

/* 相关推荐卡片 */
.related-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.related-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.3s ease;
}

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

.related-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-content h4 {
    margin-bottom: 0.5rem;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #667eea;
}

.related-meta {
    font-size: 0.8rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-content {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .detail-meta {
        gap: 1rem;
    }
    
    .detail-image img {
        height: 250px;
    }
    
    .detail-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .publisher-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 80px 0 15px;
    }
    
    .detail-main {
        padding: 1.5rem 0;
    }
    
    .detail-content {
        padding: 1rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-image img {
        height: 200px;
    }
    
    .publisher-card,
    .contact-card,
    .related-card {
        padding: 1.5rem;
    }
    
    .publisher-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .related-item {
        padding: 0.8rem;
    }
    
    .related-image {
        width: 60px;
        height: 45px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-content,
.publisher-card,
.contact-card,
.related-card {
    animation: fadeInUp 0.6s ease;
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4caf50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1000;
    animation: copySuccessAnimation 2s ease;
}

@keyframes copySuccessAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}