/* 产品主内容区域 */
.product-main {
    padding: 10px 0 20px;
    background: white;
    margin-bottom: 20px;
}

.product-container {
    max-width: 1400px;
    padding: 15px;
    display: flex;
    margin: 0 auto;
    gap: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-image {
    flex: 1.1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
}

.product-image img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}

.product-info {
    flex: 0.9;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 35px 35px 45px;
}

.product-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;  /* 从20px减少到15px */
    color: #333;
}

.specs {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.specs p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.description {
    margin-bottom: 20px;  /* 从30px减少到20px */
    line-height: 1.6;
}

/* 新版下载按钮布局 */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 0;
}

.download-btn {
    flex: 1 1 calc(50% - 15px);
    min-width: 200px;
    padding: 15px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #2a7fba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}
.download-btn:hover {
    background: #1e6fa5;
}

.download-btn i {
    margin-right: 8px;
}
.image-wrapper {
    height: 90%;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    padding: 15px;
    border-radius: 4px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    top: 20px;
    left: 30px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    object-fit: contain;
    object-position: center;
    max-width: 90%;
    max-height: 90%;
}

/* 面包屑导航样式 */
.breadcrumb {
    position: relative;
    top: auto; /* 从0改为10px */
    z-index: 10;
    padding: 15px 0;
    margin-top: 80px;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #2a7fba;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 8px;
    border-radius: 4px;
}

.breadcrumb a:hover {
    color: #1a5f8b;
    background-color: #f0f7fc;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
    font-weight: bold;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
    padding: 5px 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}


/* 外观图样式 */
.appearance-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.appearance-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2a7fba;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}



.appearance-image {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.appearance-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 4px;
}

/* 标签页样式 */
.tab-section {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 10px;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    position: relative;
    margin-right: 10px;
}

.tab-button.active {
    color: #2a7fba;
    font-weight: 600;
}

.tab-button.active:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2a7fba;
}

.tab-pane {
    display: none;
    padding: 10px;
}

.tab-pane.active {
    display: block;
}

/* 标签页内规格表样式 */
.tab-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tab-section td {
    padding: 15px;
    border: 1px solid #e1e4e8;
    line-height: 1.3; /* 减小行高 */
}

.tab-section tr:not(:last-child) td {
    border-bottom: 1px solid #e1e4e8;
}

.tab-section tr:first-child td {
    background: #f8fafc;
}

.tab-section tr:hover td {
    background: #f0f7fc;
}

.tab-section td:first-child {
    width: 15%;
    font-weight: 500;
    background: #f8fafc;
    text-align: left;
}

.tab-section td:last-child {
    width: 70%;
}

.tab-section tr:last-child td {
    border-bottom: none;
}

/* 产品参数区域样式 */
.product-params {
    max-width: 1400px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
    margin-top: 0;
}

.params-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 0;
}

.params-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2a7fba;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}



.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.param-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 4px;
}

.param-name {
    font-weight: 600;
    color: #2a7fba;
}

.param-value {
    color: #333;
    font-family: monospace;
}

.file-preview {
    text-align: center;
    margin-top: 20px;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #2a7fba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.preview-link:hover {
    background: #1e6fa5;
}

.preview-link i {
    margin-right: 8px;
}

/* 合并后的产品参数表格样式 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
    table-layout: fixed;  /* 确保表格布局固定 */
    margin-top: 20px; /* 保持适当的上边距 */
}

.params-table th,
.params-table td {
    padding: 12px 8px;
    border: 1px solid #e1e4e8;
    white-space: nowrap;
    font-size: 14px;
    text-align: center; /* 默认所有单元格居中对齐 */
}

.params-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2a7fba;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    padding: 5px 4px;  /* 进一步减小内边距 */
    font-size: 13px;
}

/* 确保第一列（产品型号）左对齐 */
.params-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f8fafc;
}

.params-table td:first-child a {
    color: #2a7fba;
    text-decoration: none;
    transition: color 0.3s;
}

.params-table td:first-child a:hover {
    color: #1a5f8b;
    text-decoration: underline;
}

/* 修改表格行颜色规则 */
.params-table tbody tr:nth-child(odd) {
    background: #f8fafc;
}

.params-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.params-table tr:hover {
    background: #f0f7fc;
}

.file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.file-previews .preview-link {
    margin: 0;
}

.accessories-container {
    padding: 20px;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.accessory-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
}

.accessory-item img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.accessory-item h4 {
    margin: 10px 0;
    color: #333;
}

.accessory-item p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* 规格表格样式 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.spec-table th, .spec-table td {
    padding: 12px;
    border: 1px solid #e1e4e8;
    text-align: left;
}

.spec-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2a7fba;
}

/* 参数表格容器样式 */
.params-table-container {
    overflow-x: auto;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: -12px;
}

/* 产品主内容区域样式 */
.product-main {
    background: white;
    padding: 40px 0 0 0;
}

/* 产品卡片样式 */
.product-card {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 45px 40px 60px;
}

/* 产品信息样式 */
.product-info {
    flex: 1;
    min-width: 400px;
}

.product-info h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info h1 + h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-info ul {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    padding-left: 1.2em;
}

/* 产品参数区域样式 */
.product-params {
    background: white;
    margin-top: 30px;
    padding: 10px 0px 50px 0;
}

.params-container {
    max-width: 2000px;
    margin: 0 auto;
}

.params-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.params-table col:nth-child(1) { width: 19%; }
.params-table col:nth-child(2) { width: 6%; }
.params-table col:nth-child(3) { width: 6%; }
.params-table col:nth-child(4) { width: 6%; }
.params-table col:nth-child(5) { width: 6%; }
.params-table col:nth-child(6) { width: 5%; }
.params-table col:nth-child(7) { width: 6%; }
.params-table col:nth-child(8) { width: 6%; }
.params-table col:nth-child(9) { width: 6.5%; }
.params-table col:nth-child(10) { width: 6.5%; }
.params-table col:nth-child(11) { width: 6.5%; }
.params-table col:nth-child(12) { width: 6.5%; }
.params-table col:nth-child(13) { width: 6%; }
.params-table col:nth-child(14) { width: 6%; }
.params-table col:nth-child(15) { width: 6%; }
.params-table col:nth-child(16) { width: 6%; }

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .product-container {
        flex-direction: column;
        padding: 10px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .image-wrapper {
        min-height: 300px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .download-btn {
        width: 100%;
        min-width: unset;
    }

    .breadcrumb-container {
        padding: 0 15px;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb .separator {
        margin: 0 4px;
    }

    .tab-section {
        padding: 10px;
        overflow-x: auto;
    }

    .params-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .params-table {
        min-width: 800px;
    }

    .params-table th,
    .params-table td {
        padding: 8px 4px;
        font-size: 0.9rem;
    }

    .accessories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .accessory-item {
        padding: 10px;
    }

    .accessory-item img {
        max-height: 150px;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
    .product-info h2 {
        font-size: 1.3rem;
    }

    .image-wrapper {
        min-height: 250px;
    }

    .params-table th,
    .params-table td {
        font-size: 0.8rem;
        padding: 6px 3px;
    }

    .tab-button {
        padding: 8px 16px;
        font-size: 1rem;
    }
}