/* 产品详情页面专用样式 */

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #fff;
}

/* 产品详情页面头部 */
.product-detail-hero {
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-tech);
    opacity: 0.9;
}

.product-detail-content {
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.product-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.feature-tag {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 产品图片容器 */
.product-image-container {
    position: relative;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--box-shadow-hover);
    transition: var(--transition);
}

.product-main-image:hover {
    transform: scale(1.05);
}

.product-360-view {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.btn-360 {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-360:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 产品信息部分 */
.product-info-section {
    background: #fff;
    padding: 80px 0;
}

/* 产品标签页 */
.product-tabs {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.product-tabs .nav-pills {
    background: var(--light-color);
    padding: 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.product-tabs .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    margin-right: 10px;
    transition: var(--transition);
}

.product-tabs .nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
}

.tab-content-wrapper {
    padding: 40px;
}

.tab-content-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

/* 产品概述亮点 */
.overview-highlights {
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    height: 100%;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.highlight-content h5 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.highlight-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* 功能特点列表 */
.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 技术规格表格 */
.specs-table {
    margin-top: 30px;
}

.specs-table .table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.specs-table .table td {
    padding: 15px 20px;
    border-color: #eee;
    vertical-align: middle;
}

.specs-table .table td:first-child {
    background: var(--light-color);
    font-weight: 500;
    color: var(--dark-color);
    width: 30%;
}

/* 使用步骤 */
.usage-steps {
    margin-top: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-image {
    margin-top: 20px;
}

.step-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* 技术支持项目 */
.support-content {
    margin-top: 30px;
}

.support-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: 15px;
    height: 100%;
    transition: var(--transition);
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.support-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.support-item p {
    color: #666;
    margin-bottom: 20px;
}

/* 侧边栏 */
.product-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.sidebar-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* 产品价格 */
.product-price {
    margin-bottom: 20px;
}

.price-label {
    color: #666;
    font-size: 1rem;
}

.price-value {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 10px;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
}

.product-stock,
.product-warranty {
    margin-bottom: 15px;
    color: #666;
}

.product-stock i,
.product-warranty i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.sidebar-actions {
    margin-top: 30px;
}

.btn-block {
    width: 100%;
}

/* 相关产品 */
.related-products {
    margin-top: 20px;
}

.related-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

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

.related-item:hover {
    background: var(--light-color);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 10px;
}

.related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.related-info h5 {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.related-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
}

/* 联系信息 */
.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* AI客服样式 */
.ai-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--box-shadow-hover);
    transition: var(--transition);
    z-index: 1000;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 8, 116, 0.4);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--box-shadow-hover);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.ai-chat-widget.show {
    display: flex;
}

.chat-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.chat-title {
    flex: 1;
}

.chat-title h5 {
    margin: 0;
    font-size: 1.1rem;
}

.status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.status.online::before {
    content: '●';
    color: #2ecc71;
    margin-right: 5px;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 20px;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #6c757d;
    margin-right: 0;
    margin-left: 10px;
}

.message-content {
    flex: 1;
    background: #fff;
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: var(--primary-color);
    color: #fff;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.quick-replies {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.quick-reply {
    background: var(--light-color);
    border: 1px solid #ddd;
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.chat-input {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input button:hover {
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .product-title {
        font-size: 2.5rem;
    }
    
    .product-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .ai-chat-widget {
        width: 300px;
        height: 450px;
    }
}

@media (max-width: 767px) {
    .product-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .feature-item,
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-number,
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .ai-chat-widget {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        height: 400px;
    }
    
    .ai-chat-button {
        bottom: 20px;
        right: 20px;
    }
}