/* 软件产品详情页面样式 */

/* 产品展示横条 */
.product-gallery {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 70px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* 产品详情区域 */
.product-detail {
    padding: 60px 0;
    background: white;
    margin-top: 40px;  /* 下移产品详情部分 */
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
}

.product-image {
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-details h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

.product-specs {
    margin-bottom: 40px;
}

.spec-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 100px;
    font-size: 1.1rem;
}

.spec-value {
    color: #3498db;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 技术交流联系方式 */
.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: #3498db;
    width: 20px;
    font-size: 1.1rem;
}

.contact-item span {
    color: #2c3e50;
    font-size: 1rem;
}

.qr-code {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 产品亮点 */
.product-highlights {
    margin-bottom: 60px;
}

.product-highlights h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.product-highlights h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.highlights-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px dashed #3498db;
}

#productHighlights,
.highlights-content textarea {
    width: 100%;
    min-height: 200px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: bold;  /* 字体加粗 */
    line-height: 1.8;  /* 行距（可根据需要调整：1.5-2.5之间） */
    color: #2c3e50;
    resize: vertical;
    font-family: inherit;
}

#productHighlights:focus,
.highlights-content textarea:focus {
    outline: none;
}

/* 产品功能与特点 */
.product-features h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.product-features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-number {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-content p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 返回链接 */
.back-link {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-back i {
    font-size: 1rem;
}

/* ===== 硬件详情 - 机型规格区（SLA-600 / SLA-800） ===== */
.variant-section {
    margin: 20px 0 40px;
}

.variant-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

/* SLA展示区的variant-grid改为纵向排列 */
#slaShowcase .variant-grid {
    grid-template-columns: 1fr;  /* 单列纵向排列 */
}

/* 防止被导航栏遮挡 */
.product-showcase {
    margin-top: 70px;  /* 导航栏高度，可根据实际调整 */
    padding-top: 20px;
}

#slaShowcase {
    margin-top: 70px;  /* 确保SLA展示区不被导航栏遮挡 */
    padding-top: 20px;
}

.variant-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.variant-header {
    padding: 14px 18px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
}

.variant-header h3 {
    font-size: 1.2rem;
}

.variant-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 16px;
    padding: 16px;
    align-items: stretch;  /* 让两列高度一致 */
}

.variant-image {
    display: flex;
    align-items: stretch;
}

.variant-image img {
    width: 100%;
    height: 100%;  /* 占满容器高度，与spec-image匹配 */
    min-height: 440px;  /* 最小高度，可根据spec-image实际高度调整 */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.spec-image {
    display: flex;
    align-items: stretch;
}

.spec-image img {
    width: 100%;
    height: auto;  /* 根据图片内容自适应 */
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    background: #fff;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fafbfc;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
}

.spec-table thead th {
    background: #eef5fb;
    color: #2c3e50;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e3eef8;
}

.spec-table tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #eef2f6;
    color: #34495e;
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

/* 规格图片展示样式已在上面定义 */

@media (max-width: 768px) {
    .variant-body {
        grid-template-columns: 1fr;
    }
    .variant-image img {
        height: 200px;
    }
}

/* 响应式设计 */
/* ===== 覆盖与细节压缩：等高布局 + 右侧信息行距更紧凑 ===== */
.product-info {
    align-items: stretch; /* 让两列等高 */
}

.product-image,
.product-details {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-details {
    line-height: 1.35; /* 压缩右侧整体行高 */
}

.product-details h1 {
    margin-bottom: 10px; /* 减小标题与下方间距 */
}

.product-specs {
    margin-bottom: 10px; /* 规格区域与下方间距更紧凑 */
}

.spec-item {
    margin-bottom: 8px; /* 每条规格条目更紧凑 */
}

.contact-info {
    padding: 10px; /* 联系方式卡片更紧凑 */
}

.contact-details {
    gap: 2px; /* 联系方式条目间距更小 */
}

/* 标题也可更紧凑（可选） */
.contact-info h3 {
    margin-bottom: 1px;
}


/* 让三条之间几乎无缝，条目内部也更紧凑 */


.contact-item {
    line-height: 3.05;      /* 条目内部行高（比 1.0 稍安全） */
    padding: 0;             /* 去内边距 */
    margin: 0;              /* 去外边距 */
    column-gap: 6px;        /* 左右图标与文字更紧 */
    align-items: center;    /* 垂直对齐靠中，减少多余空白 */
}



@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .product-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-details h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .contact-details {
        gap: 10px;
    }
    
    .qr-code {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-image {
        height: 120px;
    }
    
    .product-details h1 {
        font-size: 1.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .feature-number {
        align-self: center;
    }
}
