/* ============================================================
   Mind Creator · Ant Design Pro 风格
   设计哲学：简约专业 · 企业级中台 · 高端大气
   ============================================================ */

/* ── CSS 变量 ── */
:root {
  /* 主色调 - Ant Design Blue */
  --ant-blue: #1677FF;
  --ant-blue-light: #1677FF10;
  --ant-blue-hover: #4096FF;
  --ant-blue-active: #0958D9;

  /* 成功/警告/危险 */
  --success: #52C41A;
  --success-bg: #F6FFED;
  --warning: #FAAD14;
  --warning-bg: #FFFBE6;
  --error: #FF4D4F;
  --error-bg: #FFF2F0;
  --info: #1677FF;
  --info-bg: #E6F4FF;

  /* 文字颜色 */
  --text-primary: #262626;
  --text-secondary: #595959;
  --text-tertiary: #8C8C8C;
  --text-disabled: #BFBFBF;

  /* 边框 */
  --border: #D9D9D9;
  --border-light: #F0F0F0;
  --border-radius: 8px;

  /* 背景 */
  --bg-base: #F5F5F5;
  --bg-white: #FFFFFF;

  /* 阴影 */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-3: 0 6px 16px rgba(0, 0, 0, 0.08), 0 9px 28px rgba(0, 0, 0, 0.05);

  /* 布局 */
  --header-height: 64px;
  --sider-width: 220px;
  --page-padding: 24px;
}

/* ── 基础重置 ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5715;
}

a {
  color: var(--ant-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--ant-blue-hover); }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D9D9D9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #BFBFBF; }

/* ============================================================
   布局结构
   ============================================================ */

.mc-layout {
  display: flex;
  min-height: 100vh;
}

/* ── 侧边栏 ── */
.mc-sider {
  width: var(--sider-width);
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: all 0.2s;
}

.mc-logo {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.mc-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--ant-blue), #52C5FF);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mc-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.mc-logo-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── 侧边导航 ── */
.mc-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.mc-nav-menu {
  list-style: none;
}

.mc-nav-item {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin: 4px 0;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s;
  gap: 10px;
}

.mc-nav-item:hover {
  background: var(--ant-blue-light);
  color: var(--ant-blue);
}

.mc-nav-item.active {
  background: var(--ant-blue-light);
  color: var(--ant-blue);
  font-weight: 500;
}

.mc-nav-icon {
  font-size: 16px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-nav-badge {
  margin-left: auto;
  background: var(--error);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ── 侧边栏用户信息 ── */
.mc-sider-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-light);
}

.mc-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s;
}

.mc-user-info:hover {
  background: var(--border-light);
}

.mc-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ant-blue), #52C5FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.mc-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.mc-user-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── 主内容区 ── */
.mc-main {
  flex: 1;
  margin-left: var(--sider-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 顶部栏 ── */
.mc-header {
  height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.mc-breadcrumb {
  font-size: 14px;
  color: var(--text-secondary);
}

.mc-breadcrumb-sep {
  margin: 0 8px;
  color: var(--text-disabled);
}

.mc-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 页面容器 ── */
.mc-content {
  flex: 1;
  padding: var(--page-padding);
}

/* ── 页面标题 ── */
.mc-page-header {
  margin-bottom: 24px;
}

.mc-page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mc-page-desc {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================================
   卡片组件
   ============================================================ */

.mc-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.mc-card:hover {
  box-shadow: var(--shadow-2);
}

.mc-card-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.mc-card-body {
  padding: 24px;
}

/* ============================================================
   统计卡片
   ============================================================ */

.mc-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mc-stat-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.mc-stat-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.mc-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mc-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mc-stat-icon.blue { background: var(--info-bg); }
.mc-stat-icon.green { background: var(--success-bg); }
.mc-stat-icon.orange { background: var(--warning-bg); }
.mc-stat-icon.red { background: var(--error-bg); }

.mc-stat-trend {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.mc-stat-trend.up {
  background: var(--success-bg);
  color: var(--success);
}

.mc-stat-trend.down {
  background: var(--error-bg);
  color: var(--error);
}

.mc-stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.mc-stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================================
   按钮
   ============================================================ */

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.mc-btn-primary {
  background: var(--ant-blue);
  color: white;
  border-color: var(--ant-blue);
}

.mc-btn-primary:hover {
  background: var(--ant-blue-hover);
  border-color: var(--ant-blue-hover);
}

.mc-btn-default {
  background: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--border);
}

.mc-btn-default:hover {
  color: var(--ant-blue);
  border-color: var(--ant-blue);
}

.mc-btn-text {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.mc-btn-text:hover {
  color: var(--ant-blue);
  background: var(--ant-blue-light);
}

.mc-btn-danger {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

.mc-btn-danger:hover {
  background: #FF7875;
  border-color: #FF7875;
}

.mc-btn-success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.mc-btn-success:hover {
  background: #73D13D;
  border-color: #73D13D;
}

.mc-btn-sm {
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
}

.mc-btn-lg {
  height: 40px;
  padding: 0 24px;
  font-size: 16px;
}

/* ============================================================
   表单
   ============================================================ */

.mc-input {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  width: 100%;
}

.mc-input:focus {
  border-color: var(--ant-blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.mc-input::placeholder {
  color: var(--text-disabled);
}

.mc-select {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.mc-select:focus {
  border-color: var(--ant-blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.mc-form-group {
  margin-bottom: 16px;
}

.mc-form-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
}

.mc-textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

.mc-textarea:focus {
  border-color: var(--ant-blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

/* ============================================================
   徽章/标签
   ============================================================ */

.mc-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  border: 1px solid transparent;
}

.mc-tag-blue { background: var(--info-bg); color: var(--info); }
.mc-tag-green { background: var(--success-bg); color: var(--success); }
.mc-tag-orange { background: var(--warning-bg); color: var(--warning); }
.mc-tag-red { background: var(--error-bg); color: var(--error); }
.mc-tag-gray { background: #F5F5F5; color: var(--text-secondary); }
.mc-tag-purple { background: #F9F0FF; color: #722ED1; }

/* ============================================================
   表格
   ============================================================ */

.mc-table-wrap {
  overflow-x: auto;
}

.mc-table {
  width: 100%;
  border-collapse: collapse;
}

.mc-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #FAFAFA;
  border-bottom: 1px solid var(--border-light);
}

.mc-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.mc-table tbody tr {
  transition: background 0.15s;
}

.mc-table tbody tr:hover {
  background: #FAFAFA;
}

.mc-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   标签页
   ============================================================ */

.mc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.mc-tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.mc-tab:hover {
  color: var(--ant-blue);
}

.mc-tab.active {
  color: var(--ant-blue);
  border-bottom-color: var(--ant-blue);
  font-weight: 500;
}

/* ============================================================
   搜索框
   ============================================================ */

.mc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mc-search:focus-within {
  border-color: var(--ant-blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.mc-search-icon {
  font-size: 14px;
  color: var(--text-disabled);
}

.mc-search input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  width: 200px;
  background: transparent;
  font-family: inherit;
}

/* ============================================================
   筛选工具栏
   ============================================================ */

.mc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
}

.mc-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.mc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   快速入口
   ============================================================ */

.mc-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.mc-quick-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mc-quick-item:hover {
  border-color: var(--ant-blue);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.mc-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.mc-quick-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.mc-quick-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ============================================================
   审核卡片
   ============================================================ */

.mc-review-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mc-review-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--border);
}

.mc-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mc-review-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.mc-review-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.mc-review-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mc-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-review-actions {
  display: flex;
  gap: 8px;
}

/* ============================================================
   模态框
   ============================================================ */

.mc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.mc-modal {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease;
}

.mc-modal.large { max-width: 800px; }
.mc-modal.small { max-width: 400px; }

.mc-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.mc-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.mc-modal-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.mc-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.mc-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   Toast 通知
   ============================================================ */

.mc-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.mc-toast {
  padding: 12px 16px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-3);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.2s ease;
  min-width: 240px;
  border: 1px solid var(--border-light);
}

.mc-toast.success { border-left: 3px solid var(--success); }
.mc-toast.error { border-left: 3px solid var(--error); }
.mc-toast.warning { border-left: 3px solid var(--warning); }

/* ============================================================
   空状态
   ============================================================ */

.mc-empty {
  text-align: center;
  padding: 48px 24px;
}

.mc-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.mc-empty-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mc-empty-desc {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================================
   提示词列表
   ============================================================ */

.mc-prompt-group {
  margin-bottom: 16px;
}

.mc-prompt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  cursor: pointer;
  transition: background 0.2s;
}

.mc-prompt-header:hover {
  background: var(--border-light);
}

.mc-prompt-header.open {
  border-bottom: none;
}

.mc-prompt-icon {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
}

.mc-prompt-header.open .mc-prompt-icon {
  transform: rotate(90deg);
}

.mc-prompt-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.mc-prompt-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.mc-prompt-body {
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  overflow: hidden;
}

/* ============================================================
   知识库
   ============================================================ */

.mc-kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.mc-kb-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.mc-kb-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.mc-kb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mc-kb-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.mc-kb-count {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 10px;
}

.mc-kb-body {
  padding: 8px 0;
}

.mc-kb-item {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.mc-kb-item:last-child {
  border-bottom: none;
}

.mc-kb-item:hover {
  background: #FAFAFA;
}

.mc-kb-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ============================================================
   AI 助手
   ============================================================ */

.mc-ai-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.mc-ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mc-platform-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-white);
}

.mc-platform-item:hover {
  border-color: var(--ant-blue);
  color: var(--ant-blue);
}

.mc-platform-item.active {
  border-color: var(--ant-blue);
  background: var(--ant-blue-light);
  color: var(--ant-blue);
}

.mc-ai-result {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  min-height: 400px;
}

.mc-ai-result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--text-tertiary);
}

.mc-ai-result-area {
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 500px;
  overflow-y: auto;
}

/* ============================================================
   图表
   ============================================================ */

.mc-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.mc-chart-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 20px;
}

.mc-chart-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.mc-progress-item {
  margin-bottom: 16px;
}

.mc-progress-item:last-child {
  margin-bottom: 0;
}

.mc-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.mc-progress-label {
  color: var(--text-secondary);
}

.mc-progress-value {
  font-weight: 500;
  color: var(--text-primary);
}

.mc-progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.mc-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ============================================================
   编辑器
   ============================================================ */

.mc-editor-wrap {
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.mc-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--border-light);
}

.mc-editor-toolbar button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.mc-editor-toolbar button:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.mc-editor-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.mc-editor-content {
  min-height: 300px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  outline: none;
  background: var(--bg-white);
}

.mc-editor-content:empty:before {
  content: attr(data-placeholder);
  color: var(--text-disabled);
}

/* ============================================================
   登录页
   ============================================================ */

.mc-login-layout {
  display: flex;
  min-height: 100vh;
}

.mc-login-left {
  flex: 1;
  background: linear-gradient(135deg, #001529, #1677FF);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.mc-login-brand {
  margin-bottom: 60px;
}

.mc-login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.mc-login-logo-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.mc-login-logo-text {
  font-size: 28px;
  font-weight: 600;
  color: white;
}

.mc-login-slogan {
  font-size: 40px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  margin-bottom: 24px;
}

.mc-login-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  max-width: 400px;
}

.mc-login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.mc-login-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.mc-login-right {
  width: 480px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
}

.mc-login-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.mc-login-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.mc-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mc-login-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-login-input-label {
  font-size: 14px;
  color: var(--text-primary);
}

.mc-login-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mc-login-input:focus {
  border-color: var(--ant-blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.mc-login-btn {
  height: 44px;
  background: var(--ant-blue);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.mc-login-btn:hover {
  background: var(--ant-blue-hover);
}

.mc-login-roles {
  margin-top: 40px;
}

.mc-login-roles-title {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.mc-login-role-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mc-login-role-item:hover {
  border-color: var(--ant-blue);
  background: var(--ant-blue-light);
}

.mc-login-role-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.mc-login-role-name {
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
}

.mc-login-role-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============================================================
   警告提示
   ============================================================ */

.mc-alert {
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.mc-alert-warning {
  background: var(--warning-bg);
  color: #AD6800;
  border: 1px solid #FFD666;
}

.mc-alert-success {
  background: var(--success-bg);
  color: #389E0D;
  border: 1px solid #B7EB8F;
}

.mc-alert-error {
  background: var(--error-bg);
  color: #CF1322;
  border: 1px solid #FFCCC7;
}

.mc-alert-info {
  background: var(--info-bg);
  color: #0958D9;
  border: 1px solid #91CAFF;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1200px) {
  .mc-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .mc-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .mc-ai-layout { grid-template-columns: 1fr; }
  .mc-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .mc-kb-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mc-sider { transform: translateX(-100%); }
  .mc-main { margin-left: 0; }
  .mc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .mc-login-layout { flex-direction: column; }
  .mc-login-left { display: none; }
  .mc-login-right { width: 100%; }
}

/* ============================================================
   动画
   ============================================================ */

.fade-in { animation: fadeIn 0.3s ease; }
.slide-up { animation: slideUp 0.3s ease; }

/* ============================================================
   辅助类
   ============================================================ */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.bg-white { background: var(--bg-white); }
.bg-base { background: var(--bg-base); }

.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }

.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow-2); }

.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
