/* 显示器相关样式 */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0 30px;
}

/* 下拉菜单容器样式 */
.dropdown {
    position: relative;
}

/* 下拉菜单内容样式 */
.dropdown-content {
    display: none;
    position: absolute;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: 100vw;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0px;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

/* 鼠标悬停时显示下拉菜单 */
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(2px);
    }
}
/* 下拉菜单列样式 */
.dropdown-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 下拉菜单项样式 */
.dropdown-content a {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f8f8;
}

.dropdown-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dropdown-content h4 {
    color: #222;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.dropdown-content p {
    color: #222;
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

.dropdown-content img {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    border-radius: 4px;
}


.dropdown > a i {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* 产品详情页样式 */
.product-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 80px;
    background: linear-gradient(135deg, #010d27 0%, #1a3a8f 100%);
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.hero-image img {
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* 产品特性部分 */
.product-features {
    padding: 80px 5%; /* 使用百分比内边距 */
    max-width: 1200px; /* 添加最大宽度限制 */
    margin: 0 auto; /* 使整个特性区域居中 */
}

.feature-item {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 60px;
    gap: 40px; /* 在内容和图片之间添加间隙 */
}

/* Modifier for reversed layout */
.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1; /* 占据可用空间的一半 */
    /* padding: 0 40px; */ /* 移除内边距，使用 gap 控制间距 */
    text-align: left; /* 文本默认左对齐，如果需要居中可以改为 center */
}

.feature-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1c1c1c; /* 确保标题颜色 */
}

.feature-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.feature-image {
    flex: 1; /* 占据可用空间的一半 */
    text-align: center; /* 使图片在其容器内居中 */
}

.feature-image img {
    max-width: 100%; /* 图片最大宽度为其容器宽度 */
    height: auto; /* 保持纵横比 */
    border-radius: 8px;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */ /* 移除阴影 */
    display: inline-block; /* 改为 inline-block 以响应 text-align: center */
    vertical-align: middle; /* 确保垂直对齐良好 */
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .feature-item, 
    .feature-item.reverse {
        flex-direction: column; /* 垂直堆叠 */
        text-align: center; /* 居中文本 */
        gap: 30px; /* 调整垂直间距 */
    }

    .feature-content {
        padding: 0; /* 移除内边距 */
        margin-bottom: 0; /* 移除底部边距，由 gap 控制 */
        order: 2; /* 确保文本在图片下方 */
        text-align: center; /* 确保文本在移动端居中 */
    }

    .feature-image {
        order: 1; /* 确保图片在文本上方 */
        max-width: 500px; /* 限制图片容器宽度 */
        margin: 0 auto; /* 居中图片容器 */
        width: 100%; /* 确保图片容器占满宽度以便居中 */
    }
     .feature-image img {
        max-width: 80%; /* 限制图片在容器内的最大宽度 */
    }
    .feature-item.reverse {
        flex-direction: row-reverse;
    }
    .feature-content {
        flex: 1;
        padding: 0 40px;
    }
    .feature-content h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .feature-content p {
        font-size: 18px;
        line-height: 1.6;
        color: #555;
    }
    .feature-image {
        flex: 1;
    }
    .feature-image img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}


/* 产品英雄区域 */
.job-hero {
    position: relative;
    height: 100vh;
    background-image: url('./Imgs/bg-tactile-sensor.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.job-header h1 {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 700;
}

.job-header p {
    font-size: 24px;
    opacity: 0.8;
}

/* 产品概述区域 */
.product-overview {
    padding: 80px 0;
    background-color: #fff;
}

.product-overview .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.overview-content {
    flex: 1;
}

.overview-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1c1c1c;
}

.overview-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.overview-image {
    flex: 1;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .product-overview .container {
        flex-direction: column;
    }
    
    .job-header h1 {
        font-size: 36px;
    }
    
    .job-header p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .dropdown-content {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px 0;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dropdown-item {
        padding: 15px;
    }
}


/* ==========================================================================
   技术参数表格样式 (居中)
   ========================================================================== */
.product-specs {
    padding: 60px 0;
    background-color: #fff; /* 背景色，可根据需要调整 */
    text-align: center; /* 居中标题 h2 */
}

.product-specs h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1c1c1c;
    /* text-align: center; 已在父元素设置 */
}

.product-specs table {
    width: 80%; /* 表格宽度，可调整 */
    max-width: 800px; /* 最大宽度 */
    margin: 0 auto; /* 使表格水平居中 */
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* 可选阴影 */
    background-color: #fff;
    text-align: left; /* 表格内文本默认左对齐 */
}

.product-specs th,
.product-specs td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
}

.product-specs th {
    background-color: #f8f9fa; /* 表头背景色 */
    font-weight: 600;
    color: #333;
}

.product-specs tr:nth-child(even) td {
    background-color: #fdfdfd; /* 斑马条纹 */
}

/* 响应式调整 (可选) */
@media (max-width: 768px) {
    .product-specs h2 {
        font-size: 28px;
    }
    .product-specs table {
        width: 95%; /* 小屏幕上更宽 */
        font-size: 14px;
    }
    .product-specs th,
    .product-specs td {
        padding: 10px 8px;
    }
}


/* 应用场景 (从 product-detail.css 复制) */
.product-applications {
    background-color: #f8f8f8;
    padding: 80px 0; /* 添加上下内边距 */
}

.product-applications .container { /* 确保内容居中 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.product-applications h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: #1c1c1c; /* 确保标题颜色 */
}

.product-applications h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #1c1c1c;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center; /* 让内容居中 */
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.application-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-item h3 {
    font-size: 22px;
    margin: 20px 20px 10px; /* 调整边距 */
    color: #1c1c1c;
}

.application-item p {
    margin: 0 20px 20px;
    color: #555;
    font-size: 15px; /* 调整字体大小 */
    line-height: 1.6; /* 调整行高 */
}