/* ===== AI 文档页：黑色调背景与前景，与 AI 学院其他页面统一 ===== */
.ai-studio-wrapper:has(.ai-document-page) {
    --ws-bg: #1a1a1a;
    --ws-surface: #222222;
    --ws-text: #e0e0e0;
    --ws-text-muted: #999999;
    --ws-border: rgba(255, 255, 255, 0.08);
    --ws-accent: #5cb85c;
}

.ai-studio-wrapper:has(.ai-document-page) .ai-main-content {
    background: var(--ws-bg);
}

.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner {
    background: var(--ws-surface);
    color: var(--ws-text);
    min-height: calc(100vh - 56px);
}

.ai-studio-wrapper:has(.ai-document-page) .ai-mobile-header {
    background: var(--ws-surface);
    border-bottom: 1px solid var(--ws-border);
}

.ai-studio-wrapper:has(.ai-document-page) .ai-mobile-toggle,
.ai-studio-wrapper:has(.ai-document-page) .ai-mobile-title {
    color: var(--ws-text);
}

/* 正文、标题 */
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner,
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner p,
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner .document_detail,
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner .document_detail p,
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner .document_detail li {
    color: var(--ws-text);
}

.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner h5,
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner h6 {
    color: var(--ws-text);
}

/* 标题下边框（原 border-success） */
.ai-studio-wrapper:has(.ai-document-page) .ai-document-page .border-bottom.border-success {
    border-color: var(--ws-accent) !important;
}

.ai-studio-wrapper:has(.ai-document-page) .ai-document-page .border-bottom {
    border-color: var(--ws-border) !important;
}

/* 文档内容区链接等 */
.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner .document_detail a {
    color: var(--ws-accent);
}

.ai-studio-wrapper:has(.ai-document-page) .ai-content-inner .document_detail a:hover {
    color: #4cae4c;
}

/* 容器内边距 */
.ai-studio-wrapper:has(.ai-document-page) .ai-document-page {
    padding-top: 24px;
    padding-bottom: 24px;
}
