/* 作品详情页样式 */

.detail-page {
    padding: 120px 0 80px;
    min-height: 80vh;
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 作品头部 */
.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* 作品展示区 */
.detail-viewer {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* 绘本展示 */
.book-viewer {
    position: relative;
    background: #f5f5f5;
    min-height: 500px;
}

.book-viewer iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

/* 图片画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* 作品描述 */
.detail-description {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.detail-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.detail-description p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 创作信息 */
.detail-info {
    background: var(--bg-pink);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.detail-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-label {
    color: var(--text-light);
    font-size: 14px;
}

.info-value {
    color: var(--text-dark);
    font-size: 14px;
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* 分享弹窗 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.show {
    display: flex;
}

.share-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
}

.share-content h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.share-qr {
    width: 200px;
    height: 200px;
    background: var(--bg-pink);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.share-link {
    background: var(--bg-pink);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 20px;
}

.btn-copy {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
}

.btn-close {
    background: transparent;
    border: 1px solid var(--text-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
}

/* 导航 */
.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    flex: 1;
    padding: 15px;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--bg-pink);
}

/* 响应式 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 28px;
    }
}
