/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1F3B77;
}

/* 产品展示区域 */
.product-container {
    display: flex;
    margin-bottom: 50px;
}

/* 产品图片区域 */
.product-gallery {
    flex: 0 0 50%;
}

.gallery-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-image {
    flex: 1;
    padding: 10px;
}

.main-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    height: 100%;
}

.thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow: hidden;
}

/* 优化后的缩略图滚动容器 */
.thumbnail-wrapper {
    height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.thumbnail-wrapper::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.thumbnail-wrapper:hover::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: rgba(200, 200, 200, 0.8);
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    margin: 5px;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: #ff6b00;
}

.nav-btn {
    width: 24px;
    height: 24px;
    border: 0px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
}

.nav-btn i {
    font-size: 16px;
}

.nav-btn:hover {
    background: #f5f5f5;
    color: #1F3B77;
}

/* 产品信息区域 */
.product-info {
    flex: 0 0 50%;
    background: #f7f7f7;
    padding: 40px 40px 32px 40px;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    min-width: 500px;
}

.model-number {
    color: #1F3B77;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #222;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.product-features-list {
    margin-bottom: 32px;
    list-style: none;
    padding-left: 0;
}

.product-features-list li {
    color: #888;
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.product-features-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1F3B77;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px;
}

.list-paddingleft-2 li {
    color: #888;
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 2px;
    margin: 4px 18px;
    list-style-image: url(../images/list-style-image.png);
}

.product-divider {
    border-bottom: 2px solid #ececec;
    margin: 32px 0 32px 0;
}

.product-meta-row {
    display: flex;
    gap: 40px;
    margin-bottom: 0;
}

.meta-item {
    flex: 1;
    border-right: 1px solid #e6e6e6;
}

.meta-item:last-child {
    border-right: none;
}

.meta-item h3 {
    color: #1F3B77;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.meta-item ul {
    list-style: none;
    padding-left: 0;
}

.meta-item ul li {
    color: #444;
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.meta-item ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1F3B77;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 10px;
}

.inquiry-btn.outlined {
    background: #fff;
    color: #1F3B77;
    border: 1px solid #1F3B77;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 40px;
    margin-top: 2px;
    transition: background 0.2s, color 0.2s;
}

.inquiry-btn.outlined:hover {
    background: #1F3B77;
    color: #fff;
}

.product-info h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #000000;
}

.product-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1F3B77;
}

.product-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.meta-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.inquiry-btn {
    background-color: #1F3B77;
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    border-radius: 3px;
    margin-top: 10px;
}

.inquiry-btn:hover {
    background-color: #a30f28;
}

.product-features ul li {
    color: #333;
    margin-bottom: 8px;
}

.meta-item h3 {
    color: #1F3B77;
    font-size: 16px;
    font-weight: normal;
}

/* 侧边栏 */
.spec-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sidebar {
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1);
    padding: 32px 24px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.sidebar-icon {
    font-size: 44px;
    color: #c41230;
    margin-right: 12px;
}

.sidebar-title {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #222;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-top: 1px solid #e6e6e6;
}

.sidebar-list li:first-child {
    border-top: none;
}

.sidebar-list a {
    display: flex;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
    padding: 15px 0;
    font-size: 18px;
    justify-content: space-between;
    align-items: center;
    font-family: "Antartida-Bold";
}

.sidebar-list a:hover {
    color: #1F3B77;
}

.sidebar-list i.fa-chevron-right {
    font-size: 18px;
    color: #bbb;
}

.spec-table-wrapper {
    flex: 1;
    min-width: 0;
}

/* 产品描述 */
.specifications {
    margin-bottom: 50px;
    background: #fff;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1);
    padding: 32px 24px;
}

.specifications h2 {
    color: #fff;
    background-color: #1F3B77;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 22px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

.spec-table th,
.spec-table td {
    padding: 16px 20px;
    border: 1px solid #ddd;
    font-size: 18px;
}

.spec-table th {
    background-color: #f5f5f5;
    text-align: left;
    width: 30%;
}

.spec-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.spec-table tr:hover {
    background-color: #f5f5f5;
}

.spec-table tr.rowspan td {
    border-top: 1px solid #e0e0e0;
}

/* 相关产品 */
.related-products {
    margin-top: 40px;
}

.related-title {
    position: relative;
    padding-left: 20px;
    margin-bottom: 18px;
}

.title-decoration {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #1F3B77;
}

.title-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-products-label {
    color: #1F3B77;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.related-products h2 {
    font-size: 28px;
    color: #222;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: bold;
    margin: 0;
    text-align: justify;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1);
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(31,59,119,0.2);
}

.product-card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

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

.product-model {
    color: #c41230;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.product-name {
    font-size: 18px;
    color: #222;
    font-weight: bold;
    margin-bottom: 4px;
}

.product-desc {
    color: #888;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info {
        flex: 0 0 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-image {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .product-info {
        min-width: auto;
        padding: 20px;
    }
    
    .product-title, .product-info h1 {
        font-size: 32px;
    }
}



.main-image {
    position: relative;
    overflow: hidden; /* 确保图片不会超出容器 */
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例，不拉伸 */
}

.main-prev-btn, .main-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10; /* 确保按钮显示在图片上方 */
}

.main-image:hover .main-prev-btn, 
.main-image:hover .main-next-btn {
    opacity: 1;
}

.main-prev-btn {
    left: 15px; /* 距离左侧15px */
}

.main-next-btn {
    right: 15px; /* 距离右侧15px */
}


/* 产品规格表格样式 */
.specifications table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.specifications table th,
.specifications table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea; /* 新增：列分隔线 */
    vertical-align: top;
}

.specifications table th {
    background-color: #f8fafc;
    color: #1F3B77;
    font-weight: 600;
    border-right: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 10;
}

.specifications table th:last-child {
    border-right: none;
}

.specifications table tr:last-child td {
    border-bottom: none;
}

.specifications table tr:nth-child(even) {
    background-color: #fcfdfe;
}

.specifications table tr:hover {
    background-color: #f5f8ff;
    transition: background-color 0.2s ease;
}

.specifications table td {
    color: #333;
}

.specifications table .firstRow td {
    font-weight: bold;
    background-color: #f0f4ff;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .specifications table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .specifications table th,
    .specifications table td {
        padding: 16px 20px;
        text-align: left;
        border-bottom: 1px solid #eaeaea;
        border-right: 1px solid #eaeaea; /* 新增：列分隔线 */
        vertical-align: top;
    }
    .sidebar {
        display: none;
    }
}