/* AI创作面板独立样式（ai-create-* 前缀） */
/* 与 #ai-create.panel-content（flex 列、height:100%）衔接，用 flex 占满可用高度，避免 vh 估算留白 */
.ai-create-panel {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ai-create-layout {
    display: flex;
    gap: 12px;
    padding: 0 12px 12px;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
}

.ai-create-left,
.ai-create-right {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ai-create-left {
    width: 520px;
    flex: 0 0 auto;
}

.ai-create-right {
    flex: 1 1 auto;
}

.ai-create-left-header,
.ai-create-right-header {
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.ai-create-left-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
}

.ai-create-left-subtitle {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
}

.ai-create-chat-wrap {
    padding: 10px;
    overflow: auto;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* 左侧聊天根节点需参与 flex，子级 .ai-create-chat-shell 才能撑满剩余高度 */
.ai-create-panel .ai-create-chat-root {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 右侧 tabs */
.ai-create-right-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-create-right-tab {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
}

.ai-create-right-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.ai-create-right-tab.is-active {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(37, 99, 235, 0.55);
    color: rgba(255, 255, 255, 0.95);
}

.ai-create-right-body {
    padding: 12px;
    overflow: auto;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.ai-create-right-panel {
    display: none;
}

.ai-create-right-panel.is-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.ai-create-placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    flex: 1 1 auto;
    min-height: 0;
}

.ai-create-placeholder-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.ai-create-placeholder-desc {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
}

/* 深色滚动条（仅作用于本面板容器内） */
.ai-create-panel ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: #2d2d2d;
}
.ai-create-panel ::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 6px;
}
.ai-create-panel ::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 6px;
}
.ai-create-panel ::-webkit-scrollbar-thumb:hover {
    background: #666666;
}
.ai-create-panel ::-webkit-scrollbar-corner {
    background: #2d2d2d;
}

