/* 产品详情页样式 */
.product-detail-section {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--gradient-tech);
    position: relative;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 面包屑导航 */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* 产品图片画廊 */
.product-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.zoom-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

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

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 产品信息 */
.product-info {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-category,
.product-version {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-version {
    background: var(--secondary-color);
}

.product-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 产品统计 */
.product-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-item label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 产品操作按钮 */
.product-actions {
    margin-bottom: 2rem;
}

.product-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 产品标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 产品标签页 */
.product-tabs {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border: none;
}

.tab-content {
    padding: 2rem;
}

.tab-content-wrapper h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.tab-content-wrapper p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.related-product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.related-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.related-product-card h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-product-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 图片模态框 */
.modal-content {
    background: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.modal-title {
    color: var(--white);
}

.btn-close {
    filter: invert(1);
}

/* BOX次元详情页轮播图样式 */
.box-detail-carousel {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 900px; /* 调整高度使视觉效果与右边卡片完全一致 */
    background: var(--dark-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.box-detail-carousel .carousel-inner {
    height: 100%;
}

.box-detail-carousel .carousel-item {
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.box-detail-carousel .carousel-image {
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    background: var(--dark-color);
}

.box-detail-carousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 15;
}

.box-detail-carousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.box-detail-carousel .carousel-indicators button.active {
    background-color: #00d4ff;
    border-color: #00d4ff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.box-detail-carousel .carousel-indicators button:hover {
    background-color: rgba(0, 212, 255, 0.8);
    transform: scale(1.2);
}

.box-detail-carousel .carousel-control-prev,
.box-detail-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 15;
}

.box-detail-carousel .carousel-control-prev {
    left: 20px;
}

.box-detail-carousel .carousel-control-next {
    right: 20px;
}

.box-detail-carousel:hover .carousel-control-prev,
.box-detail-carousel:hover .carousel-control-next {
    opacity: 1;
}

.box-detail-carousel .carousel-control-prev:hover,
.box-detail-carousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.box-detail-carousel .carousel-control-prev-icon,
.box-detail-carousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.box-detail-carousel .carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    bottom: 0;
    padding: 40px 30px 30px;
    border-radius: 0 0 15px 15px;
    left: 0;
    right: 0;
}

.box-detail-carousel .carousel-caption h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.box-detail-carousel .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 给产品信息卡牌设置固定高度 */
.box-detail-carousel ~ .col-lg-6 .product-info {
    height: 580px; /* 根据当前内容设置固定高度 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 轮播图动画效果 */
.box-detail-carousel .carousel-item img {
    transition: transform 0.3s ease;
}

.box-detail-carousel:hover .carousel-item.active img {
    transform: scale(1.02);
}

/* 添加光晕效果 */
.box-detail-carousel::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #00d4ff, #6366f1, #8b5cf6, #00d4ff);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.box-detail-carousel:hover::before {
    opacity: 0.4;
    animation: pulse 2s infinite;
}

/* 原有的响应式设计 */
@media (max-width: 991px) {
    .product-title {
        font-size: 2rem;
    }
    
    .product-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item i {
        margin-bottom: 0;
    }
    
    .stat-item span {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .product-detail-section {
        padding-top: 120px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .product-actions .btn:last-child {
        margin-bottom: 0;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .thumbnail-images {
        justify-content: center;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 575px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-stats {
        padding: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* BOX次元轮播图响应式设计 */
@media (max-width: 992px) {
    .box-detail-carousel {
        height: 650px; /* 根据桌面端900px的比例调整 */
        margin-bottom: 2rem;
    }
    
    .box-detail-carousel ~ .col-lg-6 .product-info {
        height: auto;
    }
    
    .box-detail-carousel .carousel-caption {
        padding: 30px 20px 20px;
    }
    
    .box-detail-carousel .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .box-detail-carousel .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .box-detail-carousel {
        height: 500px; /* 根据桌面端900px的比例调整 */
    }
    
    .box-detail-carousel .carousel-control-prev,
    .box-detail-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .box-detail-carousel .carousel-control-prev-icon,
    .box-detail-carousel .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
    
    .box-detail-carousel .carousel-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
    
    .box-detail-carousel .carousel-caption {
        padding: 20px 15px 15px;
    }
    
    .box-detail-carousel .carousel-caption h5 {
        font-size: 1rem;
    }
    
    .box-detail-carousel .carousel-caption p {
        font-size: 0.8rem;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动条样式 */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 