/* 页面整体样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    position: relative;
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 10px 0;
    color: #666;
    font-size: 12px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #007bff;
}

/* 主要内容区域样式 */
.product-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    position: relative;
    margin-bottom: 100px; /* 增加底部边距，为页脚留出空间 */
}

.product-title {
    color: #0372cc;
    font-size: 24px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #0066cc;
    width: 72%;
}

/* 产品布局 */
.product-layout {
    width: 72%;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* 表格样式 */
.product-table {
    width: 100%;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #f5f5f5;
}

th, td {
    padding: 8px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
}

th {
    background: linear-gradient(to bottom, #0372cc, #0b87ef);
    color: #fff;
    font-weight: normal;
    border: 1px solid #108ffa;
}

tr:nth-child(even) {
    background: #f5f5f5;
}

tr:nth-child(odd) {
    background: #f5f5f5;
}

.download-btn {
    display: inline-block;
    padding: 4px 12px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}

.download-btn:hover {
    background: #0052a3;
}

/* 快速查找区域 */
.quick-search {
    width: 25%;
    position: absolute;
    right: 15px;
    top: 20px;
    z-index: 2;
}

.search-box {
    background: #dddddd;
    padding: 30px 30px 40px 30px;
    border-radius: 0;
    position: relative;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -4px;
    width: 150px;
    height: 150px;
    background: url('../images/index-15.png') no-repeat center;
    background-size: contain;
    z-index: 1;
}

.search-box h2 {
    position: relative;
    z-index: 2;
    color: #0066cc;
    font-size: 18px;
    margin: 0;
    width: auto;
    white-space: nowrap;
}

.search-box h3 {
    position: relative;
    z-index: 2;
    color: #0066cc;
    font-size: 14px;
    margin: 5px 0 5px;
    font-weight: normal;
    width: auto;
    white-space: nowrap;
}

.search-box input {
    width: 92%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    background: #fff;
}

.search-box button {
    width: 30%;
    padding: 6px 0;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-box button:hover {
    background: #005bb8;
}

.quick-search-image {
    position: absolute;
    top: -20px;
    right: 0;
    width: 120px;
    height: 120px;
    background: url('../images/sensor.jpg') no-repeat center;
    background-size: cover;
}

/* 技术咨询热线 */
.tech-support {
    width: 25%;
    position: absolute;
    right: 15px;
    top: 280px;
    background: #f0f8ff;  /* 浅蓝色背景 */
    padding: 20px;
    border-radius: 0;
}

.tech-support h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.tech-support h2 i {
    width: 24px;
    height: 24px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tech-support p {
    margin: 5px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.tech-support .phone,
.tech-support .mobile,
.tech-support .email {
    display: flex;
    align-items: center;
}

.tech-support .label {
    width: 85px;
    color: #666;
}

.tech-support .value {
    color: #333;
    flex: 1;
}

.contact {
    background: #dbebfa;
    padding: 10px;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:20px 10px 20px 20px;
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact h2 {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.contact p {
    margin: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.contact p::before {
    content: attr(data-label);
    color: #4e4a48;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-content {
        margin-bottom: 200px;
    }

    .product-title,
    .product-layout,
    .product-brand-section {
        width: 100%;
    }

    .quick-search,
    .tech-support {
        position: static;
        width: 100%;
        margin-top: 50px;  /* 增加上边距 */
    }

    .quick-search-image {
        display: none;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .product-table {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }
}

/* 页脚样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 20px 0; /* 减小页脚的内边距 */
    position: relative;
    margin-top: auto; /* 使页脚保持在底部 */
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
}

/* 产品列表样式 */
.product-list {
    width: 72%;
    margin-right: 3%;
}

.product-item {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-item-image {
    width: 300px;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-item-image img {
    transform: scale(1.05);
}

.product-item-content {
    flex: 1;
    padding: 20px;
    position: relative;
}

.product-item-title {
    margin: 0 0 15px;
    font-size: 18px;
}

.product-item-title a {
    color: #333;
    text-decoration: none;
}

.product-item-title a:hover {
    color: #0066cc;
}

.product-item-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-item-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.product-item-more {
    text-align: right;
}

.product-item-more .btn {
    padding: 8px 20px;
    background: #0066cc;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.product-item-more .btn:hover {
    background: #0052a3;
}

@media (max-width: 992px) {
    .product-list {
        width: 100%;
        margin-right: 0;
    }

    .product-item {
        flex-direction: column;
    }

    .product-item-image {
        width: 100%;
        height: 200px;
    }
}

/* 新闻列表样式 */
.news-list {
    padding: 20px 0;
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-image {
    width: 280px;
    height: 180px;
    margin-right: 30px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    flex: 1;
    position: relative;
}

.news-item-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item-title {
    margin: 0 0 15px;
    font-size: 20px;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item-title a:hover {
    color: #0066cc;
}

.news-item-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* 品牌展示区域样式 */
.product-brand-section {
    margin: 20px 0;
    max-height: none;
    overflow: visible;
    width: 72%;
}

.product-brand-container {
    width: 100%;
}

.product-brand-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px;
}

.product-brand-item {
    text-align: center;
    transition: all 0.3s ease;
}

.product-brand-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-brand-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .product-brand-section {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .product-brand-list {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        padding: 15px;
    }

    .product-brand-item img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 8px;
        object-fit: contain;
    }

    .product-brand-name {
        margin-top: 0;
        text-align: center;
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 添加点击效果 */
    .product-brand-item:active {
        transform: scale(0.98);
        background: #f8f8f8;
    }
}