/**
 * AI设计面板 - 独立样式（仅本面板使用，不与其他面板通用）
 * 左侧导航 130px、居中、按钮式边框；配色与任务系统一致
 * 字体规范：Microsoft YaHei
 */

/* ========== 主面板布局 ========== */
.ai-design-panel {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    background-color: var(--bg-primary, #1a1a1a);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    color: var(--text-primary, #e0e0e0);
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-secondary, #404040);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========== 左侧导航栏区域（宽度减半 130px，内容居中、按钮式） ========== */
.ai-design-sidebar {
    width: 130px;
    min-width: 130px;
    height: 100%;
    background-color: var(--bg-secondary, #242424);
    border-right: 1px solid var(--border-primary, #333333);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.ai-design-sidebar-header {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-primary, #333333);
    background-color: var(--bg-secondary, #242424);
    text-align: center;
}

.ai-design-sidebar-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary, #e0e0e0);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.ai-design-sidebar-title-icon {
    flex-shrink: 0;
    color: var(--text-accent, #4a9eff);
}

.ai-design-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ai-design-sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.ai-design-sidebar-content::-webkit-scrollbar-track {
    background-color: transparent;
}

.ai-design-sidebar-content::-webkit-scrollbar-thumb {
    background-color: var(--border-primary, #333333);
    border-radius: 2px;
}

.ai-design-sidebar-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--border-secondary, #444444);
}

/* 导航列表：每项为按钮样式、独立边框、居中 */
.ai-design-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ai-design-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-primary, #333333);
    border-radius: 6px;
    background-color: var(--bg-tertiary, #1a1a1a);
    text-align: center;
}

.ai-design-nav-item:hover {
    background-color: var(--bg-hover, #333333);
    border-color: var(--border-secondary, #404040);
    color: var(--text-accent, #4a9eff);
}

.ai-design-nav-item.active {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.22) 0%, rgba(74, 158, 255, 0.12) 100%);
    border-color: var(--border-secondary, #404040);
    color: #7dc1ff;
    box-shadow: none;
}

.ai-design-nav-item.active .ai-design-nav-text {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(125, 193, 255, 0.35);
}

.ai-design-nav-icon {
    flex-shrink: 0;
}

.ai-design-nav-item:hover .ai-design-nav-icon,
.ai-design-nav-item.active .ai-design-nav-icon {
    color: var(--text-accent, #4a9eff);
}

.ai-design-nav-item.active .ai-design-nav-icon {
    color: #7dc1ff;
    filter: drop-shadow(0 0 6px rgba(125, 193, 255, 0.4));
}

.ai-design-nav-text {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ========== 右侧内容区域 ========== */
.ai-design-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 12px 12px 0;
    background-color: var(--bg-primary, #1a1a1a);
}

.ai-design-content-inner {
    flex: 1;
    min-height: 0;
    overflow: auto;
    position: relative;
}

.ai-design-content-page {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.ai-design-content-page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 占位内容（与任务系统占位风格一致） */
.ai-design-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #666666);
}

.ai-design-placeholder-icon {
    opacity: 0.5;
}

.ai-design-placeholder-icon svg {
    stroke: var(--text-muted, #666666);
}

.ai-design-placeholder-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #999999);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.ai-design-placeholder-hint {
    font-size: 12px;
    color: var(--text-muted, #666666);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}
