/* Product Detail Page Styles */

table {
    border-collapse: collapse; /* 合并边框 */
    width: 100%;
  }
  
  table th,
  table td {
    border: 1px solid #ddd; /* 边框颜色和粗细 */
    padding: 8px;
    text-align: left;
  }
  
  table th {
    background-color: #f2f2f2;
    border-bottom: 2px solid #333; /* 表头底部加粗边框 */
  }

/* Product Detail Hero */
.product-detail-hero {
    background: url('../images/banner/products-banner.webp') no-repeat scroll center / cover;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.product-detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
}

.product-detail-hero-inner>*,
.product-detail-hero-inner>.product-detail-hero-meta span {
    color: var(--primary-blue) !important;
}

.product-detail-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-detail-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-detail-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.product-detail-hero-meta span {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}


/* Product Detail Layout */
.product-detail {
    padding: 3rem 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.thumbnail-btn {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    padding: 2rem;
    border-radius: 16px;
}

.product-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    word-break: break-all;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Product Specifications */
.product-specifications {
    padding: 2rem;
    border-radius: 16px;
}

.product-specifications h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Product Actions */
.product-actions {
    padding: 2rem;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.quantity-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.quantity-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-buttons .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Product Tabs */
.product-tabs {
    margin-top: 3rem;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--off-white);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background: rgba(30, 64, 175, 0.05);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--white);
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.tab-panel p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tab-panel ul {
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 1.5rem;
}

.tab-panel ul li {
    margin-bottom: 0.5rem;
}

/* Application Grid */
.application-grid {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.application-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--off-white);
}

.application-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.application-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Synthesis Note */
.synthesis-note {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 64, 175, 0.05);
    border: 1px solid rgba(30, 64, 175, 0.2);
    border-radius: 12px;
    color: var(--text-dark);
}

/* Safety Grid */
.safety-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.safety-section {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--off-white);
}

.safety-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.safety-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.safety-section ul li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Documentation List */
.documentation-list {
    margin-top: 1.5rem;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--off-white);
    margin-bottom: 1rem;
}

.doc-item:last-child {
    margin-bottom: 0;
}

.doc-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.doc-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.btn-outline {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Related Products */
.related-products {
    margin-top: 4rem;
}

.related-products h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-card-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.product-card-footer {
    margin-top: auto;
}

.product-card-footer .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-hero h1 {
        font-size: 2.5rem;
    }

    .product-detail-hero-subtitle {
        font-size: 1.1rem;
    }

    .product-detail-hero-meta {
        gap: 1rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .application-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 50%;
    }
}

@media (max-width: 768px) {
    .product-detail-hero {
        padding: 7rem 1rem 2rem;
    }

    .product-detail-hero-inner {
        padding: 2rem 1.5rem;
    }

    .product-detail-hero h1 {
        font-size: 2rem;
    }

    .product-detail-hero-subtitle {
        font-size: 1rem;
    }

    .product-detail-hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .product-detail {
        padding: 2rem 0;
    }

    .product-header h1 {
        font-size: 1.75rem;
    }

    .product-header,
    .product-specifications,
    .product-actions,
    .tab-content {
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        flex: 1 1 100%;
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    .product-thumbnails {
        gap: 0.5rem;
    }

    .thumbnail-btn {
        width: 60px;
        height: 60px;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-outline {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-detail-hero h1 {
        font-size: 1.75rem;
    }

    .product-detail-hero-subtitle {
        font-size: 0.95rem;
    }

    .product-detail-hero-meta span {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .breadcrumbs ol {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .product-tags {
        gap: 0.25rem;
    }

    .product-tags span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .related-products h2 {
        font-size: 1.5rem;
    }

    .product-thumbnails {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .thumbnail-btn {
        flex-shrink: 0;
    }
}