/* 产品详情页样式 */

body.project-detail-page {
    background-color: #f7f8fc;
    padding-top: 80px;
}

.project-detail-main {
    padding: 30px 0 50px;
}

/* 面包屑导航 */
.project-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.breadcrumb-item:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-item i {
    font-size: 16px;
}

.breadcrumb-separator {
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.breadcrumb-separator i {
    font-size: 12px;
}

.breadcrumb-current {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* 左侧内容区 */
.project-detail-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banner幻灯片 */
.project-banner-slider {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-slide {
    display: none;
    width: 100%;
    position: relative;
    padding-top: 60%; /* 调整为 5:3 比例，降低高度 */
    overflow: hidden;
    background: #f5f5f5;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 完整显示图片，不裁剪 */
    object-position: center;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-slide img:hover {
    transform: scale(1.02);
}

.banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.banner-prev,
.banner-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner-prev:hover,
.banner-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.project-banner-placeholder {
    width: 100%;
    padding: 80px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
    color: #999;
}

.project-banner-placeholder i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

/* 产品内容区 */
.project-content-section {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 产品信息卡片 */
.project-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.info-label {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.info-label i {
    font-size: 14px;
    color: #667eea;
}

.info-value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
}

.info-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0ebff;
    min-width: 200px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #e11d48;
    line-height: 1.2;
}

.price-original {
    font-size: 13px;
    color: #94a3b8;
}

.price-original del {
    color: #cbd5e1;
    margin-left: 4px;
}

.stock-available {
    color: #10b981;
    font-weight: 600;
}

.stock-empty {
    color: #ef4444;
    font-weight: 600;
}

/* 联系客服购买按钮 */
.info-action-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.btn-contact-service {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 30px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-contact-service:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-contact-service:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-contact-service i {
    font-size: 18px;
}

.project-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 30px;
}

/* 内容中的标签链接样式 */
.content-tag-link {
    color: #2563eb;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 2px;
}

.content-tag-link:hover {
    background: #2563eb;
    color: #fff;
    border-bottom-color: #2563eb;
    transform: translateY(-1px);
}

.project-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.project-detail-content p {
    margin-bottom: 15px;
}

.project-detail-content h2,
.project-detail-content h3,
.project-detail-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #0f172a;
    font-weight: 600;
}

/* 标签 */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tags-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.project-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* 右侧边栏 */
.project-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.sidebar-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 18px;
    opacity: 0.95;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.sidebar-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 卡片式列表项 */
.sidebar-card-item {
    display: block;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #e0ebff;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.sidebar-card-item:hover::before {
    left: 100%;
}

.sidebar-card-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-card-item:hover .card-item-title {
    color: #fff;
}

.sidebar-card-item:hover .card-item-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-card-item:hover .card-item-meta {
    color: rgba(255, 255, 255, 0.9);
}

.card-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.card-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.3s ease;
}

.card-item-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.card-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.card-item-meta i {
    font-size: 14px;
}

/* 更新记录样式 */
.sidebar-update-item {
    background: #f8fafc;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    padding: 12px 14px;
    transition: all 0.3s ease;
}

.sidebar-update-item:hover {
    background: #f0f4ff;
    border-left-color: #764ba2;
    transform: translateX(4px);
}

.update-title {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-word;
}

.update-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.update-time i {
    font-size: 14px;
    color: #94a3b8;
}

/* 热门标签样式 */
.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag-item {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    color: #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hot-tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hot-tag-item:hover::before {
    left: 100%;
}

.hot-tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-modal.show {
    opacity: 1;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-preview-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 90vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.image-preview-prev,
.image-preview-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-preview-prev {
    left: 20px;
}

.image-preview-next {
    right: 20px;
}

.image-preview-prev:hover,
.image-preview-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.image-preview-content {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: imagePreviewFadeIn 0.3s ease;
}

@keyframes imagePreviewFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-preview-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* 响应式布局 */
@media (max-width: 991px) {
    .project-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .project-detail-sidebar {
        order: -1;
    }
    
    .info-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .info-item {
        min-width: 100%;
    }
    
    .info-price {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    body.project-detail-page {
        padding-top: 70px;
    }

    .project-detail-main {
        padding: 20px 0 30px;
    }

    .project-detail-title {
        font-size: 22px;
    }

    .banner-controls {
        padding: 0 10px;
    }

    .banner-prev,
    .banner-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

