/* 现代化技术支持样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* 重置基础样式 */
.tech-support-container {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-color);
    min-height: 100vh;
}

/* 布局容器 */
.tech-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* 左侧导航包装器 */
.tech-sidebar-wrapper {
    margin-top: 30px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* 主内容区域 */
.tech-content-wrapper {
    background: var(--bg-color);
    padding: 2rem;
    overflow-y: auto;
    height: 100vh;
}

/* 内容头部 */
.tech-content-header {
    margin-bottom: 2rem;
    text-align: center;
}

.tech-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 文章内容区域 */
.tech-article-frame {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: calc(100vh - 200px);
    border: 1px solid var(--border-color);
}

.tech-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--card-bg);
}

/* 技术支持左侧导航样式 */
.tech-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    min-height: calc(100vh - 100px);
}
/* 技术支持中心标题样式 */
.tech-sidebar-header {
    text-align: center;
    border-bottom: 0px solid var(--border-color);
}

.tech-center-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-center-title:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.1));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tech-help-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.tech-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.tech-nav-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.tech-nav-group {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #fafafa;
    transition: background-color 0.3s;
}

.tech-nav-group:hover {
    background-color: #f0f0f0;
}

.tech-nav-title {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.tech-nav-icon {
    margin-right: 8px;
    font-size: 14px;
    color: #1890ff;
}

.tech-nav-toggle {
    margin-left: auto;
    transition: transform 0.3s;
}

.tech-nav-toggle.collapsed {
    transform: rotate(-90deg);
}

.tech-nav-children {
    display: none;
    background-color: #fff;
}

.tech-nav-children.show {
    display: block;
}

.tech-nav-child {
    border-left: 3px solid transparent;
}

.tech-nav-child-title {
    padding: 10px 16px 10px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #595959;
    transition: all 0.3s;
}

.tech-nav-child-title:hover {
    background-color: #f5f5f5;
    color: #1890ff;
    border-left-color: #1890ff;
}

.tech-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.tech-article-list.show {
    display: block;
}

.tech-article-item {
    padding: 0;
}

.tech-article-item a {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 32px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.tech-article-item a:hover {
    background-color: #f0f8ff;
    color: #1890ff;
    padding-left: 36px;
}

.tech-article-item.active a {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
    border-left: 3px solid #1890ff;
}

.tech-article-icon {
    margin-right: 6px;
    font-size: 12px;
    color: #999;
}

.tech-article-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tech-article-meta {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

/* 一级分类直接显示文章时的样式 */
.tech-nav-item > .tech-article-list {
    padding-left: 0;
}

.tech-nav-item > .tech-article-list .tech-article-item a {
    padding-left: 48px;
}

.tech-nav-item > .tech-article-list .tech-article-item a:hover {
    padding-left: 52px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tech-sidebar {
        margin-bottom: 20px;
    }
    
    .tech-sidebar-header {
        padding: 15px 12px;
    }
    
    .tech-sidebar-header h3 {
        font-size: 16px;
    }
    
    .tech-nav-group,
    .tech-nav-child-title,
    .tech-article-item a {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .tech-nav-child-title {
        padding-left: 24px;
    }
    
    .tech-article-item a {
        padding-left: 36px;
    }
    
    .tech-nav-item > .tech-article-list .tech-article-item a {
        padding-left: 36px;
    }
}
