/* ==========================================
   产品详情页现代化样式
   ========================================== */

.product-detail-main {
    background: #f8f9fa;
    min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item:hover {
    color: #3a8fc7;
}

.breadcrumb-separator {
    color: #ddd;
}

.breadcrumb-current {
    color: #1a1a1a;
    font-weight: 500;
}

/* 产品详情区域 */
.product-detail-section {
    padding: 40px 0;
}

.product-main-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 35px;
}

/* 图片展示区 */
.product-image-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-image-container {
    position: relative;
}

.image-wrapper {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    border-color: #3a8fc7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 143, 199, 0.15);
}

.product-main-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.image-zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(58, 143, 199, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-zoom-hint {
    opacity: 1;
}

.cas-number-badge {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f0f7fb;
    border-radius: 10px;
    font-size: 15px;
    color: #3a8fc7;
    font-weight: 600;
}

.cas-number-badge i {
    font-size: 18px;
}

/* 产品信息区 */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.product-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
}

.meta-item.highlight {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    border-color: #E99122;
}

.meta-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label i {
    font-size: 16px;
}

.meta-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0f7fb;
    border: 1px solid #d5e8f3;
    border-radius: 8px;
    font-size: 14px;
    color: #3a8fc7;
    font-weight: 500;
}

.tag-item i {
    font-size: 16px;
}

.formula-tag {
    background: #fff5e6;
    border-color: #ffe0b3;
    color: #E99122;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* 规格价格 */
.pricing-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #3a8fc7;
    font-size: 19px;
}

.specifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.spec-item:hover {
    border-color: #3a8fc7;
    box-shadow: 0 4px 12px rgba(58, 143, 199, 0.1);
    transform: translateX(4px);
}

.spec-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.spec-size i {
    color: #666;
    font-size: 17px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #28a745;
}

.spec-price {
    font-size: 15px;
    font-weight: 600;
    color: #E99122;
}

/* 存储信息 */
.storage-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff5e6;
    border-left: 4px solid #E99122;
    border-radius: 8px;
    font-size: 14px;
}

.storage-info i {
    color: #E99122;
    font-size: 20px;
}

.storage-label {
    font-weight: 600;
    color: #666;
}

.storage-value {
    color: #1a1a1a;
    font-weight: 600;
}

/* 详细信息标签页 */
.product-details-tabs {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #3a8fc7;
    background: rgba(58, 143, 199, 0.05);
}

.tab-btn.active {
    color: #3a8fc7;
    background: white;
    border-bottom-color: #3a8fc7;
}

.tab-btn i {
    font-size: 18px;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 属性表格 */
.properties-table-wrapper {
    overflow-x: auto;
}

.properties-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.properties-table tr {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.properties-table tr:hover {
    background: #f0f7fb;
    transform: translateX(4px);
}

.properties-table th {
    width: 200px;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
}

.properties-table th i {
    margin-right: 8px;
    color: #3a8fc7;
}

.properties-table td {
    padding: 15px 20px;
    color: #1a1a1a;
    font-weight: 500;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* 详细信息内容 */
.detail-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-section p {
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.detail-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 600;
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: imageZoomIn 0.4s ease;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-caption {
    background: white;
    padding: 15px 25px;
    border-radius: 25px;
    color: #3a8fc7;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-image-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 20px 0;
    }
    
    .product-main-content {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-meta-info {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 25px 20px;
    }
    
    .properties-table th {
        width: 120px;
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .properties-table td {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .spec-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 12px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}
