/* Product Detail Page Styles */

.breadcrumb-section {
    margin-top: 20px;
}

.product-detail-section {
    padding: 2rem 1.5rem 4rem;
}

.product-detail-container {
    margin: 0 auto;
}

.product-detail-container img {
    max-width: 350px !important;
}

.product-detail-flex-container {
    display: flex;
    gap: 2rem;  /* 左右栏间距 */
}

.product-detail-left {
    width: 50%;
    min-width: 0;  /* 防止flex子项溢出 */
}

.product-detail-right {
    width: 50%;
    min-width: 0;  /* 防止flex子项溢出 */
}

/* 产品主图 */
.product-main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 产品缩略图列表 */
.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.product-thumbnail:hover {
    border-color: #0099ff;
}

.product-thumbnail.active {
    border-color: #0099ff;
    box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.3);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 产品信息 */
.product-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.product-meta-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.product-meta-label {
    width: 100px;
    color: #666;
    font-weight: 500;
}

.product-meta-value {
    flex: 1;
    color: #333;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
    display: block;
    opacity: 1;
}

/* 产品导航区域 */
.product-tabs-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 70px;
    z-index: 10;
    background-color: #fff;
}

.product-tabs {
    background-color: #f1f1f1;
    border-radius: 4px;
}

.product-tabs ul {
    display: flex;
    border-bottom: none;
}

.product-tabs li {
    flex: 1;
    text-align: center;
}

.product-tabs li a {
    display: block;
    padding: 1rem;
    color: #666;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.product-tabs li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0099ff;
    transition: width 0.3s ease;
}

.product-tabs li a:hover {
    color: #0099ff;
}

.product-tabs li a:hover::after {
    width: 100%;
}

.product-tabs li.is-active a {
    color: #0099ff;
}

.product-tabs li.is-active a::after {
    width: 100%;
}

/* 产品内容区域 */
.product-section {
    margin-bottom: 3rem;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fff;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

/* 产品参数表格 */
.product-params-table table {
    width: 100%;
    border-collapse: collapse;
}

.product-params-table th,
.product-params-table td {
    padding: 0.75rem;
    border: 1px solid #eee;
}

.product-params-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    text-align: left;
    width: 30%;
}

/* 下载资料列表 */
.download-list {
    list-style: none;
    padding: 0;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.download-item:hover {
    border-color: #0099ff;
    background-color: #f0f7ff;
}

.download-icon {
    margin-right: 1rem;
    color: #0099ff;
}

.download-info {
    flex: 1;
}

.download-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.download-meta {
    font-size: 0.85rem;
    color: #888;
}

.download-button {
    background-color: #0099ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.download-button:hover {
    background-color: #007acc;
}

/* 响应式样式 */
@media screen and (max-width: 1023px) {
    .product-detail-flex-container {
        flex-direction: column;
    }

    .product-detail-left,
    .product-detail-right {
        width: 100%;
    }

    .product-main-image {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .product-tabs ul {
        flex-direction: column;
    }

    .product-tabs li {
        margin-bottom: 0.5rem;
    }

    .product-tabs li a {
        text-align: left;
        padding: 0.75rem;
    }

    .product-tab-content {
        padding: 1.5rem;
    }

    .product-main-image {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }

    .product-meta-item {
        flex-direction: column;
    }

    .product-meta-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .product-main-image {
        height: 250px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}
