/* 产品样式 */

/* 产品链接样式 */
.product-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.product-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.product-description {
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--text-light);
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.star-product {
    border: 2px solid var(--primary-color);
}

/* 产品标签样式 */
.tag-filter {
    margin: 1rem 0;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tag-button {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.tag:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-color);
}

.tag.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 小标签样式 */
.small-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.small-tag:hover {
    background-color: var(--secondary-light);
    color: var(--secondary-dark);
    border-color: var(--secondary-color);
}

.small-tag.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(91, 143, 249, 0.3);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* 下拉标签容器样式 */
.tag-dropdown-container {
    position: relative;
    display: inline-block;
}

.tag-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem; /* 比分类标签小 */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.tag-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.tag-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem; /* 比分类标签小 */
}

.tag-dropdown-item input {
    margin-right: 0.5rem;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* 产品介绍标题样式 */
.center-title {
    font-size: 2rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.center-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 产品卡片标题超链接样式 */
.product-content h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.product-content h3 a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-decoration: none;
}

/* 产品详情页样式 */
.product-detail-container {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product-image-gallery {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.thumbnail-images {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.thumbnail-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.thumbnail-image.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease;
}

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

.product-info {
    padding-left: 30px;
}

.product-info h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.product-description {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    line-height: 1.6;
}

.product-parameters {
    margin-top: 30px;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
}

.product-parameters h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
}

.parameter-table th, .parameter-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}

.parameter-table th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: bold;
    text-align: left;
    width: 30%;
}

.parameter-table tr:nth-child(even) {
    background-color: var(--white);
}

.parameter-table tr:hover {
    background-color: var(--hover-bg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-image-gallery {
        flex-direction: column;
    }

    .thumbnail-images {
        flex-direction: row;
        overflow-x: auto;
        margin-right: 0;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .thumbnail-image {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .product-info {
        padding-left: 0;
        margin-top: 20px;
    }

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

    .parameter-table th {
        width: 40%;
    }
}
