/* 产品标签页样式 */
.product-tabs {
    width: 100%;
    margin: 30px 0;
    background: transparent;
}

/* 标签头部 */
.tabs-header {
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 4px 4px 0 0;
    border: 1px solid #e0e0e0;
}

.tab-item span {
    display: block;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
}

/* 激活状态 */
.tab-item.active {
    background: #4299e1;
    border: 1px solid #4299e1;
}

.tab-item.active span {
    color: #fff;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #4299e1;
    z-index: 1;
}

/* 悬停效果 */
.tab-item:hover:not(.active) {
    background: #f5f5f5;
    border: 1px solid #ccc;
}

.tab-item:hover:not(.active) span {
    color: #4299e1;
}

/* 标签内容区域 */
.tabs-content {
    padding: 0;
    margin: 0 -20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

/* 渐显动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标签内容样式 */
.tab-pane .html_editor {
    line-height: 1.8;
    padding: 0 20px;
}

.tab-pane .html_editor h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4299e1;
}

.tab-pane .html_editor h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.tab-pane .html_editor h4 {
    font-size: 16px;
    color: #333;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.tab-pane .html_editor p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.tab-pane .html_editor ul,
.tab-pane .html_editor ol {
    margin: 15px 0;
    padding-left: 25px;
}

.tab-pane .html_editor li {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    list-style-type: disc;
}

.tab-pane .html_editor table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    border: 1px solid #666;
}

.tab-pane .html_editor table th,
.tab-pane .html_editor table td {
    padding: 10px 12px;
    border: 1px solid #666;
    text-align: center;
    vertical-align: middle;
}

.tab-pane .html_editor table th {
    background: #f8f8f8;
    font-weight: 700;
    color: #333;
}

.tab-pane .html_editor table td {
    color: #666;
    font-size: 13px;
}

/* 表格第一行样式（表头） */
.tab-pane .html_editor table tbody tr:first-child td {
    font-weight: 700;
    background: #f8f8f8;
    color: #333;
}

/* 表格第二行样式（副表头） */
.tab-pane .html_editor table tbody tr:nth-child(2) td {
    font-weight: 600;
    background: #fcfcfc;
    color: #444;
}

/* 表格内的p标签样式 */
.tab-pane .html_editor table p {
    margin: 0;
    padding: 0;
    color: inherit;
}

/* MsoNormal类样式重置 */
.tab-pane .html_editor table .MsoNormal {
    margin: 0;
    padding: 0;
    text-align: inherit;
}

/* 表格悬停效果 */
.tab-pane .html_editor table tbody tr:hover {
    background: #f9f9f9;
}

.tab-pane .html_editor table tbody tr:first-child:hover,
.tab-pane .html_editor table tbody tr:nth-child(2):hover {
    background: #f8f8f8;
}

.tab-pane .html_editor img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.tab-pane .html_editor strong {
    color: #333;
    font-weight: 600;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .tabs-nav {
        gap: 5px;
    }

    .tab-item span {
        padding: 10px 15px;
        font-size: 14px;
    }

    .tabs-content {
        margin: 0 -10px;
    }

    .tab-pane .html_editor {
        padding: 0 10px;
    }

    .tab-pane .html_editor h2 {
        font-size: 20px;
    }

    .tab-pane .html_editor h3 {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .tabs-header {
        margin-bottom: 20px;
    }

    .tabs-nav {
        gap: 3px;
    }

    .tab-item span {
        padding: 10px 12px;
        font-size: 13px;
    }

    .tabs-content {
        margin: 0;
    }

    .tab-pane .html_editor {
        padding: 0;
        font-size: 13px;
    }

    .tab-pane .html_editor h2 {
        font-size: 18px;
    }

    .tab-pane .html_editor h3 {
        font-size: 15px;
    }
}
