/* 产品详情页面专用样式 */

/* 面包屑导航样式 */
.breadcrumb-nav {
    margin-bottom: 25px;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 16px 20px;
    margin: 0;
    background-color: transparent;
    border-radius: 12px;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
    margin: 0 12px;
    font-size: 16px;
    font-weight: 500;
}

.breadcrumb-link {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
}

.breadcrumb-link:hover {
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.breadcrumb-item.active {
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    position: relative;
}

.breadcrumb-item.active::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .breadcrumb {
        padding: 12px 16px;
    }
    
    .breadcrumb-link,
    .breadcrumb-item.active {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 8px;
    }
}

/* 侧边栏样式 */
.sidebar {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    border-right: 1px solid #e9ecef;
    padding-top: 20px;
}

.sidebar-content {
    padding: 25px 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    text-decoration: none;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover {
    background-color: #f1f5f9;
    color: #1e3a8a;
    text-decoration: none;
}

.category-item.active .category-link {
    background-color: #f1f5f9;
    color: #1e3a8a;
    border-color: #f1f5f9;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

.category-arrow {
    font-size: 16px;
    opacity: 0.7;
}

/* 产品详情页面样式 */
.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.08);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 产品图片区域 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a27, #1e3a1a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content:flex-start
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #1e3a8a;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a27, #1e3a1a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 产品信息区域 */
.product-info {
    padding: 15px 0;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.product-sku {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.download-btn, .quotation-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.quotation-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    color: white;
}

.quotation-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.product-description {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 产品详情标签页 */
.product-tabs {
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.tab-content p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 联系方式弹窗样式 */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.contact-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e3a8a;
}

.contact-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.contact-name {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-position {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

/* 询价弹窗样式 */
.quotation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.quotation-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.quotation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e3a8a;
}

.quotation-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.quotation-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quotation-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.quotation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input, .form-textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
    color: white;
}

.form-btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.form-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.form-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .product-detail-container {
        padding: 20px 10px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .download-btn, .quotation-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .quotation-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .quotation-modal-title {
        font-size: 20px;
    }
}
