/* 标签页组件 */
.tabs-container {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: rgba(10, 20, 40, 0.5);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-button.active {
    color: var(--color-primary);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 面板标签切换 */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.panel-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.panel-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.panel-tab.active {
    color: var(--color-primary);
}

.panel-tab.active::after {
    transform: scaleX(1);
}

.panel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.panel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    overflow: auto;
    padding: 15px;
}

.panel-item.active {
    opacity: 1;
    z-index: 1;
}


.step-title {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.step-description {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: none;
}

.step-item.active .step-description {
    display: block;
}

/* 编辑器导航 */
.editor-controls {
    display: flex;
    gap: 8px;
}

.code-editor-container {
    position: relative;
    border-radius: 6px;
    background-color: rgba(10, 20, 30, 0.5);
    overflow: hidden;
    margin-bottom: 20px;
}

.code-editor-wrapper {
    display: flex;
    overflow-x: auto;
}

.line-numbers {
    padding: 15px 10px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-secondary);
    font-family: monospace;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--color-border);
    min-width: 40px;
}

.code-editor {
    flex: 1;
    padding: 15px;
    margin: 0;
    font-family: monospace;
    color: var(--color-text);
    white-space: pre;
    tab-size: 4;
    overflow-x: auto;
    line-height: 1.5;
}

.language-csharp {
    color: var(--color-text);
}