/* ============================================================
   统一品牌标识（登录页 / 控制台侧边栏共用）
   ============================================================ */

.oa-brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.oa-brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(30, 94, 255, 0.6);
}

.oa-brand-badge svg {
  width: 21px;
  height: 21px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.oa-brand-text {
  min-width: 0;
}

.oa-brand-name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.oa-brand-name span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.oa-brand-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

/* 大号（登录页） */
.oa-brand-logo-lg {
  gap: 13px;
}

.oa-brand-logo-lg .oa-brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.oa-brand-logo-lg .oa-brand-badge svg {
  width: 26px;
  height: 26px;
}

.oa-brand-logo-lg .oa-brand-name {
  font-size: 21px;
}

.oa-brand-logo-lg .oa-brand-sub {
  font-size: 11px;
}

/* 深色背景（登录页左侧品牌区） */
.oa-brand-logo-inverse .oa-brand-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.oa-brand-logo-inverse .oa-brand-name {
  color: #fff;
}

.oa-brand-logo-inverse .oa-brand-name span {
  background: linear-gradient(135deg, #ffffff 15%, #8edcff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.oa-brand-logo-inverse .oa-brand-sub {
  color: rgba(255, 255, 255, 0.62);
}
:root {
  /* ============================================================
     设计令牌 · 深海科技亮色（对齐原型）
     ============================================================ */

  /* 品牌色 */
  --brand: #1e5eff;
  --brand-2: #12c3e6;
  --brand-grad: linear-gradient(135deg, #1e5eff 0%, #12c3e6 100%);
  --brand-soft: #eaf1ff;

  /* Primary（兼容旧命名） */
  --primary-color: #1e5eff;
  --primary-hover: #1550e6;
  --primary-active: #0f43c9;
  --primary-bg: #eaf1ff;
  --primary-light: #f2f6ff;

  /* 表面 / 背景 */
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #f1f5fb;
  --content-bg: #eef2f9;
  --content-grad:
    radial-gradient(1200px 600px at 80% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 55%),
    radial-gradient(900px 500px at -10% 110%, #cffafe 0%, rgba(207, 250, 254, 0) 55%),
    #eef2f9;
  --page-bg: transparent;
  --page-padding: 26px 30px 60px;

  /* 文字 */
  --text: #0d1730;
  --text-primary: #0d1730;
  --text-secondary: #5a6b86;
  --text-muted: #93a1b8;
  --text-disabled: #b6c2d8;
  --text-link: #1e5eff;

  /* 边框 */
  --border: #e6ebf5;
  --border-strong: #d8e0ee;
  --border-color: #e6ebf5;
  --border-color-base: #d8e0ee;

  /* 圆角 */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --card-radius: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16, 32, 72, 0.06);
  --shadow-md: 0 6px 20px -6px rgba(16, 32, 72, 0.12);
  --shadow-lg: 0 18px 48px -18px rgba(16, 32, 72, 0.28);
  --card-shadow: 0 1px 2px rgba(16, 32, 72, 0.06);
  --card-shadow-hover: 0 6px 20px -6px rgba(16, 32, 72, 0.12);
  --card-border: #e6ebf5;
  --card-bg: #ffffff;

  /* 状态色 */
  --success-color: #0ea472;
  --success-bg: #e6f7f0;
  --warning-color: #e08a00;
  --warning-bg: #fdf3e2;
  --error-color: #e5484d;
  --error-bg: #fdecec;
  --processing-color: #2f74ff;
  --processing-bg: #eaf1ff;
  --default-color: #93a1b8;
  --info-color: #2f74ff;
  --info-bg: #eaf1ff;
  --purple-color: #7c5cff;
  --purple-bg: #f0ecff;

  /* 侧边栏 */
  --sidebar-bg: #ffffff;
  --sidebar-dark: #f7f8fa;
  --sidebar-text: #5a6b86;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: #f1f5fb;
  --sidebar-active: linear-gradient(135deg, #1e5eff 0%, #12c3e6 100%);
  --sidebar-active-border: #1e5eff;
  --sidebar-border: #e6ebf5;
  /* 应用导航宽度（与工作台右侧面板的 --sidebar-width 解耦） */
  --app-sidebar-width: 250px;
  --app-sidebar-collapsed-width: 72px;

  /* 布局 */
  --top-header-height: 66px;
  --top-header-bg: #ffffff;
  --top-header-text: #0d1730;
  --top-header-text-muted: #5a6b86;
  --top-header-hover: #f1f5fb;
  --header-height: var(--top-header-height);
  --card-padding: 20px;

  /* 字体 */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  --font-size-base: 14px;
  --font-size-sm: 13px;
  --font-size-xs: 12px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-title: 22px;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
}
/* ============================================================
   飞矩云控制台组件库（对齐原型 · 手写组件）
   ============================================================ */

/* ---------- 页面骨架 ---------- */
.oa-page {
  display: flex;
  flex-direction: column;
}

.oa-page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.oa-page-head h1 {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0.2px;
  color: var(--text);
  margin: 0;
}

.oa-page-head p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 3px 0 0;
}

.oa-page-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 栅格 ---------- */
.oa-grid {
  display: grid;
  gap: 16px;
}

.oa-g2 { grid-template-columns: repeat(2, 1fr); }
.oa-g3 { grid-template-columns: repeat(3, 1fr); }
.oa-g4 { grid-template-columns: repeat(4, 1fr); }
.oa-g5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
  .oa-g4, .oa-g5 { grid-template-columns: repeat(2, 1fr); }
  .oa-g3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .oa-g2, .oa-g3, .oa-g4, .oa-g5 { grid-template-columns: 1fr; }
}

/* ---------- 按钮 ---------- */
.oa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 620;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
  background: transparent;
}

.oa-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oa-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.oa-btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(30, 94, 255, 0.8);
}

.oa-btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(30, 94, 255, 0.9);
}

.oa-btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}

.oa-btn-ghost:not(:disabled):hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-2);
}

.oa-btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.oa-btn-soft:not(:disabled):hover {
  background: #ddeaff;
}

.oa-btn-danger {
  background: var(--error-bg);
  color: var(--error-color);
}

.oa-btn-danger:not(:disabled):hover {
  background: #fbdcdc;
}

/* 兼容旧命名的次要按钮 */
.oa-btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
}

.oa-btn-secondary:not(:disabled):hover {
  border-color: var(--brand);
  color: var(--brand);
}

.oa-btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 9px;
}

.oa-btn-sm svg {
  width: 14px;
  height: 14px;
}

.oa-btn-block {
  width: 100%;
}

/* ---------- 卡片 ---------- */
.oa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.oa-card-pad {
  padding: 20px;
}

/* ---------- 区块标题 ---------- */
.oa-section-title {
  font-size: 14.5px;
  font-weight: 720;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.oa-section-bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--brand-grad);
  display: inline-block;
}

/* ---------- 标签 Tag ---------- */
.oa-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
}

.oa-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.oa-tag-success { background: var(--success-bg); color: var(--success-color); }
.oa-tag-warning { background: var(--warning-bg); color: var(--warning-color); }
.oa-tag-error   { background: var(--error-bg);   color: var(--error-color); }
.oa-tag-processing { background: var(--processing-bg); color: var(--processing-color); }
.oa-tag-info    { background: var(--info-bg);    color: var(--info-color); }
.oa-tag-purple  { background: var(--purple-bg);  color: var(--purple-color); }
.oa-tag-default { background: var(--surface-3);  color: var(--text-secondary); }

/* ---------- 芯片 Chip ---------- */
.oa-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 560;
}

.oa-chip-brand {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- 进度条 ---------- */
.oa-progress {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.oa-progress > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand-grad);
}

.oa-progress-warn > i { background: linear-gradient(135deg, #f59e0b, #f97316); }
.oa-progress-danger > i { background: linear-gradient(135deg, #ef4444, #f43f5e); }

/* ---------- 表格 ---------- */
.oa-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.oa-table-scroll {
  overflow-x: auto;
}

.oa-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.oa-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 680;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.oa-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}

.oa-table tbody tr:last-child td {
  border-bottom: none;
}

.oa-table tbody tr {
  transition: background 0.13s ease;
}

.oa-table tbody tr:hover {
  background: var(--surface-2);
}

.oa-table .oa-cell-strong { font-weight: 650; }
.oa-table .oa-cell-muted { color: var(--text-secondary); }

.oa-row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

/* ---------- 工具类 ---------- */
.oa-mono {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.oa-muted { color: var(--text-secondary); }
.oa-faint { color: var(--text-muted); }
.oa-tiny { font-size: 11.5px; }

.oa-link {
  color: var(--brand);
  font-weight: 620;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.oa-link:hover { text-decoration: underline; }

.oa-flex { display: flex; align-items: center; }
.oa-flex-between { display: flex; align-items: center; justify-content: space-between; }
.oa-gap8 { gap: 8px; }
.oa-gap12 { gap: 12px; }
.oa-mt16 { margin-top: 16px; }
.oa-mt24 { margin-top: 24px; }

/* ---------- 筛选条 ---------- */
.oa-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
}

.oa-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oa-field label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 560;
  white-space: nowrap;
}

.oa-control {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: all 0.15s ease;
  min-width: 140px;
  font-family: inherit;
}

.oa-control:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.1);
}

select.oa-control {
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b86' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.oa-filter-spacer { margin-left: auto; }

/* ---------- 统计卡 ---------- */
.oa-stat {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.oa-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.oa-stat::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--stat-tint, var(--brand-soft));
  opacity: 0.55;
}

.oa-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.oa-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--stat-tint, var(--brand-soft));
  color: var(--stat-accent, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.oa-stat-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.oa-stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 560;
}

.oa-stat-value {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.5px;
  margin-top: 8px;
  position: relative;
  color: var(--text);
}

.oa-stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 3px;
}

.oa-stat-trend {
  font-size: 11.5px;
  font-weight: 620;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.oa-stat-trend.up { color: var(--success-color); }
.oa-stat-trend.down { color: var(--error-color); }
.oa-stat-trend.flat { color: var(--text-muted); }

/* 迷你统计卡 */
.oa-mini-stat {
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.oa-mini-stat-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 560;
}

.oa-mini-stat-value {
  font-size: 24px;
  font-weight: 780;
  margin-top: 6px;
  letter-spacing: -0.4px;
  color: var(--text);
}

.oa-mini-stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- 表单 ---------- */
.oa-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
}

@media (max-width: 820px) {
  .oa-form-grid { grid-template-columns: 1fr; }
}

.oa-form-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.oa-form-item-full { grid-column: 1 / -1; }

.oa-form-item label {
  font-size: 12.5px;
  font-weight: 620;
  color: var(--text-secondary);
}

.oa-form-item label em {
  color: var(--error-color);
  font-style: normal;
  margin-left: 2px;
}

.oa-form-item .oa-control {
  width: 100%;
  min-width: 0;
  height: 40px;
}

.oa-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 单选卡片组 */
.oa-opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.oa-opt {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--surface-2);
}

.oa-opt:hover { border-color: var(--border-strong); }

.oa-opt-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.1);
}

.oa-opt-title {
  font-size: 13px;
  font-weight: 680;
  color: var(--text);
}

.oa-opt-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ---------- 摘要面板 ---------- */
.oa-summary {
  background: linear-gradient(160deg, #0f1c3f, #19306e 55%, #0e4f8f);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.oa-summary::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 195, 230, 0.55), transparent 70%);
}

.oa-summary h3 {
  font-size: 14px;
  font-weight: 680;
  opacity: 0.92;
  position: relative;
  margin: 0;
}

.oa-summary-price {
  font-size: 34px;
  font-weight: 800;
  margin: 14px 0 4px;
  letter-spacing: -1px;
  position: relative;
}

.oa-summary-price small {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
  margin-left: 4px;
}

.oa-summary ul {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
}

.oa-summary li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.9;
}

.oa-summary li b { font-weight: 680; opacity: 1; }

.oa-summary .oa-btn {
  width: 100%;
  background: #fff;
  color: #12306e;
  position: relative;
}

.oa-summary .oa-btn:hover { background: #f0f5ff; }

/* ---------- 空状态 ---------- */
.oa-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- 提示条 ---------- */
.oa-notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--warning-bg);
  border: 1px solid rgba(224, 138, 0, 0.35);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: #a15c00;
  margin-bottom: 16px;
}

/* ---------- Toast ---------- */
.oa-toast-host {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.oa-toast {
  background: #0d1730;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 560;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: oa-toast-in 0.26s ease both;
}

.oa-toast svg {
  width: 17px;
  height: 17px;
  stroke: #4ade80;
  fill: none;
  stroke-width: 2.4;
  flex-shrink: 0;
}

.oa-toast-error svg { stroke: #f87171; }

@keyframes oa-toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 兼容：旧版 oa-tag / 表单块 ---------- */
.oa-form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.oa-form-section-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 680;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oa-form-section-body {
  padding: 20px;
}

.oa-sub-label {
  font-size: 13px;
  font-weight: 620;
  color: var(--text);
  margin-bottom: 8px;
}

.oa-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-top: 20px;
}

.oa-meta-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.oa-meta-value { font-size: 13px; color: var(--text); }
.oa-meta-highlight { color: var(--brand); font-weight: 680; }
.oa-meta-unit { margin-left: 6px; color: var(--text-muted); font-size: 12px; }
/* ============================================================
   飞矩云登录 / 注册 / 重置密码（对齐原型）
   ============================================================ */

.oa-auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--content-grad);
  background-attachment: fixed;
  font-family: var(--font-family);
}

/* ---------- 左侧品牌区 ---------- */
.oa-auth-left {
  flex: 1 1 46%;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 46px 50px;
  background: linear-gradient(150deg, #0a1c47 0%, #123a86 46%, #0b6fb8 100%);
}

.oa-auth-left::before {
  content: '';
  position: absolute;
  right: -130px;
  top: -130px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 195, 230, 0.55), transparent 68%);
}

.oa-auth-left::after {
  content: '';
  position: absolute;
  left: -150px;
  bottom: -170px;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 94, 255, 0.5), transparent 70%);
}

.oa-auth-brand {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* 品牌标识样式见 components/common/BrandLogo.css */

.oa-auth-hero {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.oa-auth-hero h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: 0.2px;
  margin: 0 0 14px;
}

.oa-auth-hero p {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
  max-width: 390px;
}

.oa-auth-features {
  position: relative;
  z-index: 2;
  margin: 26px 0 auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.oa-auth-feature {
  display: flex;
  align-items: center;
  gap: 11px;
}

.oa-auth-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.oa-auth-feature h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 2px;
}

.oa-auth-feature p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.oa-auth-foot {
  position: relative;
  z-index: 2;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 28px;
}

/* ---------- 右侧表单区 ---------- */
.oa-auth-right {
  flex: 1 1 54%;
  display: flex;
  padding: 40px;
  background: var(--content-grad);
  overflow: auto;
}

.oa-auth-card {
  width: 100%;
  max-width: 404px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 30px;
}

.oa-auth-card-title {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0.2px;
  color: var(--text);
  margin: 0;
}

.oa-auth-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 5px 0 0;
}

/* 分段式 Tabs */
.oa-auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-3);
  border-radius: 11px;
  padding: 4px;
  margin: 20px 0 22px;
}

.oa-auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 640;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.oa-auth-tab:hover {
  color: var(--text);
}

.oa-auth-tab.active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* ---------- 表单 ---------- */
.oa-auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.oa-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.oa-form-label {
  font-size: 12.5px;
  font-weight: 620;
  color: var(--text-secondary);
}

.oa-form-input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  padding: 0 13px;
  font-size: 13.5px;
  color: var(--text);
  transition: all 0.15s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.oa-form-input:hover {
  border-color: var(--border-strong);
}

.oa-form-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.1);
}

.oa-form-input::-moz-placeholder {
  color: var(--text-muted);
}

.oa-form-input::placeholder {
  color: var(--text-muted);
}

/* 带图标的输入框 */
.oa-auth-input {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  padding: 0 13px;
  transition: all 0.15s ease;
}

.oa-auth-input:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.1);
}

.oa-auth-input > svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.9;
  flex: 0 0 17px;
}

.oa-auth-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  height: 100%;
}

.oa-auth-input input::-moz-placeholder {
  color: var(--text-muted);
}

.oa-auth-input input::placeholder {
  color: var(--text-muted);
}

.oa-auth-eye {
  flex: 0 0 auto;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.oa-auth-eye:hover {
  color: var(--text);
}

.oa-password-wrapper {
  position: relative;
}

.oa-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.oa-password-toggle:hover {
  color: var(--text);
}

.oa-form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.oa-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.oa-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.oa-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--brand);
  margin: 0;
}

.oa-checkbox-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ---------- 卡片内按钮尺寸（对齐原型的 46px 主按钮） ---------- */
.oa-auth-card .oa-btn {
  height: 46px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 11px;
}

.oa-auth-card .oa-btn:not(.oa-btn-primary):not(.oa-btn-danger) {
  font-weight: 620;
  font-size: 13px;
}

/* ---------- 提示 / 页脚 ---------- */
.oa-auth-error {
  padding: 10px 14px;
  background: var(--error-bg);
  border-radius: 10px;
  color: var(--error-color);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.oa-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .oa-auth-left {
    display: none;
  }

  .oa-auth-right {
    flex: 1 1 100%;
    padding: 24px;
  }
}
/* ============================================================
   飞矩云首页（登录前展示页）
   视觉参考：品牌蓝 #3760F4 / 公告橙 #FF9120 / 价格红 #FF502E
   ============================================================ */

.lp-root {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f9faff;
  color: #333;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部 ---------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.lp-notice {
  height: 36px;
  background: #ff9120;
  color: #fff;
  font-size: 13px;
}

.lp-notice-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.lp-notice-inner > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-notice-link {
  margin-left: auto;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.lp-notice-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lp-nav {
  height: 60px;
  background: #3760f4;
}

.lp-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.lp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.lp-nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.lp-nav-link {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.92;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.lp-nav-link:hover {
  opacity: 1;
}

.lp-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-nav-text {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  opacity: 0.92;
}

.lp-nav-text:hover {
  opacity: 1;
}

.lp-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.lp-btn-ghost {
  height: 38px;
  padding: 0 20px;
  border-radius: 2px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lp-btn-ghost:hover {
  background: #fff;
  color: #3760f4;
}

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  min-height: 540px;
  background: linear-gradient(120deg, #3760f4 0%, #2b4ee0 55%, #4a6bff 100%);
  overflow: hidden;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.lp-blob-1 {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(90, 118, 255, 0.85), transparent 68%);
}

.lp-blob-2 {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(140, 165, 255, 0.5), transparent 70%);
}

.lp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
}

.lp-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 540px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.lp-hero-copy {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-slide {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.lp-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lp-slide-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  letter-spacing: 1px;
}

.lp-slide-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.lp-slide-desc {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lp-btn-light {
  height: 44px;
  padding: 0 30px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  color: #2468f1;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lp-btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.lp-btn-outline {
  height: 44px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lp-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lp-slide-bars {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 8px;
}

.lp-slide-bar {
  width: 34px;
  height: 3px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease;
}

.lp-slide-bar.is-active {
  background: #fff;
}

.lp-hero-art {
  width: 46%;
  max-width: 520px;
  flex-shrink: 0;
}

.lp-hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 快捷入口 ---------- */
.lp-quick {
  background: #fff;
  box-shadow: 0 2px 8px rgba(37, 38, 94, 0.1);
  position: relative;
  z-index: 2;
}

.lp-quick-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}

.lp-quick-item {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  background: none;
  border: none;
  border-left: 1px solid #ebf0fc;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.lp-quick-item:first-child {
  border-left: none;
}

.lp-quick-item:hover {
  background: #f7f9ff;
}

.lp-quick-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.lp-quick-desc {
  font-size: 14px;
  color: #666;
}

/* ---------- 通用区块 ---------- */
.lp-section {
  padding: 64px 0 72px;
}

.lp-section-alt {
  background: #fff;
}

.lp-section-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.lp-section-sub {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #999;
}

.lp-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid #ebf0fc;
}

.lp-tab {
  position: relative;
  padding: 12px 2px;
  border: none;
  background: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
}

.lp-tab.is-active {
  color: #3760f4;
  font-weight: 600;
}

.lp-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #3760f4;
}

.lp-note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  color: #a8b0c2;
}

/* ---------- 价格卡片（3 列 × 4 行，紧贴无缝） ---------- */
.lp-gpu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #ebf0fc;
  border: 1px solid #ebf0fc;
  border-radius: 4px;
  overflow: hidden;
}

.lp-gpu-card {
  position: relative;
  background: #fff;
  border-radius: 0;
  padding: 24px 22px 22px;
  box-shadow: none;
  transition: background 0.16s ease;
}

.lp-gpu-card:hover {
  background: #fbfcff;
}

.lp-gpu-head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.lp-gpu-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.lp-gpu-vram {
  font-size: 12px;
  color: #999;
}

.lp-gpu-spec {
  margin: 6px 0 14px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  min-height: 36px;
}

.lp-gpu-price {
  display: flex;
  align-items: baseline;
  color: #ff502e;
}

.lp-yen {
  font-size: 14px;
}

.lp-amount {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.lp-unit {
  font-size: 12px;
  color: #999;
  margin-left: 2px;
}

.lp-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  background: #fff2ee;
  color: #ff502e;
  font-size: 11px;
}

/* ---------- 算力排名 ---------- */
.lp-rank {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(37, 38, 94, 0.08);
}

.lp-rank-head,
.lp-rank-row {
  display: grid;
  grid-template-columns: 88px 200px 1fr 92px;
  align-items: center;
  padding: 0 20px;
}

.lp-rank-head {
  height: 46px;
  background: #f9faff;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #ebf0fc;
}

.lp-rank-row {
  min-height: 58px;
  border-bottom: 1px solid #f2f5fd;
}

.lp-rank-row:last-child {
  border-bottom: none;
}

.lp-rank-row:hover {
  background: #fbfcff;
}

.lp-rank-no {
  font-size: 16px;
  color: #666;
  font-weight: 600;
}

.lp-rank-no-1,
.lp-rank-no-2,
.lp-rank-no-3 {
  color: #f5a623;
}

.lp-crown {
  font-size: 20px;
  line-height: 1;
}

.lp-rank-no-2 .lp-crown {
  color: #a8b0c2;
}

.lp-rank-no-3 .lp-crown {
  color: #cd8b5e;
}

.lp-rank-gpu {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.lp-rank-gpu strong {
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.lp-rank-gpu em {
  font-style: normal;
  font-size: 12px;
  color: #999;
}

.lp-rank-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
}

.lp-rank-track {
  flex: 1;
  height: 8px;
  border-radius: 5px;
  background: #ebf0fc;
  overflow: hidden;
}

.lp-rank-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #3760f4;
  transition: width 0.4s ease;
}

.lp-rank-value {
  flex-shrink: 0;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.lp-rank-percent {
  text-align: right;
  font-size: 14px;
  color: #333;
}

/* ---------- CTA ---------- */
.lp-cta {
  background: linear-gradient(90deg, #191c43 0%, #2a2960 100%);
  padding: 48px 0;
}

.lp-cta-inner {
  text-align: center;
  color: #fff;
}

.lp-cta h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
}

.lp-cta p {
  margin: 0 0 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- 特性 ---------- */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lp-feature-card {
  background: #fff;
  border: 1px solid #ebf0fc;
  border-radius: 4px;
  padding: 22px 20px;
}

.lp-feature-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #3760f4;
  margin-bottom: 14px;
}

.lp-feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #333;
}

.lp-feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

/* ---------- 页脚 ---------- */
.lp-footer {
  background: #0a1633;
  color: #999;
  padding-top: 44px;
}

.lp-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #424b55;
}

.lp-footer-brand p {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  max-width: 260px;
}

.lp-footer-col h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

.lp-footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #999;
  text-decoration: none;
}

.lp-footer-col a:hover {
  color: #fff;
}

.lp-footer-text {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #999;
}

.lp-footer-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.lp-qr-box {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed #424b55;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c7a9c;
}

.lp-qr-box svg {
  width: 34px;
  height: 34px;
}

.lp-footer-qr span {
  font-size: 12px;
  color: #999;
}

.lp-footer-bottom {
  padding: 16px 0 20px;
  font-size: 12px;
  color: #6c7a9c;
}

/* ---------- 右侧悬浮 ---------- */
.lp-float {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lp-float-coupon {
  width: 26px;
  padding: 12px 0;
  border: none;
  border-radius: 24px;
  background: #ff9120;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 145, 32, 0.4);
}

.lp-float-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ebf0fc;
  background: #fff;
  color: #5a6b86;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 38, 94, 0.12);
  text-decoration: none;
}

.lp-float-btn svg {
  width: 18px;
  height: 18px;
}

.lp-float-btn:hover {
  color: #3760f4;
  border-color: #3760f4;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .lp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-nav-menu {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .lp-nav-menu {
    display: none;
  }

  .lp-hero-art {
    display: none;
  }

  .lp-slide-title {
    font-size: 34px;
  }

  .lp-quick-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-quick-item {
    height: 84px;
    border-left: none;
    border-top: 1px solid #ebf0fc;
    padding: 0 8px;
  }

  .lp-rank-head,
  .lp-rank-row {
    grid-template-columns: 52px 120px 1fr 64px;
    padding: 0 12px;
  }

  .lp-rank-value {
    display: none;
  }

  .lp-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-float {
    display: none;
  }
}

@media (max-width: 640px) {
  .lp-gpu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-slide-title {
    font-size: 28px;
  }

  .lp-hero {
    min-height: 460px;
  }

  .lp-hero-inner {
    min-height: 460px;
  }

  .lp-cta h2 {
    font-size: 20px;
  }

  .lp-footer-inner {
    grid-template-columns: 1fr;
  }
}
/* 飞矩云布局辅助样式（对齐原型） */

.oa-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.oa-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.oa-page-title {
  font-size: var(--font-size-title);
  font-weight: 760;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.oa-page-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.oa-page-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* Workspace guest placeholder */
.oa-workspace-guest {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--content-bg);
}

.oa-workspace-guest-content h3 {
  font-size: var(--font-size-lg);
  color: var(--text);
  margin: 0 0 var(--space-xs);
}

.oa-workspace-guest-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* 兼容旧卡片命名 */
.oa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--card-padding);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}

.oa-card-title {
  font-size: var(--font-size-base);
  font-weight: 680;
  color: var(--text);
}

.oa-card-body {
  padding: var(--space-xl);
  flex: 1;
}

/* 旧统计行（兼容） */
.oa-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.oa-stats-row-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
  .oa-stats-row,
  .oa-stats-row-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .oa-stats-row,
  .oa-stats-row-5 {
    grid-template-columns: 1fr;
  }
}
.template-sidebar {
  width: var(--app-sidebar-width);
  min-width: var(--app-sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease, min-width 0.2s ease;
  overflow: hidden;
  align-self: stretch;
  min-height: 0;
  z-index: 500;
  border-right: 1px solid var(--sidebar-border);
}

.template-sidebar.collapsed {
  width: var(--app-sidebar-collapsed-width);
  min-width: var(--app-sidebar-collapsed-width);
}

/* ---------- Header / Brand ---------- */
.template-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 14px;
}

.template-logo-area {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

/* 品牌标识样式见 components/common/BrandLogo.css */

.collapse-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 8px;
  transition: all 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.collapse-btn:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}

.template-sidebar.collapsed .template-sidebar-header {
  padding: 20px 0 14px;
  justify-content: center;
}

.template-sidebar.collapsed .template-logo-area {
  flex: 0 0 auto;
}

.template-sidebar.collapsed .collapse-btn {
  display: none;
}

/* ---------- Menu ---------- */
.template-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 12px;
}

.template-menu-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 14px 12px 7px;
}

.template-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.16s ease;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 560;
  border-radius: 10px;
  margin-bottom: 2px;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.template-menu-item:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}

.template-menu-item.active {
  background: var(--brand-grad);
  color: #fff;
  font-weight: 620;
  box-shadow: 0 10px 22px -10px rgba(30, 94, 255, 0.75);
}

.template-menu-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-menu-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.template-menu-label-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-menu-arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
  color: currentColor;
  opacity: 0.5;
  display: flex;
  align-items: center;
}

.template-menu-arrow.expanded {
  transform: rotate(90deg);
}

.template-menu-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.template-menu-children {
  overflow: hidden;
  margin-left: 30px;
}

.template-menu-child {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7.5px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 520;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 1px;
  white-space: nowrap;
}

.template-menu-child:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}

.template-menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: 0 0 6px;
  transition: all 0.15s ease;
}

.template-menu-child.active {
  color: var(--brand);
  font-weight: 680;
  background: var(--brand-soft);
}

.template-menu-child.active .template-menu-dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.16);
}

/* Collapsed state */
.template-sidebar.collapsed .template-menu-label,
.template-sidebar.collapsed .template-menu-label-text,
.template-sidebar.collapsed .template-menu-arrow,
.template-sidebar.collapsed .template-menu-children {
  display: none;
}

.template-sidebar.collapsed .template-sidebar-menu {
  padding: 6px 12px 12px;
}

.template-sidebar.collapsed .template-menu-item {
  justify-content: center;
  padding: 10px;
}

/* ---------- Footer / User ---------- */
.template-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
}

.template-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.template-user:hover {
  background: var(--sidebar-hover);
}

.template-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 34px;
  letter-spacing: 0.3px;
}

.template-user-info {
  flex: 1;
  min-width: 0;
}

.template-user-name {
  font-size: 13px;
  font-weight: 640;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-user-mail {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-user-logout {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.template-user-logout:hover {
  background: var(--error-bg);
  color: var(--error-color);
}

.template-user-logout svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.template-sidebar.collapsed .template-user {
  justify-content: center;
  padding: 9px 4px;
}
/* 飞矩云 App Shell（对齐原型：侧边栏 + 内容区顶栏） */



.oa-app {

  display: flex;

  flex-direction: column;

  height: 100vh;

  font-family: var(--font-family);

  background: var(--content-grad);

  background-attachment: fixed;

  overflow: hidden;

}



.oa-body {

  display: flex;

  flex: 1;

  min-height: 0;

  overflow: hidden;

}



/* ---------- Main ---------- */

.oa-main {

  flex: 1;

  min-width: 0;

  display: flex;

  flex-direction: column;

  overflow: hidden;

}



/* ---------- Topbar ---------- */

.oa-topbar {

  height: var(--top-header-height);

  flex: 0 0 var(--top-header-height);

  position: sticky;

  top: 0;

  z-index: 400;

  display: flex;

  align-items: center;

  gap: 16px;

  padding: 0 28px;

  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--border);

}



.oa-crumb {

  display: flex;

  align-items: center;

  gap: 9px;

  font-size: 13px;

  color: var(--text-muted);

  white-space: nowrap;

}



.oa-crumb b {

  color: var(--text);

  font-weight: 680;

  font-size: 15px;

}



.oa-crumb-sep {

  opacity: 0.5;

}



.oa-search {

  margin-left: auto;

  display: flex;

  align-items: center;

  gap: 9px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 10px;

  padding: 8px 12px;

  width: 280px;

  color: var(--text-muted);

  transition: all 0.15s ease;

  cursor: pointer;

}



.oa-search:hover {

  border-color: var(--border-strong);

}



.oa-search svg {

  width: 16px;

  height: 16px;

  stroke: currentColor;

  fill: none;

  stroke-width: 2;

  flex-shrink: 0;

}



.oa-search input {

  border: none;

  outline: none;

  flex: 1;

  font-size: 13px;

  background: none;

  color: var(--text);

  cursor: pointer;

  font-family: inherit;

  min-width: 0;

}



.oa-kbd {

  font-size: 10.5px;

  border: 1px solid var(--border-strong);

  border-radius: 5px;

  padding: 1px 5px;

  color: var(--text-muted);

  background: var(--surface-2);

  font-family: inherit;

  white-space: nowrap;

}



.oa-icon-btn {

  position: relative;

  width: 38px;

  height: 38px;

  border-radius: 10px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--text-secondary);

  background: transparent;

  border: none;

  cursor: pointer;

  transition: all 0.15s ease;

  flex-shrink: 0;

}



.oa-icon-btn:hover {

  background: var(--surface-3);

  color: var(--text);

}



.oa-icon-btn svg {

  width: 19px;

  height: 19px;

  stroke: currentColor;

  fill: none;

  stroke-width: 1.9;

}



.oa-icon-badge {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error-color);
  border: 2px solid #fff;
}

/* ---------- Wallet chip ---------- */
.oa-wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.oa-wallet-chip:hover {
  border-color: var(--border-strong);
}

.oa-wallet-chip-label {
  color: var(--text-muted);
}

.oa-wallet-chip b {
  font-weight: 680;
  color: var(--text);
}

.oa-wallet-chip-action {
  padding-left: 8px;
  border-left: 1px solid var(--border);
  color: var(--brand);
  font-weight: 600;
}

.oa-wallet-chip.is-arrears {
  border-color: var(--error-color);
}

.oa-wallet-chip.is-arrears b,
.oa-wallet-chip.is-arrears .oa-wallet-chip-action {
  color: var(--error-color);
}

.oa-wallet-chip.is-low {
  border-color: var(--warning-color);
}

.oa-wallet-chip.is-low b,
.oa-wallet-chip.is-low .oa-wallet-chip-action {
  color: var(--warning-color);
}



/* ---------- Content ---------- */

.oa-content {

  flex: 1;

  min-height: 0;

  overflow: auto;

  padding: var(--page-padding);

}



/* 工作台：内容区满屏、无内边距 */

.oa-app-workspace .oa-main-full,

.oa-main-full {

  padding: 0;

  overflow: hidden;

  background: var(--content-bg);

}



/* 兼容：页面级内容头（部分页面仍可传入） */

.oa-content-header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: var(--space-lg);

  margin-bottom: var(--space-xl);

}



.oa-content-header-left {

  display: flex;

  flex-direction: column;

  gap: var(--space-xs);

}



.oa-content-title {

  font-size: var(--font-size-title);

  font-weight: 760;

  color: var(--text);

  margin: 0;

  line-height: 1.4;

}



.oa-content-actions {

  display: flex;

  align-items: center;

  gap: var(--space-md);

  flex-shrink: 0;

}



/* 面包屑（旧） */

.oa-breadcrumb {

  font-size: var(--font-size-sm);

  color: var(--text-secondary);

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: var(--space-xs);

}



.oa-breadcrumb-separator {

  color: var(--text-disabled);

  margin: 0 4px;

}



.oa-breadcrumb-link {

  color: var(--text-link);

  text-decoration: none;

  background: none;

  border: none;

  padding: 0;

  font-family: inherit;

  font-size: inherit;

  cursor: pointer;

}



.oa-breadcrumb-link:hover {

  text-decoration: underline;

}



.oa-breadcrumb-current {

  color: var(--text);

  font-weight: 500;

}



/* ---------- Responsive ---------- */

@media (max-width: 1100px) {

  .oa-search {

    display: none;

  }

}



@media (max-width: 768px) {

  .oa-topbar {

    padding: 0 16px;

    gap: 10px;

  }



  .oa-content {

    padding: 18px 16px 40px;

  }

}

/* Python Editor - 整个文件作为一个编辑器 */
.python-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-color, #F7F9FC);
}

.python-editor-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-white, #ffffff);
}

/* Toolbar - 顶部工具栏 */
.python-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 32px;
  background: var(--bg-white, #ffffff);
  border-bottom: 1px solid var(--border-secondary, #B9CDF0);
  flex-shrink: 0;
}

.python-editor-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.python-editor-file-path {
  font-size: 14px;
  color: var(--secondary-blue, #547FB2);
  font-family: 'Monaco', 'Menlo', monospace;
}

.python-editor-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.python-editor-toolbar-actions .ant-btn {
  border-radius: 0.75rem;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.python-editor-toolbar-actions .ant-btn-primary {
  background: var(--accent-color, #5991EE);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(89, 145, 238, 0.3);
}

.python-editor-toolbar-actions .ant-btn-primary:hover {
  background: var(--primary-blue, #05245A);
  box-shadow: 0 4px 12px rgba(5, 36, 90, 0.4);
}

/* Code Editor Area */
.python-editor-code-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* Monaco Editor 样式 - 与 pth code block 一致 */
.python-editor-code-area > div {
  overflow: hidden;
}

.python-editor-code-area .monaco-editor,
.python-editor-code-area .monaco-editor-wrapper {
  overflow: hidden !important;
}

.python-editor-code-area .monaco-editor .overflow-guard,
.python-editor-code-area .monaco-editor .monaco-scrollable-element,
.python-editor-code-area .monaco-editor-background {
  overflow: hidden !important;
}

/* Terminal Output - 类似终端的输出面板 */
.python-editor-terminal {
  border-top: 1px solid var(--border-secondary, #B9CDF0);
  background: var(--bg-white, #ffffff);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.python-terminal-resize-handle {
  height: 8px;
  cursor: row-resize;
  background: transparent;
}

.python-terminal-resize-handle:hover {
  background: rgba(89, 145, 238, 0.12);
}

/* Terminal Header */
.python-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #eef3ff;
  border-bottom: 1px solid #dbe5ff;
}

.python-terminal-title {
  font-size: 13px;
  color: #05245A;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.python-terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #657199;
}

.python-terminal-status.running {
  color: #0f8bff;
}

.python-terminal-status.success {
  color: #2a7d46;
}

.python-terminal-status.error {
  color: #d64545;
}

/* Terminal Content */
.python-terminal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #05245A;
  background: var(--bg-white, #ffffff);
}

.python-terminal-content.empty {
  color: #8c8c8c;
  font-style: italic;
}

.python-terminal-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Terminal Output Lines */
.python-terminal-line {
  margin-bottom: 6px;
  color: #05245A;
}

.python-terminal-line.stdout {
  color: #05245A;
}

.python-terminal-line.stderr {
  color: #d64545;
}

.python-terminal-line.info {
  color: #0f8bff;
}

.python-terminal-line.success {
  color: #2a7d46;
}

.python-terminal-line.error {
  color: #d64545;
}

.python-terminal-line.prompt {
  color: #3153c9;
}

/* Terminal Separator */
.python-terminal-separator {
  border-top: 1px solid #e3e8f4;
  margin: 8px 0;
}

/* Terminal Command Echo */
.python-terminal-command {
  color: #3153c9;
  margin-bottom: 8px;
}

.python-terminal-command::before {
  content: '$ ';
  color: #2a7d46;
}

/* Loading Indicator */
.python-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f8bff;
  font-size: 13px;
}

/* Scrollbar for terminal */
.python-terminal-content::-webkit-scrollbar {
  width: 8px;
}

.python-terminal-content::-webkit-scrollbar-track {
  background: transparent;
}

.python-terminal-content::-webkit-scrollbar-thumb {
  background: #c4cee8;
  border-radius: 4px;
}

.python-terminal-content::-webkit-scrollbar-thumb:hover {
  background: #9fb0db;
}
/* Markdown Editor - 白色背景主题 */
.markdown-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-color, #F7F9FC);
}

.markdown-editor-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--bg-white, #ffffff);
}

/* Toolbar */
.markdown-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 32px;
  background: var(--bg-white, #ffffff);
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.markdown-editor-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.markdown-editor-file-path {
  font-size: 14px;
  color: var(--secondary-blue, #547FB2);
  font-family: 'Monaco', 'Menlo', monospace;
}

.markdown-editor-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.markdown-editor-toolbar-actions .ant-btn {
  border-radius: 0.75rem;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.markdown-editor-toolbar-actions .ant-btn-primary {
  background: var(--accent-color, #5991EE);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(89, 145, 238, 0.3);
}

.markdown-editor-toolbar-actions .ant-btn-primary:hover {
  background: var(--primary-blue, #05245A);
  box-shadow: 0 4px 12px rgba(5, 36, 90, 0.4);
}

/* Editor Area */
.markdown-editor-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0; /* 允许子元素正确计算滚动 */
  overflow: hidden; /* 禁用外层滚动，让滚动发生在预览容器内部 */
}

/* Preview Area - 白色背景 */
.markdown-preview-container {
  flex: 1 1 auto;
  min-height: 0;
  height: 0; /* 关键：在 body/父级 overflow:hidden 时强制成为可滚动区域 */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px;
  background: var(--bg-white, #ffffff);
}

.markdown-preview-content {
  max-width: 800px;
  margin: 0 auto;
  color: #05245A;
  font-size: 15px;
  line-height: 1.7;
}

/* Markdown元素样式 - 浅色主题 */
.markdown-preview-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #05245A;
  border-bottom: 2px solid var(--accent-color, #5991EE);
  padding-bottom: 8px;
}

.markdown-preview-content h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 20px;
  color: #05245A;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.markdown-preview-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 16px;
  color: var(--primary-blue, #05245A);
}

.markdown-preview-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 12px;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 12px;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content h6 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 8px;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content p {
  margin-bottom: 16px;
  color: #05245A;
  line-height: 1.7;
}

.markdown-preview-content a {
  color: var(--accent-color, #5991EE);
  text-decoration: underline;
  transition: color 0.2s;
}

.markdown-preview-content a:hover {
  color: var(--primary-blue, #05245A);
}

.markdown-preview-content ul,
.markdown-preview-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #05245A;
}

.markdown-preview-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.markdown-preview-content code {
  background: #f5f7fa;
  color: #e83e8c;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 13px;
  border: 1px solid #e5e7eb;
}

.markdown-preview-content pre {
  margin: 16px 0;
  overflow: hidden;
  border-radius: 8px;
}

.markdown-preview-content pre code {
  display: block;
  background: #f8f9fa;
  color: #05245A;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #e5e7eb;
}

.markdown-preview-content blockquote {
  border-left: 4px solid var(--accent-color, #5991EE);
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 16px 0;
  color: var(--secondary-blue, #547FB2);
  background: #f7f9fc;
  border-radius: 0 4px 4px 0;
}

.markdown-preview-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.markdown-preview-content thead {
  background: #f7f9fc;
}

.markdown-preview-content th {
  padding: 12px;
  text-align: left;
  color: #05245A;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.markdown-preview-content td {
  padding: 12px;
  color: #05245A;
  border-bottom: 1px solid #e5e7eb;
}

.markdown-preview-content tr:hover {
  background: #f7f9fc;
}

.markdown-preview-content hr {
  margin: 24px 0;
  border: none;
  border-top: 2px solid #e5e7eb;
}

.markdown-preview-content strong {
  font-weight: 700;
  color: #05245A;
}

.markdown-preview-content em {
  font-style: italic;
  color: var(--secondary-blue, #547FB2);
}

.markdown-preview-content del {
  text-decoration: line-through;
  color: #999999;
}

.markdown-preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid #e5e7eb;
}
.conversation-list {
  max-height: 280px;
  overflow-y: auto;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.conversation-list-empty {
  padding: 32px 16px;
  text-align: center;
  color: #8c8c8c;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.conversation-item {
  cursor: pointer;
  padding: 12px 16px !important;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.conversation-item:hover {
  background-color: #f5f5f5;
}

.conversation-item.active {
  background-color: #e6f7ff;
  border-left: 3px solid #1890ff;
}

.conversation-content {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.conversation-title {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.conversation-meta {
  font-size: 12px;
  color: #8c8c8c;
}

.conversation-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* DataMention - @ 提及数据文件组件样式 */

.data-mention-container {
  position: relative;
  width: 100%;
}

.data-mention-input {
  width: 100%;
}

.data-mention-input .ant-input {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0;
  resize: none;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary, #05245A);
}

.data-mention-input .ant-input:focus {
  border-color: transparent;
  box-shadow: none;
}

.data-mention-input .ant-input::-moz-placeholder {
  color: var(--secondary-blue, #547FB2);
  font-size: 0.9375rem;
}

.data-mention-input .ant-input::placeholder {
  color: var(--secondary-blue, #547FB2);
  font-size: 0.9375rem;
}

/* 下拉菜单 */
.data-mention-dropdown {
  position: absolute;
  z-index: 1000;
  width: 100%;
  background: #F8FAFC;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(5, 36, 90, 0.15);
  border: 1px solid var(--border-secondary, #B9CDF0);
  overflow: hidden;
}

.mention-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg-color, #F5F8FC);
  border-bottom: 1px solid var(--border-secondary, #B9CDF0);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-blue, #05245A);
}

.mention-dropdown-header .anticon {
  color: var(--accent-color, #5991EE);
}

.mention-dropdown-list {
  max-height: 200px;
  overflow-y: auto;
}

.mention-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}

.mention-dropdown-item:hover {
  background: var(--bg-color, #F5F8FC);
}

.mention-dropdown-item.selected {
  background: #E6F0FF;
  border-left: 3px solid var(--accent-color, #5991EE);
  padding-left: calc(0.875rem - 3px); /* 补偿边框宽度 */
}

.mention-dropdown-item .anticon {
  font-size: 1rem;
  flex-shrink: 0;
}

.mention-file-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary, #05245A);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-file-type {
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  background: var(--border-secondary, #B9CDF0);
  color: var(--primary-blue, #05245A);
  border-radius: 0.25rem;
  font-weight: 500;
}

.mention-dropdown-footer {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-color, #F5F8FC);
  border-top: 1px solid var(--border-secondary, #B9CDF0);
  font-size: 0.6875rem;
  color: var(--secondary-blue, #547FB2);
}

.mention-dropdown-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--secondary-blue, #547FB2);
}

/* 滚动条样式 */
.mention-dropdown-list::-webkit-scrollbar {
  width: 4px;
}

.mention-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.mention-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--border-secondary, #B9CDF0);
  border-radius: 2px;
}

.mention-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue, #547FB2);
}
.document-ai-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--bg-white);
}

.chat-panel-header {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  background: var(--bg-white);
  flex-shrink: 0;
  gap: 16px;
  transition: padding 0.3s ease;
}

/* 当有header-content时增加底部padding */
.chat-panel-header:has(.header-content) {
  padding: 16px 20px 20px 20px;
}

.header-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.header-icon {
  width: 70px;
  height: 80px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
  color:#38bdf8;
}

.beta-badge-standalone {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  margin-top: 12px;
  background: #000000;
  color: #ffffff;
  font-size: 9px;
  font-weight: 500;
  border-radius: 12px;
  text-transform: uppercase;
  
  letter-spacing: 1px;
}

.main-title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  line-height: 3;
}

.title-description {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 2;
  margin: 0;
}

.action-icon-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  color: #6B7280 !important;
  transition: all 0.2s ease !important;
}

.action-icon-btn:hover {
  color: #374151 !important;
  background: #F3F4F6 !important;
}

.action-icon-btn.active {
  color: #374151 !important;
  background: #E5E7EB !important;
}

.action-icon-btn .anticon {
  font-size: 16px;
}

.document-ai-chat-panel .chat-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.document-ai-chat-panel .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--bg-color);
}

.document-ai-chat-panel .message {
  margin-bottom: 12px;
  padding: 10px 20px;
  border-radius: 20px;
  max-width: 90%;
  width: -moz-fit-content;
  width: fit-content;
  box-shadow: none;
}

.document-ai-chat-panel .message-user {
  background: #F1F3F4;
  color: white;
  margin-left: auto;

}

.document-ai-chat-panel .message-assistant {
  background: var(--surface-color);
  border: 2px solid rgba(89, 119, 155, 0.1);
  margin-right: auto;
}

.document-ai-chat-panel .message.streaming {
  opacity: 0.9;
  border: 1px solid var(--accent-color);
}

.document-ai-chat-panel .message-content {
  margin-bottom: 6px;
  line-height: 1.6;
  word-wrap: break-word;
  font-size: 15px;
  color: #05245A;
}

.document-ai-chat-panel .message-user .message-content {
  color: rgb(0, 0, 0);
}

.document-ai-chat-panel .message-assistant .message-content {
  color: #05245A;
}

.document-ai-chat-panel .message-content pre {
  margin: 12px 0;
  border-radius: 8px;
  overflow-x: auto;
  background: #ffffff;
  padding: 12px;
  border: 1px solid #000000;
}

.document-ai-chat-panel .message-content code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: #05245A;
}

.document-ai-chat-panel .message-time {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
}

.document-ai-chat-panel .message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.document-ai-chat-panel .message-copy-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
}

.document-ai-chat-panel .message-copy-btn:hover {
  color: #1F2937;
  background: #F3F4F6;
}

.document-ai-chat-panel .message-user .message-time {
  color: rgba(255, 255, 255, 0.8);
  display: none;
}

.document-ai-chat-panel .chat-input-area {
  padding: 16px 20px;
  padding-bottom: 32px;
  background: var(--bg-white);
  flex-shrink: 0;
}

.document-ai-chat-panel .chat-input-container {
  border: 2px solid #E5E7EB;
  border-radius: 20px;
  padding: 12px 16px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.document-ai-chat-panel .chat-input-container:focus-within {
  border-color: #D1D5DB;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-ai-chat-panel .chat-input-container .ant-input {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 15px;
  color: #303133;
  box-shadow: none !important;
}

.document-ai-chat-panel .chat-input-container .ant-input::-moz-placeholder {
  color: #C0C4CC;
}

.document-ai-chat-panel .chat-input-container .ant-input::placeholder {
  color: #C0C4CC;
}

.document-ai-chat-panel .chat-input-container .ant-input:focus {
  box-shadow: none !important;
}

.document-ai-chat-panel .chat-input-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  
}

/* Edit模式按钮 */
.document-ai-chat-panel .edit-mode-btn {
  background: #F3F4F6 !important;

  border-radius: 12px !important;
  color: #1F2937 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  height: 30px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.document-ai-chat-panel .edit-mode-btn:hover {
  background: #F9FAFB !important;
  border-color: #D1D5DB !important;
  color: #111827 !important;
}

.document-ai-chat-panel .edit-mode-btn .anticon {
  font-size: 10px;
  color: #9CA3AF;
}

.document-ai-chat-panel .mode-beta-label {
  display: inline-block;
  padding: 2px 8px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  margin-left: 4px;
}

/* AI MODE下拉菜单 */
.ai-mode-dropdown {
  background: #FFFFFF;
  border-radius: 15px;
  border: 2px solid #d8d9db;
  overflow: hidden;
  min-width: 150px;
}

.ai-mode-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #FFFFFF;
  border-bottom: 1px solid #F3F4F6;
}

/* 模式菜单项样式 - 左右布局 */
.document-ai-chat-panel .mode-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}

.mode-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-item-right {
  display: flex;
  align-items: center;
}

.mode-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.mode-desc {
  font-size: 13px;
  color: #9CA3AF;
}

/* 选中状态的菜单项 */
.document-ai-chat-panel .ant-dropdown-menu-item-selected {
  background: #F5F3FF !important;
}

.document-ai-chat-panel .ant-dropdown-menu-item-selected .mode-label {
  color: #8B5CF6 !important;
}

.document-ai-chat-panel .ant-dropdown-menu-item:hover {
  background: #F9FAFB !important;
}

.document-ai-chat-panel .ant-dropdown-menu-item {
  padding: 0 !important;
}

/* 圆形发送按钮 */
.document-ai-chat-panel .send-btn-circle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 75%;
  background: #F3F4F6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.document-ai-chat-panel .send-btn-circle:hover:not(:disabled):not(.loading) {
  background: #E5E7EB;
}

.document-ai-chat-panel .send-btn-circle:active:not(:disabled):not(.loading) {
  background: #D1D5DB;
}

.document-ai-chat-panel .send-btn-circle:disabled {
  background: #F9FAFB;
  cursor: not-allowed;
  opacity: 0.5;
}

.document-ai-chat-panel .send-btn-circle .anticon {
  font-size: 14px;
  color: #1F2937;
  line-height: 1;
}

.document-ai-chat-panel .send-btn-circle:disabled .anticon {
  color: #D1D5DB;
}

/* Loading/Stop 状态 */
.document-ai-chat-panel .send-btn-circle.loading {
  background: #F3F4F6;
  cursor: pointer;
}

.document-ai-chat-panel .send-btn-circle.loading:hover {
  background: #FEE2E2;
}

/* 停止图标 - 实心方块 */
.document-ai-chat-panel .send-btn-circle .stop-icon {
  display: block;
  width: 10px;
  height: 10px;
  background: #6B7280;
  border-radius: 2px;
}

.document-ai-chat-panel .send-btn-circle.loading:hover .stop-icon {
  background: #DC2626;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Custom scrollbar for chat */
.document-ai-chat-panel .chat-messages::-webkit-scrollbar {
  width: 6px;
}

.document-ai-chat-panel .chat-messages::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

.document-ai-chat-panel .chat-messages::-webkit-scrollbar-track {
  background-color: transparent;
}
.comments-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 320px;
}

.comments-panel--centered {
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.comments-panel__header {
    padding: 20px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.comments-panel__header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comments-panel__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #05245a;
}

.comments-panel__body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.comments-panel__composer {
    background: #f9fbff;
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comments-panel__replying-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 12px;
    color: #657199;
}

.comments-panel__textarea {
    resize: none;
}

.comments-panel__composer-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-thread {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 8px;
}

.comment-thread__loading,
.comment-thread__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.comment-thread__list {
    padding-right: 8px;
}

.comment-item-wrapper {
    padding-bottom: 12px;
}

.comment-item {
    align-items: flex-start !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}

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

.comment-item .ant-list-item-meta {
    align-items: flex-start;
}

.comment-item__title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-item__author {
    font-weight: 600;
    color: #05245a;
}

.comment-item__timestamp {
    font-size: 12px;
    color: #8c8c8c;
}

.comment-item__editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.comment-item__editor-actions {
    display: flex;
    gap: 8px;
}

.comment-item__content {
    margin-top: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #1f1f1f;
}

.comment-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
}

.comment-replies {
    margin-left: 32px;
    padding-left: 16px;
    border-left: 1px solid #f0f0f0;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .comments-panel {
        min-width: auto;
    }

    .comment-replies {
        margin-left: 16px;
    }
}
/**
 * UnifiedSidebar Styles
 * 统一的右侧边栏样式
 */

.unified-sidebar {
  position: fixed;
  top: 5.5rem; /* GlobalHeader 高度 */
  right: 0;
  height: calc(100vh - 5.5rem);
  background: var(--bg-white, #ffffff);
  border-left: 1px solid #dbdbdb;
  /* box-shadow: -0.25rem 0 1.25rem rgba(6, 37, 91, 0.08); */
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease-out, visibility 0.2s ease-out;
  max-width: calc(100vw - 24px);
  /* min-width: 240px; */
}

/* 隐藏状态 - 保持渲染但不可见，以保留组件状态（如流式消息） */
.unified-sidebar.sidebar-hidden {
  opacity: 0;
  overflow: hidden;
}

/* 拖拽手柄 - 缩小一半 */
.resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  cursor: col-resize;
  background: transparent;
  z-index: 1;
  transition: background 0.2s;
}

.resize-handle:hover {
  background: var(--accent-color, #5991EE);
  opacity: 0.5;
}

.resize-handle:active {
  background: var(--accent-color, #5991EE);
  opacity: 0.8;
}

/* 内容区域 */
.unified-sidebar-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 自定义滚动条样式 */
.unified-sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.unified-sidebar-content::-webkit-scrollbar-track {
  background: var(--bg-white, #ffffff);
  border-radius: 4px;
}

.unified-sidebar-content::-webkit-scrollbar-thumb {
  background: var(--border-secondary, #B9CDF0);
  border-radius: 4px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.unified-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, #5991EE);
}

/* 伸缩按钮 - 圆形设计 */
.sidebar-toggle-button {
  position: fixed;
  bottom: 40px;
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 250;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: #6B7280;
}

.sidebar-toggle-button svg {
  width: 20px;
  height: 20px;
}

.sidebar-toggle-button:hover {
  background: #F9FAFB;
  color: #374151;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle-button:active {
  background: #F3F4F6;
  transform: scale(0.95);
}

/* 侧边栏关闭时的展开按钮 - 一半露出在屏幕右侧 */
.sidebar-toggle-button.sidebar-collapsed {
  right: -16px;
}

/* 侧边栏打开时的收起按钮 - 悬浮在侧边栏左边缘 */
.sidebar-toggle-button.sidebar-expanded {
  right: calc(var(--sidebar-width, 400px) - 16px);
}

@media (max-width: 900px) {
  .unified-sidebar {
    top: 3.25rem;
    height: calc(100vh - 3.25rem);
    max-width: calc(100vw - 16px);
    min-width: min(320px, calc(100vw - 16px));
  }

  /* 移动端隐藏伸缩按钮 */
  .sidebar-toggle-button {
    display: none;
  }
}

/* ============================================================
   对齐原型：右侧统一侧栏
   ============================================================ */
.unified-sidebar {
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 28px -20px rgba(16, 32, 72, 0.3);
}

.resize-handle {
  width: 3px;
}

.resize-handle:hover {
  background: var(--brand);
  opacity: 0.6;
}

.sidebar-toggle-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
}

.sidebar-toggle-button:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
}
/* AI Code Panel 样式 - 紧贴在代码块下方，输出之前 */
.ai-code-panel {
  position: relative;
  width: 100%;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  margin-top: 8px;
  margin-bottom: 8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 标题栏 */
.ai-code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
 /*  border-bottom: 1px solid #f0f0f0; */
}

.ai-icon {
  font-size: 16px;
  color: #20beff;
}

.ai-title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.help-icon {
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.close-icon {
  font-size: 14px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close-icon:hover {
  color: #333;
}

/* 输入区域 */
.ai-code-input-section {
  padding: 12px;
}

.ai-code-input-section .ant-input {
  border-radius: 15px;
  margin-bottom: 12px;
  margin-top: -10px;
}

.ai-code-quick-actions {
  display: flex;
  gap: 8px;
  border-radius: 15px;
}

/* 生成中状态 */
.ai-code-generating {
  padding: 16px;
}

.generating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.generating-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e8e8e8;
  border-top-color: #20beff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Cell Diff View 样式 */
.cell-diff-view {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: visible; /* 改为 visible，避免裁剪 */
  flex: 1;
  min-height: 0; /* 重要：允许 flex item 收缩 */
}

.diff-pane {
  position: relative;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
}

.diff-pane:last-child {
  border-right: none;
}

.diff-pane-content {
  position: relative;
  overflow: visible; /* 改为 visible，让 Monaco Editor 完全显示 */
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Diff 覆盖层 */
.diff-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.diff-overlay-delete {
  background: repeating-linear-gradient(
    45deg,
    rgba(254, 202, 202, 0.3),
    rgba(254, 202, 202, 0.3) 10px,
    rgba(254, 226, 226, 0.3) 10px,
    rgba(254, 226, 226, 0.3) 20px
  );
}

.diff-overlay-add {
  background-color: rgba(187, 247, 208, 0.25);
}

/* 调整 Monaco Editor */
.diff-pane-content .monaco-editor {
  position: relative;
  z-index: 0;
}
.ocean-terminal-panel .react-terminal-wrapper {
  padding: 0;
  background: transparent;
  border-radius: 12px;
}

.ocean-terminal-panel .react-terminal-window-buttons {
  display: none;
}

.ocean-terminal-panel .react-terminal-wrapper:after {
  display: none;
}

.ocean-terminal-panel .react-terminal {
  height: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  gap: 2px;
}

.ocean-terminal-panel .react-terminal-line {
  white-space: pre-wrap;
  line-height: 1.4;
}

.ocean-terminal-panel .react-terminal-active-input {
  margin-top: auto;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  padding-bottom: 8px;
}

.ocean-terminal-panel .react-terminal-line:before {
  color: #6b7280;
}

/**
 * AutoDL Document Editor Styles
 * Completely aligned with Figma UI
 */

.ocean-agent-document-editor-container,
.paithon-document-editor-container {
  display: flex;
  height: 99%; /* 使用父容器的100%高度 */
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.ocean-agent-document-editor,
.paithon-document-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%; /* 使用父容器的100%高度 */
  background: var(--bg-color);
  overflow: hidden;
  position: relative; /* 为浮窗提供定位上下文 */
  /* 为右侧边栏留出空间 */
  margin-right: var(--sidebar-width, 0px);
  transition: margin-right 0.1s ease-out;
  --ai-code-gen-reserve: 0px;
  --ai-code-gen-safe-gap: 16px;
}

.ocean-agent-document-editor.codegen-visible {
  /* Reserve vertical space so the live agent panel never gets covered by the floating code generator */
  --ai-code-gen-reserve: 240px;
}

/* 右侧AI对话侧边栏 - 固定位置，从header下面开始 */
.ai-chat-sidebar {
  position: fixed;
  top: 3.5rem; /* 56px - GlobalHeader的高度 */
  right: 0;
  width: 23.75rem; /* 380px - 默认值，会被内联样式覆盖 */
  height: calc(100vh - 3.5rem); /* 减去header高度 */
  background: var(--bg-white, #ffffff);
  border-left: 1px solid var(--border-secondary, #B9CDF0);
  box-shadow: -0.25rem 0 1.25rem rgba(6, 37, 91, 0.08); /* -4px 0 20px */
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: none !important; /* 禁用过渡效果，避免拖拽时延迟 */
}

/* 右侧边栏拖拽手柄 - 缩小一半 */
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px; /* 居中在边界上 */
  width: 2px;
  cursor: col-resize;
  background: transparent;
  z-index: 100;
  transition: background 0.2s;
}

.sidebar-resize-handle:hover {
  background: var(--accent-color, #5991EE);
  opacity: 0.5;
}

.sidebar-resize-handle:active {
  background: var(--accent-color, #5991EE);
  opacity: 0.8;
}

/* 主内容区域自动留出右侧边栏空间（通过内联样式的 marginRight 控制） */

/* Floating AI Code Generator - Fixed display at bottom */
/* 相对于父容器定位，宽度与文档内容一致 */
.ai-code-gen-float {
  position: absolute;
  left: 32px; /* 与 document-content 的左 padding 一致 */
  right: 42px; /* 与 document-content 的右 padding 一致 */
  bottom: 24px;
  z-index: 100;
  /* 不需要额外shadow，因为 .ai-code-generator 已有 */
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Toolbar */
.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 250;
  min-height: 44px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Toolbar icon buttons: override Ant Design CSS-in-JS and antd-overrides --- */
.document-toolbar .toolbar-icon-btn.ant-btn {
  color: #5f6368;
  font-size: 15px;
  height: 28px !important;
  width: 28px;
  min-width: 28px !important;
  padding: 0 !important;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.document-toolbar .toolbar-icon-btn.ant-btn:hover {
  background: #f1f3f4 !important;
  color: #202124;
}

.document-toolbar .toolbar-icon-btn.ant-btn:active {
  background: #e8eaed !important;
  color: #202124;
}

.document-toolbar .toolbar-icon-btn.ant-btn:disabled {
  color: #dadce0;
  background: transparent !important;
}

/* Toolbar icons: 缩小到企业控制台的紧凑尺寸 */
.document-toolbar .toolbar-icon-btn img {
  width: 18px !important;
  height: 18px !important;
}

/* Run All button — wider because it has text */
.document-toolbar .toolbar-run-all-btn.ant-btn {
  color: #9aa0a6 !important;
  font-size: 13px;
  font-weight: 500;
  width: auto;
  min-width: unset !important;
  padding: 0 10px !important;
  gap: 4px;
}

.document-toolbar .toolbar-run-all-btn.ant-btn:hover {
  color: #5f6368 !important;
  background: #f1f3f4 !important;
}

/* Code type dropdown button */
.document-toolbar .toolbar-code-type-btn.ant-btn {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #202124;
  margin-left: 8px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.document-toolbar .toolbar-code-type-btn.ant-btn:hover {
  background: #f1f3f4 !important;
  color: #202124;
}

.document-toolbar .toolbar-code-type-btn .anticon {
  font-size: 10px;
  color: #5f6368;
}

/* Stop / Restart button */
.document-toolbar .toolbar-power-btn.ant-btn {
  color: #5f6368;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.document-toolbar .toolbar-power-btn.ant-btn:hover {
  color: #d93025;
  background: #fce8e6 !important;
}

.document-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  flex-shrink: 0;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  font-family: var(--font-family);
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem; /* 8px */
  align-items: center;
}

.toolbar-actions .ant-btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 4px 20px;
  height: auto;
}

.toolbar-actions .ant-btn-primary {
  background: #D4E5FF;
  color: #000000;
  border: 1px solid var(--border-secondary, #B9CDF0);
}

.toolbar-actions .ant-btn-primary:hover {
  background: var(--accent-color, #5991EE);
  color: var(--bg-white, #FFFFFF);
}

.toolbar-actions .ant-btn:not(.ant-btn-primary) {
  color: #020202;
  border: 1px solid var(--border-secondary, #B9CDF0);
}

/* Document Content Area */
.document-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 24px;
  padding-bottom: 100px;
  background: #ffffff;
}

.document-content-floating {
  padding-bottom: 500px;
}

/* Document Footer */
.document-footer {
  height: 24px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 4px 10px;
  z-index: 100;
 
}

.ocean-console-drawer .ant-drawer-content-wrapper {
  border-top: 1px solid #e0e0e0;
}

.ocean-console-drawer .ant-drawer-header {
  position: relative;
}

.ocean-console-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ocean-console-resize-handle {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  cursor: row-resize;
}

.ocean-console-resize-handle::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #d0d7de;
}

  .footer-terminal-btn {
    font-size: 12px;  
    display: flex;
    align-items: center;
    transition: all 0.2s ease-out;
    height: 18px;
    min-height: 18px;
    color: #5f6368;
  }
  
  .footer-terminal-btn .anticon {
    font-size: 12px;
  }
  
  .footer-terminal-btn:hover {
    color: #202124;
    background: transparent;
  }

/* 自定义滚动条样式 */
.document-content::-webkit-scrollbar {
  width: 8px;
}

.document-content::-webkit-scrollbar-track {
  background: var(--bg-color, #F5F9FF);
  border-radius: 4px;
}

.document-content::-webkit-scrollbar-thumb {
  background: var(--accent-color, #5991EE);
  border-radius: 4px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.document-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, #5991EE);
}

/* Cell Common Styles */
.paithon-cell {
  margin-bottom: 32px;
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-color);
  /* 移除阴影 */
  transition: border-color 0.3s, box-shadow 0.3s;
}

.paithon-cell:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(77, 107, 250, 0.12);
}

/* Cell Header - 统一样式 */
.cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--border-color);
  min-height: 40px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Markdown Toolbar */
.markdown-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  background: #fafafa;
  border-top: 1px solid var(--border-color);
}

.markdown-toolbar-bottom {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top: 1px solid var(--border-color);
}

.markdown-toolbar-btn {
  color: #5f6368;
  font-size: 14px;
  height: 28px;
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.markdown-toolbar-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Cell Type Badge - 统一样式 */
.cell-type-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  text-transform: capitalize;
  padding: 2px 8px;
  background: #e8eaed;
  border-radius: 4px;
}

.cell-actions {
  display: flex;
  gap: 4px;
}

.cell-actions .ant-btn {
  color: #5f6368;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cell-actions .ant-btn:hover {
  background: #f1f3f4;
  color: #202124;
}

/* Thinking Chain */
.thinking-chain-container {
  background: transparent; /* 改为透明，与 cell 背景一致 */
  border-bottom: none; /* 移除边框 */
  padding: 20px 32px;
}

.thinking-chain-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
}

.thinking-chain-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
}

.thinking-chain-status {
  font-size: 14px;
  color: var(--secondary-blue);
}

.thinking-chain {
  padding-left: 8px;
}

.thinking-step {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.thinking-step:last-child {
  padding-bottom: 0;
}

/* Timeline line */
.thinking-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.thinking-step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
  background: var(--bg-color);
}

.dot-icon {
  font-size: 12px;
  color: var(--secondary-blue);
}

.thinking-step-success .thinking-step-icon {
  color: #52c41a;
}

.thinking-step-content {
  flex: 1;
}

.thinking-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.thinking-step-message {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-blue);
}

.thinking-step-details {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Execution Success */
.execution-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--surface-color);
  color: #10b981;
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid rgba(84, 127, 178, 0.1);
}

/* Output Area */
.cell-outputs-container {
  position: relative;
  background: var(--surface-color);
  border-top: 1px solid rgba(84, 127, 178, 0.1);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cell-outputs-header {
  position: absolute;
  top: 8px;
  left: -36px;
  z-index: 10;
}

.cell-outputs-toggle {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(84, 127, 178, 0.2);
  transition: all 0.2s ease;
}

.cell-outputs-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--accent-color, #5991EE);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell-outputs {
  padding: 24px 32px;
  background: var(--surface-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.cell-outputs::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cell-outputs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.cell-outputs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.cell-outputs::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.output-text {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.output-error {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  color: #ff4d4f;
  white-space: pre-wrap;
  background: #fff1f0;
  padding: 12px;
  border-radius: 8px;
}

.output-pdf {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: #FFF8F0;
  border: 2px solid #FFD591;
  border-radius: 12px;
  margin-top: 12px;
}

.pdf-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-filename {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 14px;
}

.pdf-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Cell Editor */
.cell-editor {
  background: #F5F6F8;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
}

.cell-editor .monaco-editor {
  border-radius: 8px;
  background: #F5F6F8 !important;
}

.cell-editor .monaco-editor .monaco-editor-background {
  background-color: #F5F6F8 !important;
} 



/* Monaco编辑器内部所有区域背景色 */
/* 注释掉这些背景色覆盖，让主题控制 */
.cell-editor .monaco-editor .margin,
.cell-editor .monaco-editor .monaco-scrollable-element,
.cell-editor .monaco-editor .view-lines,
.cell-editor .monaco-editor .view-line, 
.cell-editor .monaco-editor .lines-content,
.cell-editor .monaco-editor .inputarea {
  background: #F5F6F8;
  background-color: #F5F6F8;
} 

/* Monaco编辑器横向滚动条 - Antd风格 */
/* 默认隐藏滚动条 */
.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  background: transparent !important;
  height: 6px !important;
  bottom: 0px !important;
}

/* 仅在单元格被选中时显示滚动条 */
.cell-selected .cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal {
  opacity: 1 !important;
}

.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal .slider {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 3px !important;
}

.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal:hover .slider {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 18px;
}

.cell-editor .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal .slider:active {
  background: rgba(0, 0, 0, 0.35) !important;
}

/* 禁用选中行的高亮背景 */
/* .cell-editor .monaco-editor .selected-text,
.cell-editor .monaco-editor .focused .selected-text,
.cell-editor .monaco-editor .line-numbers,
.cell-editor .monaco-editor .current-line {
  background: red !important;
  background-color: transparent !important;
} */

/* Markdown Preview - 统一与 pth 文件颜色 */
.markdown-preview {
  padding: 16px;
  line-height: 1.4;
  color: #202124;
  background: transparent;
  min-height: 60px;
  cursor: text;
}

.markdown-preview h1 {
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin-top: 0;
  margin-bottom: 20px;
}

.markdown-preview h2 {
  font-size: 26px;
  font-weight: 600;
  color: #000000;
  margin-top: 28px;
  margin-bottom: 16px;
}

.markdown-preview p {
  margin: 8px 0;
  color: #000000;
  font-size: 16px;
}

.markdown-preview code {
  padding: 4px 8px;
  background: var(--bg-color);
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
  color: #000000;
}

.markdown-preview pre {
  padding: 20px;
  background: var(--bg-color);
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}


/* Loading State */
.document-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-secondary);
}

/* Empty State */
.empty-document {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-document p {
  margin-bottom: 24px;
  font-size: 18px;
}

/* Status Bar Styles */
.document-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: #1a1a2e;
  border-bottom: 1px solid #2d2d44;
  font-size: 12px;
  color: #8892b0;
  min-height: 40px;
}

.status-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.status-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-label {
  color: #8892b0;
  font-weight: 500;
}

.status-value {
  color: #ccd6f6;
  font-weight: 600;
}

.status-running {
  color: #52c41a;
  animation: pulse 2s infinite;
}

.status-idle {
  color: #8892b0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 分析模块 - "分析上传的数据" - 按照设计稿样式 */
.analysis-module {
  margin: 0.75rem 2rem;
  background: #F8FAFC;
  border: 0.125rem solid #547FB2;
  border-radius: 2.75rem; /* 44px - 更圆润，匹配设计稿 */
  box-shadow: 0px 4px 4px rgba(6, 37, 91, 0.8);
  overflow: hidden;
}

.analysis-module-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-color, #F5F9FF);
  border-bottom: 0.0625rem solid var(--border-secondary, #B9CDF0);
  cursor: pointer;
  transition: background 0.2s ease;
}

.analysis-module-header:hover {
  background: #ECF3FF;
}

.analysis-module-icon {
  font-size: 1.25rem;
  color: #557EB2;
}

.analysis-module-icon.spinning {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.analysis-module-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  flex: 1;
}

.analysis-module-status {
  font-size: 0.875rem;
  color: #557EB2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-module-content {
  padding: 1rem 1.5rem;
}

.analysis-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.analysis-step-bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #557EB2;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* 连接线 - 在bullet之间添加垂直线 */
.analysis-step:not(:last-child) .analysis-step-bullet::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.75rem;
  width: 0.125rem;
  height: calc(100% + 0.5rem);
  background: #557EB2;
  border-radius: 0.75rem;
  opacity: 0.3;
}

.analysis-step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #557EB2;
  margin-bottom: 0.25rem;
}

.analysis-step-detail {
  font-size: 0.875rem;
  color: #527DB0;
  line-height: 1.6;
}

/* Output Actions - PDF和邮件按钮区域 */
.cell-output-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cell-output-actions .ant-btn {
  border-radius: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #070707;
}

.cell-output-actions .ant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(89, 145, 238, 0.25);
  color: #05245A;
}

/* Output PDF display - 匹配设计稿 */
.output-pdf {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #F1F5F8;
  border-radius: 2.75rem;
  margin: 0.5rem 0;
}

.output-pdf-icon {
  font-size: 2rem;
  color: #FF5540;
}

.output-pdf-info {
  flex: 1;
}

.output-pdf-name {
  font-size: 1rem;
  font-weight: 600;
  color: #05245A;
}

.output-pdf-actions {
  display: flex;
  gap: 0.5rem;
}

.output-pdf-actions .ant-btn {
  border-radius: 1.5rem;
}

/* Email confirmation section - 匹配设计稿 */
.email-confirmation {
  margin-top: 1rem;
  padding: 1rem;
  background: #F8FAFC;
  border-radius: 1rem;
}

.email-confirmation-text {
  font-size: 0.875rem;
  color: #ACACAC;
  margin-bottom: 1rem;
}

.email-confirmation-button {
  background: #C1E3FE;
  border: none;
  border-radius: 6.875rem;
  color: #05245A;
  font-weight: 500;
  padding: 0.5rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-confirmation-button:hover {
  background: #A8D5F7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Thinking Chain Collapse (legacy) */
.thinking-chain-collapse {
  margin: 12px 32px;
  background: #f0f5ff !important;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
}

.thinking-chain-collapse .ant-collapse-header {
  padding: 12px 16px !important;
  background: #e6f7ff;
  border-radius: 8px 8px 0 0;
}

.thinking-chain-collapse .ant-collapse-content-box {
  padding: 16px;
}

/* AutoDL Cell Styles */
.ocean-agent-cell {
  margin-bottom: 12px;
  background: transparent;
  /* Only transition specific properties for better performance */
  transition: opacity 0.15s ease-out, transform 0.15s ease-out, background 0.15s ease-out;
  animation: cellFadeIn 0.3s ease-out;
  cursor: pointer;
  /* Hint browser to optimize these properties */
  will-change: transform, opacity;
}

.ocean-agent-cell:hover {
  background: transparent;
}

/* 选中态：通过左侧折叠条显示 */
.ocean-agent-cell.cell-selected .cell-left-bar {
  background: var(--primary-color) !important;
}

/* 拖拽状态样式 */
.ocean-agent-cell.cell-dragging {
  opacity: 0.5;
  cursor: grabbing;
  /* Use GPU-accelerated transform with translate3d for better performance */
  transform: scale(0.98) translate3d(0, 0, 0);
  /* Use filter instead of box-shadow for better performance */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.ocean-agent-cell.cell-drop-target {
  border-top: 3px solid #5991EE;
  background: rgba(89, 145, 238, 0.05);
  transform: translateY(2px) translate3d(0, 0, 0);
}

/* Cell fade in animation */
@keyframes cellFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cell-container {
  display: flex;
  gap: 8px;
  position: relative;
  /* Optimize transition - only animate what's needed */
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  /* 为悬浮工具栏提供定位上下文 */
}

.cell-left-bar-area {
  width: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  cursor: grab;
}

.cell-left-bar-area:active {
  cursor: grabbing;
}

.cell-left-bar {
  width: 5px;
  background: transparent;
  border-radius: 6px 0 0 6px;
  /* Only animate background color for hover effect */
  transition: background-color 0.15s ease-out;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: grab;
  flex: 1;
}

.cell-left-bar:active {
  cursor: grabbing;
}

.cell-left-bar:hover {
  background: var(--primary-color) !important;
}

/* 非选中态隐藏折叠条，只在选中态和直接hover时显示 */
/* .ocean-agent-cell:hover .cell-left-bar {
  background: #1E1E1E;
} */

.cell-run-area {
  width: 30px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-top: 8px;
  gap: 4px;
}

.cell-run-btn {
  color: #5f6368;
  font-size: 18px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease-out, background-color 0.2s ease-out, color 0.2s ease-out;
  background: white;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.ocean-agent-cell:hover .cell-run-btn {
  opacity: 1;
}

.cell-run-btn:hover {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  transform: none;
}

.cell-run-btn:active {
  transform: none;
}

.cell-run-btn .anticon {
  font-size: 18px;
}

/* 运行图标样式 */
.cell-action-icon {
  flex-shrink: 0;
  transition: all 0.2s ease-out;
}

.cell-run-icon {
  opacity: 1;
  /* 将图标颜色转换为 #1E1E1E (深灰色，接近黑色) */
  filter: brightness(0) saturate(100%) invert(7%) sepia(7%) saturate(0%) hue-rotate(347deg) brightness(100%) contrast(87%);
}

.cell-run-icon:hover {
  opacity: 1;
  /* hover 时保持 #1E1E1E 颜色 */
  filter: brightness(0) saturate(100%) invert(7%) sepia(7%) saturate(0%) hue-rotate(347deg) brightness(100%) contrast(87%);
  transform: scale(1.4);  /* hover 时放大以补偿尺寸缩小 */
}

.cell-run-icon:active {
  transform: scale(1.0);
}

/* 执行顺序号显示样式 */
.cell-execution-count {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: #1E1E1E;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  line-height: 1;
}

/* 执行顺序号占位符样式 */
.cell-execution-count-placeholder {
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 10px;
  color: #1E1E1E;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  line-height: 1;
}

/* 执行成功图标样式 */
.cell-execution-success-icon {
  font-size: 16px;
  color: #38bdf8;
  cursor: default;
}

/* 展开按钮样式 - 仅显示图标 */
.cell-expand-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transition: none !important;
  padding: 0 !important;
}

.cell-expand-btn:hover {
  background: transparent !important;
  border: none !important;
  transform: none !important;
}

.cell-expand-btn svg,
.cell-expand-btn img {
  width: 18px;
  height: 18px;
}

.cell-main-content {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  overflow: visible;
  background: var(--bg-white, #ffffff);
  transition: all 0.2s ease-out;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ocean-agent-cell:hover .cell-main-content {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(77, 107, 250, 0.12);
}

/* 选中单元格：主色描边 + 淡色光环 */
.ocean-agent-cell.cell-selected .cell-main-content {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.cell-main-content .cell-header,
.cell-main-content .cell-editor,
.cell-main-content .markdown-toolbar,
.cell-main-content .markdown-preview,
.cell-main-content .execution-success {
  overflow: hidden;
}

/* AI Code Panel 和 cell-outputs 允许可见溢出，避免被裁切 */
.cell-main-content .cell-outputs {
  overflow: visible;
}

.cell-main-content .ai-code-panel {
  overflow: visible;
}

.cell-right-actions {
  position: absolute;
  top: -18px;
  right: 24px;
  display: flex;
  flex-direction: row;
  gap: 2px;
  background: white;
  padding: 4px 6px;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease-out;
  z-index: 110;
  border: 1px solid #e0e0e0;
}

.ocean-agent-cell:hover .cell-right-actions {
  opacity: 1;
  transform: translateY(0);
}

/* AI 生成内容时，工具栏一直显示 */
.cell-right-actions.ai-actions-visible {
  opacity: 1;
  transform: translateY(0);
  gap: 8px; /* 增加按钮间距 */
  padding: 6px 12px; /* 增加内边距 */
}

.cell-right-actions .ant-btn {
  color: #5f6368;
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.2s ease-out;
}

/* AI 操作按钮（Done/Discard）特殊样式 */
.cell-right-actions.ai-actions-visible .ant-btn {
  width: auto !important;
  min-width: 70px;
  height: 28px;
  padding: 0 12px !important;
  border-radius: 14px !important;
  font-weight: 500;
  font-size: 13px;
}

.cell-right-actions.ai-actions-visible .ant-btn-primary {
  background: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  color: white !important;
}

.cell-right-actions.ai-actions-visible .ant-btn-primary:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cell-right-actions.ai-actions-visible .ant-btn-text {
  border: 1px solid #e0e0e0 !important;
  background: white !important;
  color: #5f6368 !important;
}

.cell-right-actions.ai-actions-visible .ant-btn-text:hover {
  background: #f5f5f5 !important;
  border-color: #d0d0d0 !important;
  color: #202124 !important;
  transform: translateY(-1px);
}

.cell-right-actions .ant-btn:hover {
  background: #f1f3f4;
  color: #202124;
  transform: scale(1.1);
}

.cell-right-actions .ant-btn-dangerous {
  color: #5f6368;
  background: transparent;
  border: none;
}

.cell-right-actions .ant-btn-dangerous:hover {
  background: #fce8e6;
  color: #d93025;
  transform: scale(1.1);
}

.cell-pin-btn {
  color: #20beff !important;
}

.cell-pin-btn:hover {
  background: #d4f2ff !important;
  color: #00adf7 !important;
  transform: scale(1.1) !important;
}

/* Cell Bottom Actions - 移到单元格外部，hover时显示但预留位置 */
.cell-bottom-actions {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  margin-left: 68px; /* 对齐到编辑器内容区域 */
  margin-top: 4px;
  margin-bottom: 12px;
  visibility: hidden; /* 隐藏但预留位置 */
  transition: visibility 0.15s ease-out;
}

.ocean-agent-cell:hover .cell-bottom-actions {
  visibility: visible; /* hover时显示 */
}

.cell-bottom-actions .ant-btn {
  color: #2b2a2a;
  font-size: 12px;
  font-weight: 500;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: white;
}

.cell-bottom-actions .ant-btn:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

/* Code Cell Specific Styles */
.ocean-agent-cell-code .cell-header {
  background: #f8f9fa;
}

.ocean-agent-cell-code .cell-type-badge {
  background: #e8eaed;
  color: #5f6368;
}

/* Markdown Cell Specific Styles */
.ocean-agent-cell-markdown .cell-header {
  background: #f8f9fa;
}

.ocean-agent-cell-markdown .cell-type-badge {
  background: #fef7e0;
  color: #856404;
}

/* Markdown预览模式：移除边框和阴影 */
.ocean-agent-cell-markdown .cell-main-content:not(:has(.cell-editor)) {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Markdown cell left indicator - 空白区域 */

/* 运行成功状态 */
.execution-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e6f4ea;
  color: #137333;
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid #c6e8cf;
}

/* 输出区域样式优化 */
.cell-outputs {
  padding: 16px;
  background: var(--bg-white, #ffffff);
  border-top: 1px solid #e0e0e0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* PDF输出样式 */
.output-pdf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color, #F5F9FF);
  border: 0.0625rem solid var(--border-secondary, #B9CDF0);
  border-radius: 0.75rem;
  margin-top: 0.75rem;
}

.output-pdf-icon {
  font-size: 1.5rem;
  color: #ef4444;
}

.output-pdf-info {
  flex: 1;
}

.output-pdf-name {
  font-weight: 600;
  color: var(--primary-blue, #05245A);
  font-size: 0.9375rem;
}

.output-pdf-actions {
  display: flex;
  gap: 0.5rem;
}

.output-pdf-actions .ant-btn {
  border-radius: 0.5rem;
}

/* 文件输出样式 (支持预览的文件类型) */
.output-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-color, #F5F9FF);
  border: 0.0625rem solid var(--border-secondary, #B9CDF0);
  border-radius: 0.75rem;
  margin-top: 0.75rem;
}

.output-file-icon {
  font-size: 1.5rem;
}

.output-file-name {
  flex: 1;
  font-weight: 500;
  color: var(--primary-blue, #05245A);
  font-size: 0.9375rem;
}

.output-file-unsupported {
  color: #8c8c8c;
  font-size: 0.875rem;
  font-style: italic;
}

/* 确认输入框样式 */
.confirm-input-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fffbeb;
  border-top: 0.0625rem solid #fcd34d;
}

.confirm-input-section .ant-input {
  flex: 1;
  border-radius: 0.5rem;
}

.confirm-input-section .ant-btn-primary {
  background: var(--accent-color, #5991EE);
  border-radius: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .document-toolbar {
    padding: 16px;
  }

  .document-content {
    padding: 16px;
  }

  .paithon-cell {
    border-radius: 12px;
  }

  .cell-header,
  .thinking-chain-container,
  .cell-outputs,
  .markdown-preview {
    padding: 16px 20px;
  }
}

/* 🔥 NEW: Live Agent Execution Styling */
.ocean-agent-cell-live {
  border: 2px dashed var(--primary-color);
  background: rgba(77, 107, 250, 0.04);
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes pulse {
  0%, 100% {
    border-color: var(--primary-color);
  }
  50% {
    border-color: #40a9ff;
  }
}

/* Markdown 内容样式 */
.markdown-content {
  line-height: 1.6;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.3;
}

.markdown-content h1 {
  font-size: 1.5em;
  border-bottom: 2px solid #547FB2;
  padding-bottom: 0.3em;
}

.markdown-content h2 {
  font-size: 1.3em;
  color: #06255B;
}

.markdown-content h3 {
  font-size: 1.1em;
  color: #527DB0;
}

.markdown-content p {
  margin: 0.8em 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0.5em 0;
  padding-left: 2em;
}

.markdown-content li {
  margin: 0.3em 0;
}

.markdown-content strong {
  font-weight: 600;
  color: #06255B;
}

.markdown-content code {
  background: #E8F1FF;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background: #F0F5FA;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 4px solid #547FB2;
  padding-left: 1em;
  margin: 1em 0;
  color: #527DB0;
  font-style: italic;
}

/* 🔥 NEW: Live Agent Execution Display */
.live-agent-execution {
  background: #FFFFFF;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  margin: 16px 20px;
  box-shadow: 0 4px 12px rgba(77, 107, 250, 0.12);
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Use remaining vertical space (with clamp) */
  flex: 2 1 0;
  height: auto;
  min-height: 360px;
  max-height: calc(100% - var(--ai-code-gen-reserve) - var(--ai-code-gen-safe-gap));
  position: relative;
  z-index: 120;
  overflow: hidden;
}

.live-agent-resize-handle {
  height: 10px;
  cursor: default;
  flex-shrink: 0;
  background: #F7FBFF;
  border-top: 1px solid #B3D8FF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-agent-resize-handle-bar {
  width: 24px;
  height: 100%;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.live-agent-resize-handle-bar::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #B3D8FF 0px,
    #B3D8FF 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.9;
}

.live-agent-resize-handle-bar:hover::before {
  background: repeating-linear-gradient(
    90deg,
    #5991EE 0px,
    #5991EE 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 1;
}

.live-agent-resize-handle:hover {
  background: #EEF6FF;
}

.live-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(90deg, #E8F4FF 0%, #F0F9FF 100%);
  border-bottom: 1px solid #B3D8FF;
  border-radius: 6px 6px 0 0;
}

.live-agent-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #06255B;
}

.thinking-icon {
  font-size: 18px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.user-request-section {
  padding: 8px 16px;
  background: #F5F7FA;
  border-bottom: 1px solid #E8ECF0;
}

.user-request-label {
  font-size: 10px;
  color: #8B8D98;
  margin-bottom: 2px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-request-content {
  font-size: 12px;
  color: #06255B;
  line-height: 1.4;
  font-weight: 500;
}

.live-agent-split-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #E8ECF0;
  flex: 1;
  min-height: 0;
}

.thinking-chain-area,
.code-area {
  display: flex;
  flex-direction: column;
}

.thinking-chain-area {
  flex: 4;
  min-height: 0;
  border-bottom: 1px solid #E8ECF0;
}

.code-area {
  flex: 6;
  min-height: 0;
}

@media (max-height: 720px) {
  .ocean-agent-document-editor.codegen-visible {
    --ai-code-gen-reserve: 200px;
  }

  .live-agent-execution {
    min-height: 320px;
  }
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: #06255B;
  padding: 6px 12px;
  background: #FAFBFC;
  border-bottom: 1px solid #E8ECF0;
}

.thinking-scroll,
.code-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scroll-behavior: smooth;
}

.thinking-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.step-content {
  flex: 1;
}

.step-message {
  font-size: 12px;
  color: #06255B;
  line-height: 1.5;
  margin-bottom: 3px;
}

.step-message.markdown-content > *,
.step-details.markdown-content > * {
  position: relative;
  padding-left: 14px;
  margin: 0 0 4px;
}

.step-message.markdown-content > *::before,
.step-details.markdown-content > *::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.step-message.markdown-content > *::before {
  background: #1890FF;
}

.step-details.markdown-content > *::before {
  background: #8FB5FF;
}

.step-details {
  font-size: 11px;
  color: #5A5C66;
  line-height: 1.4;
  padding-left: 8px;
  border-left: 2px solid #E8ECF0;
  margin-top: 4px;
}

.code-content {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #06255B;
  background: #F8F9FA;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #E8ECF0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-hint {
  text-align: center;
  color: #8B8D98;
  font-size: 11px;
  padding: 30px 16px;
  font-style: italic;
}

/* Scrollbar styling */
.thinking-scroll::-webkit-scrollbar,
.code-scroll::-webkit-scrollbar {
  width: 6px;
}

.thinking-scroll::-webkit-scrollbar-track,
.code-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.thinking-scroll::-webkit-scrollbar-thumb,
.code-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-color, #5991EE);
  border-radius: 3px;
}

.thinking-scroll::-webkit-scrollbar-thumb:hover,
.code-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, #5991EE);
}

/* File output styles */
.output-file {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background: #F0F9FF;
  border: 2px solid #91D5FF;
  border-radius: 12px;
  margin-top: 12px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-filename {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 15px;
}

.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* SaveVersionModal 样式 */
.save-version-modal .ant-modal-content {
  box-shadow: none !important;
  border-radius: 8px;
}

.save-version-modal .ant-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.save-version-modal .ant-modal-body {
  padding: 24px;
}

.save-version-modal .ant-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e8e8e8;
}

/* 自定义标题栏 */
.save-version-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.save-version-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
}

.save-version-modal-close {
  font-size: 16px;
  color: #8c8c8c;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-version-modal-close:hover {
  color: #1e1e1e;
}

/* 表单区域 */
.version-form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* VERSION NAME 区域 */
.version-name-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-label {
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-input-wrapper {
  position: relative;
}

.version-input-wrapper .ant-input {
  padding-right: 50px;
  border-radius: 4px;
  border-color: #d9d9d9;
  font-size: 14px;
}

.version-input-wrapper .ant-input:hover,
.version-input-wrapper .ant-input:focus {
  border-color: #1E1E1E;
  box-shadow: none;
}

.char-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #8c8c8c;
  pointer-events: none;
}

/* VERSION TYPE 区域 */
.version-type-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-type-section .ant-select {
  width: 100%;
}

.version-type-section .ant-select-selector {
  border-radius: 4px;
  border-color: #d9d9d9;
}

.version-type-section .ant-select:hover .ant-select-selector,
.version-type-section .ant-select-focused .ant-select-selector {
  border-color: #1E1E1E;
  box-shadow: none;
}

.version-type-description {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.5;
  margin-top: 4px;
}

/* Advanced Settings 区域 */
.advanced-settings-section {
  margin-top: 8px;
}

.advanced-settings-section .ant-collapse {
  background: transparent;
  border: none;
}

.advanced-settings-section .ant-collapse-item {
  border: none;
}

.advanced-settings-section .ant-collapse-header {
  padding: 12px 0 !important;
  font-size: 13px;
  font-weight: 600;
  color: #1E1E1E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advanced-settings-section .ant-collapse-header:hover {
  color: #1E1E1E;
}

.advanced-settings-section .ant-collapse-content-box {
  padding: 16px 0;
}

.advanced-settings-placeholder {
  font-size: 13px;
  color: #8c8c8c;
  font-style: italic;
}

/* 底部按钮区域 */
.save-version-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.save-version-modal-footer .ant-btn {
  min-width: 100px;
  border-radius: 24px;
  font-weight: 500;
  padding: 8px 28px;
  height: 40px;
  font-size: 14px;
}

.save-version-modal-footer .cancel-btn {
  border: none;
  background-color: transparent;
  color: #595959;
}

.save-version-modal-footer .cancel-btn:hover {
  background-color: #f5f5f5;
  color: #595959;
}

.save-version-modal-footer .save-btn {
  background-color: #1E1E1E;
  border-color: #1E1E1E;
  color: white;
}

.save-version-modal-footer .save-btn:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .save-version-modal .ant-modal-body {
    padding: 16px;
  }
}

/* ============================================================
   工作台顶栏（对齐原型：浅色模糊 / 文件名 + 实例徽章 + 操作）
   ============================================================ */

.oa-wtb {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 30;
}

.oa-wtb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 620;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.oa-wtb-back:hover {
  background: var(--surface-3);
  color: var(--text);
}

.oa-wtb-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.oa-wtb-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.oa-wtb-fileicon {
  width: 17px;
  height: 17px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.9;
  flex-shrink: 0;
}

.oa-wtb-name {
  font-size: 14px;
  font-weight: 720;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.oa-wtb-unsaved {
  background: var(--warning-bg);
  color: var(--warning-color);
}

.oa-wtb-inst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 640;
  white-space: nowrap;
  flex-shrink: 0;
}

.oa-wtb-inst svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.oa-wtb-tag {
  height: 20px !important;
  font-size: 11px !important;
  padding: 0 8px !important;
}

.oa-wtb-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 保存版本（渐变分体按钮） */
.oa-wtb-savegroup {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 22px -10px rgba(30, 94, 255, 0.75);
}

.oa-wtb-save,
.oa-wtb-savecount {
  height: 34px;
  border: none;
  background: var(--brand-grad);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: filter 0.15s ease;
}

.oa-wtb-save {
  padding: 0 14px;
  border-radius: 10px 0 0 10px;
}

.oa-wtb-savecount {
  padding: 0 12px;
  border-radius: 0 10px 10px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.oa-wtb-save:hover,
.oa-wtb-savecount:hover {
  filter: brightness(1.06);
}

.oa-wtb-save svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 1280px) {
  .oa-wtb-name {
    max-width: 140px;
  }

  .oa-wtb-inst span:not(.oa-tag) {
    display: none;
  }

  /* 窄屏下仅「重启内核 / 全部运行」收成图标，导出报告与保存版本保留文字 */
  .oa-wtb-icobtn span {
    display: none;
  }
}
/* ============================================================
   工作台文件标签页（对齐原型）
   ============================================================ */

.oa-wtabs {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 12px 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.oa-wtabs::-webkit-scrollbar {
  height: 6px;
}

.oa-wtabs::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.oa-wtab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px 9px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
  flex-shrink: 0;
  max-width: 220px;
}

.oa-wtab:hover {
  background: var(--surface-3);
  color: var(--text);
}

.oa-wtab.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 640;
  border-color: var(--border);
  margin-bottom: -1px;
}

.oa-wtab-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.oa-wtab-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-wtab-close {
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.oa-wtab-close:hover {
  background: var(--error-bg);
  color: var(--error-color);
}
/* ImportNotebookModal 样式 */
.import-notebook-modal .ant-modal-content {
  box-shadow: none !important;
}

.import-notebook-modal .ant-modal-title {
  font-size: 16px;
  font-weight: 00;
  color: #1e1e1e;
}

.import-notebook-modal-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.import-notebook-modal-content {
  width: 100%;
}

/* 拖放区域样式 */
.import-notebook-drop-zone {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.import-notebook-drop-zone:hover {
  border-color: #1890ff;
  background-color: #f0f7ff;
}

.import-notebook-drop-zone.dragging {
  border-color: #1890ff;
  background-color: #e6f7ff;
  border-style: solid;
}

/* 拖放区域内容 */
.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 拖放图标 */
.drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.import-notebook-drop-zone:hover .drop-icon,
.import-notebook-drop-zone.dragging .drop-icon {
  opacity: 0.8;
}

/* 拖放文本 */
.drop-text {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin: 0;
}

/* 拖放提示 */
.drop-hint {
  font-size: 12px;
  color: #8c8c8c;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

/* Browse Files 按钮 */
.browse-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1e;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.browse-button:hover {
  border-color: #1890ff;
  color: #1890ff;
  background-color: #f0f7ff;
}

.browse-button:active {
  transform: scale(0.98);
}

/* Browse 图标 */
.browse-icon {
  width: 16px;
  height: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .import-notebook-modal {
    width: 90% !important;
  }

  .import-notebook-drop-zone {
    padding: 30px 15px;
  }

  .drop-icon {
    width: 40px;
    height: 40px;
  }

  .drop-text {
    font-size: 13px;
  }

  .drop-hint {
    font-size: 11px;
  }
}


/* AddInputModal 样式 */
.add-input-modal .ant-modal-content {
  box-shadow: none !important;
}


.add-input-modal .ant-modal-body {
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
}

.add-input-modal-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.add-input-modal-content {
  padding: 13px 2px;
}

/* 搜索框样式 */
.search-section {
  margin-bottom: 16px;
}

.search-input {
  border-radius: 20px;
}

.search-input .ant-input {
  font-size: 14px;
}

/* 分类标签样式 */
.category-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* 最近查看标题 */
.recently-viewed-header {
  font-size: 13px;
  font-weight: 400;
  color: #595959;
  margin-bottom: 12px;
  padding-bottom: 0;
}

/* 数据源列表区域 */
.data-sources-section {
  min-height: 200px;
}

.data-sources-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 数据源项 */
.data-source-item {
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.data-source-item:hover {
  border-color: #1890ff;
  background-color: #f5f5f5;
}

.data-source-main {
  min-width: 0;
  flex: 1;
}

.data-source-action {
  flex: 0 0 auto;
  padding-top: 2px;
}

.data-source-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin-bottom: 4px;
  word-break: break-word;
}

.data-source-description {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.data-source-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999999;
}

.meta-author::before {
  content: '👤 ';
}

.meta-size::before {
  content: '📦 ';
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.empty-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 13px;
  font-weight: 400;
  color: #1e1e1e;
  margin-bottom: 6px;
}

.empty-description {
  font-size: 12px;
  color: #999999;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .add-input-modal {
    width: 90% !important;
  }

  .category-section {
    gap: 6px;
  }
}
/**
 * Machine Panel Styles - Aligned with Figma Design
 * Design scale: ~1:100 (13600px design → ~136px screen)
 */

.machine-panel {
  background: #ffffff;
  flex-shrink: 0;
}

.machine-config-section {
  padding: 0 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.machine-config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 40px;
  position: relative;
  gap: 8px;
}

.config-content-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.config-label {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  max-width: 180px;
  min-width: 0;
}

.config-value {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.config-dropdown-btn {
  padding: 0 4px !important;
  height: 24px !important;
  color: #6b7280 !important;
  flex-shrink: 0;
}

.machine-action-section {
  padding: 0 20px 20px;
}

.btn-start-machine {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-start-machine:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
}

.machine-running-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #059669;
  font-weight: 500;
  padding: 8px 12px;
  background: #ecfdf5;
  border-radius: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.environment-progress {
  padding: 0 20px 12px;
}

.progress-message {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* UploadModal 样式 */
.upload-modal .ant-modal-content {
  box-shadow: none !important;
}

/* .upload-modal .ant-modal-body {
  padding: 24px;
} */

/* .upload-modal .ant-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
} */

.upload-modal .ant-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
}

.upload-modal-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.upload-modal-content {
  width: 100%;
}

/* 拖放区域样式 */
.upload-drop-zone {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-drop-zone:hover {
  border-color: #1890ff;
  background-color: #f0f7ff;
}

.upload-drop-zone.dragging {
  border-color: #1890ff;
  background-color: #e6f7ff;
  border-style: solid;
}

/* 拖放区域内容 */
.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 拖放图标 */
.drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.upload-drop-zone:hover .drop-icon,
.upload-drop-zone.dragging .drop-icon {
  opacity: 0.8;
}

/* 拖放文本 */
.drop-text {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin: 0;
}

/* 拖放提示 */
.drop-hint {
  font-size: 12px;
  color: #8c8c8c;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

/* Browse Files 按钮 */
.browse-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400;
  color: #1e1e1e;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.browse-button:hover {
  border-color: #1890ff;
  color: #1890ff;
  background-color: #f0f7ff;
}

.browse-button:active {
  transform: scale(0.98);
}

/* Browse 图标 */
.browse-icon {
  width: 16px;
  height: 16px;
}

/* 文件列表（如果需要显示选中的文件） */
.selected-files-list {
  margin-top: 16px;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 13px;
}

.selected-file-item:last-child {
  margin-bottom: 0;
}

.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e1e1e;
}

.file-size {
  margin-left: 8px;
  color: #8c8c8c;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .upload-modal {
    width: 90% !important;
  }

  .upload-drop-zone {
    padding: 30px 15px;
  }

  .drop-icon {
    width: 40px;
    height: 40px;
  }

  .drop-text {
    font-size: 13px;
  }

  .drop-hint {
    font-size: 11px;
  }
}

.project-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  overflow-y: auto;
}

/* Collapse 样式覆盖 */
.sidebar-collapse.ant-collapse {
  border: none;
  background: transparent;
}

.sidebar-collapse .ant-collapse-item {
  border-bottom: 1px solid var(--border, #e6ebf5) !important;
}

.sidebar-collapse .ant-collapse-item:last-child {
  border-bottom: none !important;
}

.sidebar-collapse .ant-collapse-header {
  padding: 12px 20px !important;
  align-items: center !important;
}

.sidebar-collapse .ant-collapse-content-box {
  padding: 0 !important;
}

.collapse-header-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px; /* 给折叠图标留点空间 */
}

.notebooks-title,
.files-title {
  font-size: 12px;
  font-weight: 720;
  color: var(--text-secondary, #5a6b86);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
}

.action-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #e6ebf5);
  font-size: 12px;
  font-weight: 560;
  color: var(--text-secondary, #5a6b86);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface, #fff);
}

.action-btn:hover {
  background: var(--brand-soft, #eaf1ff) !important;
  border-color: var(--brand, #1e5eff) !important;
  color: var(--brand, #1e5eff) !important;
}

/* 面板分组标题（如 DATASETS） */
.panel-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #93a1b8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 6px 6px;
}

.section-label {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #93a1b8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



/* No input state */
.no-input-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}

.no-input-icon {
  margin-bottom: 16px;
  width: 80px;
  height: 80px;
  background: #f0f9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-input-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.no-input-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.notebook-item {
  padding: 8px 10px !important;
  border-radius: 9px !important;
  margin-bottom: 2px !important;
  background: transparent !important;
  color: var(--text-secondary, #5a6b86) !important;
  font-weight: 520 !important;
  border-bottom: none !important;
}

.notebook-item:hover {
  background: var(--surface-3, #f1f5fb) !important;
}

.notebook-item.isSelected {
  background: var(--brand-soft, #eaf1ff) !important;
  border-radius: 9px !important;
  color: var(--brand, #1e5eff) !important;
  font-weight: 640 !important;
}

.notebook-item.isSelected span {
  color: var(--brand, #1e5eff) !important;
}

.notebook-item span {
  font-size: 13px;
}

/* 移除 Ant Design List 默认分隔线 */
.notebooks-content .ant-list-item {
  border-bottom: none !important;
}

/* Dropdown 按钮悬浮显示效果 */
.notebook-item-actions {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.notebook-item:hover .notebook-item-actions {
  opacity: 1;
}

/* Tree 样式覆盖 */
.ant-tree {
  background: transparent !important;
}

.ant-tree .ant-tree-treenode {
  padding: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.ant-tree-node-content-wrapper {
  padding: 5px 8px !important;
  margin: 0 6px !important;
  border-radius: 8px !important;
  width: 100% !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  transition: background 0.14s ease;
}

.ant-tree-node-content-wrapper:hover {
  background-color: var(--surface-3, #f1f5fb) !important;
}

/* 当 hover Tree 节点时显示文件操作按钮 */
.ant-tree-node-content-wrapper:hover .file-actions {
  opacity: 1 !important;
}

/* 选中态：antd v5 中 .ant-tree-node-selected 就在内容包装元素本身 */
.ant-tree-node-content-wrapper.ant-tree-node-selected {
  background-color: var(--brand-soft, #eaf1ff) !important;
}

.ant-tree-title {
  color: var(--text, #0d1730) !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  width: 100% !important;
  flex: 1 !important;
  display: block !important;
}

.ant-tree-node-selected .ant-tree-title {
  color: var(--brand, #1e5eff) !important;
  font-weight: 640 !important;
}

.ant-tree-switcher {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  margin-right: 2px !important;
  color: var(--text-muted, #93a1b8) !important;
}

.ant-tree-switcher:hover {
  color: var(--brand, #1e5eff) !important;
}

/* 文件夹 / 文件图标配色 */
.ant-tree-iconEle .anticon[aria-label='folder'],
.ant-tree-iconEle .anticon[aria-label='folder-open'] {
  color: var(--warning-color, #e08a00);
}

.ant-tree-iconEle .anticon[aria-label='file'] {
  color: var(--text-muted, #93a1b8);
}

.ant-tree-iconEle .anticon[aria-label='file-image'] {
  color: var(--purple-color, #7c5cff);
}

/* 隐藏 tree 默认图标的内边距 */
.ant-tree .ant-tree-indent-unit {
  width: 14px !important;
}

/* 调整 Tree 图标间距 */
.ant-tree .ant-tree-iconEle {
  width: 18px !important;
  margin-right: 6px !important;
}

/* 调整文件树的左侧padding */
.files-content .ant-tree,
.outputs-content .ant-tree {
  padding-left: 0 !important;
}

/* 调整第一层节点的左侧缩进 */
.ant-tree .ant-tree-treenode[data-level="0"] {
  padding-left: 0 !important;
}

/* Outputs 文件节点样式 */
.file-node-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
  flex: 1 !important;              /* 占据剩余空间 */
}

.file-node-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  display: block;
}

.file-actions {
  flex-shrink: 0 !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.file-node-title:hover .file-actions {
  opacity: 1 !important;
}

/* 工作台「Machine」面板：当前实例信息卡（对齐模板 oa-* 令牌） */

.iic {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iic-loading {
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.iic-empty-text {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.iic-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iic-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.iic-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iic-uuid {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iic-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--sidebar-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
}

.iic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
}

.iic-row-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.iic-row-value {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iic-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.iic-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.ocean-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  overflow: hidden;
  font-family: var(--font-family);
}

/* collapsed 收缩状态 */
.ocean-sidebar.collapsed {
  width: 64px;
}

.sidebar-item-label {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.sidebar-item-text {
  transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  opacity: 1;
  white-space: nowrap;
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.collapsed .sidebar-item-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-5px);
}

/* 收缩状态下隐藏 Collapse 的内容 */
.collapsed .ant-collapse-content {
  display: none !important;
}

.collapsed .ant-collapse-header {
  padding: 12px 0 !important;
  justify-content: center !important;
}

.collapsed .sidebar-item-label {
  justify-content: center;
  width: 100%;
  gap: 0;
  cursor: pointer;
}

/* 收缩状态下的增强悬停效果 */
.collapsed .ant-collapse-header {
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.collapsed .ant-collapse-header:hover {
  background: var(--sidebar-hover) !important;
  border-radius: 8px;
}

.collapsed .ant-collapse-header:hover .sidebar-item-icon {
  transform: scale(1.15);
  color: var(--text-primary);
}

.sidebar-item-icon {
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sidebar-content-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.sidebar-content-wrapper .ant-collapse-item {
  padding: 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
}

/* 最后一个模块不需要底部边框 */
.sidebar-content-wrapper .ant-collapse-item:last-child {
  border-bottom: none !important;
}

/* 收起状态下隐藏分割线 */
.collapsed .sidebar-content-wrapper .ant-collapse-item {
  border-bottom: none !important;
}

/* Collapse面板头部样式 */
.sidebar-content-wrapper .ant-collapse-header {
  padding: 12px 12px 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0;
}

.sidebar-content-wrapper .ant-collapse-expand-icon {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ant-collapse-content-box {
  padding: 12px !important;
}

/* 覆盖 ProjectPanel 的默认内边距 */
.ocean-sidebar .project-panel {
  padding: 0;
}

.ocean-sidebar .notebooks-header,
.ocean-sidebar .files-header,
.ocean-sidebar .machine-section-header {
  padding: 12px 20px;
  background: transparent;
}

.ocean-sidebar .notebooks-title,
.ocean-sidebar .files-title,
.ocean-sidebar .machine-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ocean-sidebar .files-tabs {
  margin: 0 12px 8px;
  padding: 2px !important;
  background: var(--sidebar-hover) !important;
  border-radius: 6px;
  border: none !important;
}

.ocean-sidebar .files-tabs .ant-btn {
  flex: 1;
  border: none;
  box-shadow: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
}

.ocean-sidebar .files-tabs .ant-btn-primary {
  background: var(--card-bg) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

/* Action buttons hover effect */
.sidebar-action-buttons {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 4px;
  height: 20px;
}

.sidebar-action-buttons svg {
  display: block;
  flex-shrink: 0;
}

.sidebar-panel-header {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0;
}

.sidebar-panel-header:hover .sidebar-action-buttons {
  opacity: 1;
}

/* Tree 容器内边距（节点样式见 ProjectPanel.css） */
.sidebar-content-wrapper .files-content .ant-tree,
.sidebar-content-wrapper .outputs-content .ant-tree {
  padding-left: 0 !important;
}

/* ============================================================
   对齐原型：左侧文件栏
   ============================================================ */
.ocean-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
}

/* 分区标题（Notebooks / Input / Output / Machine） */
.sidebar-item-text {
  font-size: 12.5px !important;
  font-weight: 680 !important;
  color: var(--text) !important;
}

.sidebar-item-icon {
  color: var(--brand) !important;
}

.sidebar-content-wrapper .ant-collapse-header {
  border-radius: 10px !important;
  transition: background 0.15s ease;
}

.sidebar-content-wrapper .ant-collapse-header:hover {
  background: var(--surface-3);
}
/**
 * ResizableSider Styles
 */

.resizable-sider {
  position: relative;
  transition: none !important; /* 禁用 antd 默认的过渡效果 */
}

/* 拖拽手柄 - 缩小一半 */
.sider-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  cursor: col-resize;
  background: transparent;
  z-index: 100;
  transition: background 0.2s;
}

.sider-resize-handle:hover {
  background: var(--primary-color);
  opacity: 0.5;
}

.sider-resize-handle:active {
  background: var(--primary-color);
  opacity: 0.8;
}

/* 拖拽时的视觉反馈 */
.resizable-sider:has(.sider-resize-handle:active) {
  box-shadow: 0 0 10px rgba(53, 126, 199, 0.3);
}
/* ===== 工作台 - 企业控制台风格 ===== */

.oa-wb {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: var(--content-bg);
  color: var(--text-primary);
  padding: 24px;
  box-sizing: border-box;
}

/* ---- 页头 ---- */
.oa-wb-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.oa-wb-crumb {
  font-size: 12px;
}

.oa-wb-crumb .ant-breadcrumb-separator {
  color: var(--text-muted);
}

.oa-wb-title {
  font-size: var(--font-size-title);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 4px 0 0;
}

/* ---- 当前实例横幅 ---- */
.oa-wb-instance {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.oa-wb-instance-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: var(--font-size-xs);
  color: var(--primary-color);
  background: var(--primary-bg);
  border-radius: 4px;
}

.oa-wb-instance-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-wb-instance-meta {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-wb-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.oa-wb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* ---- 统计概览 ---- */
.oa-wb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.oa-wb-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.2s ease;
}

.oa-wb-stat:hover {
  box-shadow: var(--card-shadow-hover);
}

.oa-wb-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.oa-wb-stat-content {
  flex: 1;
  min-width: 0;
}

.oa-wb-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.oa-wb-stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ---- 列表卡片 ---- */
.oa-wb-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.oa-wb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.oa-wb-tabs {
  display: flex;
  align-self: stretch;
  gap: 4px;
}

.oa-wb-tab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: color 0.2s;
}

.oa-wb-tab:hover {
  color: var(--text-primary);
}

.oa-wb-tab.is-active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.oa-wb-count {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  background: var(--sidebar-hover);
  border-radius: 999px;
  padding: 1px 8px;
}

.oa-wb-tab.is-active .oa-wb-count {
  background: var(--primary-bg);
  color: var(--primary-color);
}

.oa-wb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  padding: 5px 10px;
  border: 1px solid var(--border-color-base);
  border-radius: 6px;
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.oa-wb-search:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.oa-wb-search-icon {
  color: var(--text-muted);
  font-size: 14px;
}

.oa-wb-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  font-family: inherit;
}

.oa-wb-search-input::-moz-placeholder {
  color: var(--text-muted);
}

.oa-wb-search-input::placeholder {
  color: var(--text-muted);
}

/* ---- 表格 ---- */
.oa-wb-card-body .ant-table {
  font-size: 13px;
}

.oa-wb-card-body .ant-table-thead > tr > th {
  background: #fafafa;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
}

.oa-wb-card-body .ant-table-tbody > tr > td {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.oa-wb-card-body .ant-table-tbody > tr:hover > td {
  background: var(--primary-light);
}

.oa-wb-card-body .ant-table-cell-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.oa-wb-card-body .ant-pagination {
  margin: 0;
  padding: 12px 16px;
}

.oa-wb-card-body .ant-empty {
  margin-block: 32px;
}

/* ---- 表格内容 ---- */
.oa-wb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100%;
  min-width: 0;
}

.oa-wb-link-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  font-size: 15px;
}

.oa-wb-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-wb-link:hover .oa-wb-link-text {
  color: var(--primary-color);
}

.oa-wb-title-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.oa-wb-time {
  color: var(--text-secondary);
  font-size: 13px;
}

.oa-wb-tag {
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
  margin-inline-end: 0;
}

.oa-wb-tag-private {
  background: var(--sidebar-hover);
  color: var(--text-secondary);
  border: none;
}

.oa-wb-tag-public {
  background: var(--primary-bg);
  color: var(--primary-color);
  border: none;
}

.oa-wb-actions .ant-btn {
  border-radius: 4px;
}

.oa-wb-actions .ant-btn-default,
.oa-wb-actions .ant-btn-text {
  color: var(--text-secondary);
}

.oa-wb-actions .ant-btn-text:hover {
  color: var(--primary-color);
  background: var(--primary-bg);
}

/* ---- 响应式 ---- */
@media (max-width: 1200px) {
  .oa-wb-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .oa-wb {
    padding: 16px;
  }

  .oa-wb-stats {
    grid-template-columns: 1fr;
  }

  .oa-wb-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .oa-wb-search {
    width: 100%;
  }
}
/**
 * FilePreviewModal Styles
 */

.file-preview-modal .ant-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow: auto;
}

.file-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: #8c8c8c;
}

.file-preview-error {
  padding: 40px 20px;
  text-align: center;
}

.file-preview-error .error-message {
  color: #ff4d4f;
  font-size: 14px;
}

.file-preview-empty {
  padding: 40px 20px;
  text-align: center;
  color: #8c8c8c;
}

.file-preview-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 16px;
}

.file-preview-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.file-preview-text {
  background: #1e1e1e;
  border-radius: 4px;
  padding: 16px;
  overflow: auto;
  max-height: 60vh;
}

.file-preview-text pre {
  margin: 0;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
/* Workspace embedded in unified MainLayout */

/* 工作台根容器：顶栏 / 标签条固定在上，仅下方三栏区域横向滚动 */
.oa-workspace-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--content-grad);
  background-attachment: fixed;
  font-family: var(--font-family);
}

.oa-workspace-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--content-bg);
}

.oa-workspace-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.oa-workspace-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- 对齐原型：工作台外壳背景 ---------- */
.oa-workspace-shell {
  background: var(--content-grad);
  background-attachment: fixed;
}

/* ============================================================
   对齐原型：右侧面板改为文档流内的第三栏
   （原先为 position:fixed 悬浮 + 编辑器 margin-right 让位，
     现改为三栏 flex 平铺，避免重叠与挤压）
   ============================================================ */
.oa-workspace-shell .unified-sidebar {
  position: static !important;
  top: auto !important;
  right: auto !important;
  height: auto !important;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: none;
}

.oa-workspace-shell .ocean-agent-document-editor,
.oa-workspace-shell .paithon-document-editor {
  margin-right: 0 !important;
}

.oa-workspace-shell .ocean-agent-document-editor-container,
.oa-workspace-shell .paithon-document-editor-container {
  height: 100% !important;
  align-items: stretch;
}

/* 面板收起时的圆形切换按钮改为贴边竖条，减少悬浮感 */
.oa-workspace-shell .sidebar-toggle-button {
  bottom: 18px;
  width: 26px;
  height: 26px;
}

/* 窄视口下保证中栏可用：外壳可横向滚动，中间栏不低于 700px */
.oa-workspace-shell {
  overflow-x: auto;
  overflow-y: hidden;
}

.oa-workspace-shell .oa-workspace-body {
  min-width: 700px;
}

.oa-workspace-shell .unified-sidebar {
  flex: 0 0 auto;
}
/* Account Switch Modal Styles */

.account-switch-modal .account-list {
  max-height: 400px;
  overflow-y: auto;
}

.account-switch-modal .account-item {
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
  cursor: pointer;
}

.account-switch-modal .account-item:hover {
  background-color: #f5f5f5;
}

.account-switch-modal .account-item.current-account {
  background-color: #f0f9ff;
  border: 1px solid #91caff;
}

.account-switch-modal .account-item.current-account:hover {
  background-color: #e6f4ff;
}

.account-switch-modal .ant-list-item-meta-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.account-switch-modal .ant-list-item-action {
  margin-left: 16px;
}

.account-switch-modal .ant-list-item-action > li {
  padding: 0 4px;
}
/* ApiFly App Styles - Aligned with Template Theme */

/* Layout */
.app-layout {
  min-height: 100vh;
  background: var(--content-bg);
  overflow: hidden;
}

/* Content Area */
.app-content-layout {
  background: var(--content-bg);
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  height: calc(100% - 56px);
}

/* Sider */
.app-sider {
  background: var(--card-bg) !important;
  overflow: visible;
  box-shadow: none;
  height: 100%;
  position: sticky;
  top: 0;
}

/* Right Sidebar - for AI Chat, Comments, History */
.right-sider,
.ai-chat-sider {
  border-left: 1px solid var(--border-color);
  background: var(--card-bg) !important;
  height: 100% !important;
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
}

/* Editor Layout */
.editor-layout {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

/* Main Content */
.app-main-content {
  flex: 1;
  background: var(--content-bg);
  padding: 0;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

/* Ant Design Customization */
.ant-layout-sider {
  background: var(--card-bg);
}

.ant-tree {
  background: transparent;
  color: var(--text-primary);
}

.ant-tree-node-content-wrapper {
  color: var(--text-primary);
}

.ant-tree-node-content-wrapper:hover {
  background-color: var(--primary-bg);
}

.ant-tree-node-selected .ant-tree-node-content-wrapper {
  background-color: var(--primary-bg) !important;
}

.ant-tree-title {
  color: var(--text-primary);
}

/* Utility Classes */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.h-full {
  height: 100%;
}

.text-center {
  text-align: center;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
/* Import Inter font */
/* Inter Font Family - Variable Fonts */
/* 使用变量字体以获得最佳性能和完整的字重支持 (100-900) */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/InterVariable-DiVDrmQJ.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter var';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/InterVariable-Italic-FCBEiFp6.woff2') format('woff2');
}
/* Static fonts fallback for older browsers */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/assets/Inter-Thin-DzN99i8q.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url('/assets/Inter-ThinItalic-DxehbPeK.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/assets/Inter-ExtraLight-7kXoOaX_.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url('/assets/Inter-ExtraLightItalic-Ox17i_b0.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/Inter-Light-14LG-y7V.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/Inter-LightItalic-iBr7p6CH.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/Inter-Regular-COLGFB3M.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/Inter-Italic-Bm_w1qmz.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/Inter-Medium-CDhBSFyE.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/Inter-MediumItalic-BqDObnQN.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/Inter-SemiBold-BAEEcJ4E.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/Inter-SemiBoldItalic-B7KOJJiL.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/Inter-Bold-BOs3KVhN.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/Inter-BoldItalic-Cabj1n7x.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/Inter-ExtraBold-BUaDDWMS.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/Inter-ExtraBoldItalic-efVpd_pq.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/Inter-Black-BJbWHna9.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/Inter-BlackItalic-D3PIgx41.woff2') format('woff2');
}
/* 推荐使用方式�?:root {
  font-family: 'Inter', sans-serif;
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: 'Inter var', sans-serif;
    font-optical-sizing: auto;
  }
}
*/
/* ApiFly unified theme (template style) */
:root {
  /* ============================================================
     设计令牌 · 深海科技亮色（对齐原型）
     ============================================================ */

  /* 品牌色 */
  --brand: #1e5eff;
  --brand-2: #12c3e6;
  --brand-grad: linear-gradient(135deg, #1e5eff 0%, #12c3e6 100%);
  --brand-soft: #eaf1ff;

  /* Primary（兼容旧命名） */
  --primary-color: #1e5eff;
  --primary-hover: #1550e6;
  --primary-active: #0f43c9;
  --primary-bg: #eaf1ff;
  --primary-light: #f2f6ff;

  /* 表面 / 背景 */
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #f1f5fb;
  --content-bg: #eef2f9;
  --content-grad:
    radial-gradient(1200px 600px at 80% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 55%),
    radial-gradient(900px 500px at -10% 110%, #cffafe 0%, rgba(207, 250, 254, 0) 55%),
    #eef2f9;
  --page-bg: transparent;
  --page-padding: 26px 30px 60px;

  /* 文字 */
  --text: #0d1730;
  --text-primary: #0d1730;
  --text-secondary: #5a6b86;
  --text-muted: #93a1b8;
  --text-disabled: #b6c2d8;
  --text-link: #1e5eff;

  /* 边框 */
  --border: #e6ebf5;
  --border-strong: #d8e0ee;
  --border-color: #e6ebf5;
  --border-color-base: #d8e0ee;

  /* 圆角 */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --card-radius: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(16, 32, 72, 0.06);
  --shadow-md: 0 6px 20px -6px rgba(16, 32, 72, 0.12);
  --shadow-lg: 0 18px 48px -18px rgba(16, 32, 72, 0.28);
  --card-shadow: 0 1px 2px rgba(16, 32, 72, 0.06);
  --card-shadow-hover: 0 6px 20px -6px rgba(16, 32, 72, 0.12);
  --card-border: #e6ebf5;
  --card-bg: #ffffff;

  /* 状态色 */
  --success-color: #0ea472;
  --success-bg: #e6f7f0;
  --warning-color: #e08a00;
  --warning-bg: #fdf3e2;
  --error-color: #e5484d;
  --error-bg: #fdecec;
  --processing-color: #2f74ff;
  --processing-bg: #eaf1ff;
  --default-color: #93a1b8;
  --info-color: #2f74ff;
  --info-bg: #eaf1ff;
  --purple-color: #7c5cff;
  --purple-bg: #f0ecff;

  /* 侧边栏 */
  --sidebar-bg: #ffffff;
  --sidebar-dark: #f7f8fa;
  --sidebar-text: #5a6b86;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: #f1f5fb;
  --sidebar-active: linear-gradient(135deg, #1e5eff 0%, #12c3e6 100%);
  --sidebar-active-border: #1e5eff;
  --sidebar-border: #e6ebf5;
  /* 应用导航宽度（与工作台右侧面板的 --sidebar-width 解耦） */
  --app-sidebar-width: 250px;
  --app-sidebar-collapsed-width: 72px;

  /* 布局 */
  --top-header-height: 66px;
  --top-header-bg: #ffffff;
  --top-header-text: #0d1730;
  --top-header-text-muted: #5a6b86;
  --top-header-hover: #f1f5fb;
  --header-height: var(--top-header-height);
  --card-padding: 20px;

  /* 字体 */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  --font-size-base: 14px;
  --font-size-sm: 13px;
  --font-size-xs: 12px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-title: 22px;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
}
/* Common button styles aligned with theme */
/**
 * Figma-Aligned Button Styles - Mapped to ApiFly Template Theme
 */
/* Run Button - Primary Action */
.btn-run {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--card-shadow);
}
.btn-run:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.btn-run:active {
  transform: translateY(1px);
}
/* New Conversation Button */
.btn-new-conversation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-base);
  border-radius: 100px;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.btn-new-conversation:hover {
  background: var(--primary-bg);
  border-color: var(--primary-color);
}
/* Share Button */
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-base);
  border-radius: 100px;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-share:hover {
  background: var(--primary-bg);
}
/* Start Machine Button */
.btn-start-machine {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--card-shadow);
}
.btn-start-machine:hover {
  background: var(--primary-bg);
}
/* Confirm Button */
.btn-confirm {
  padding: 12px 32px;
  background: var(--primary-bg);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-confirm:hover {
  background: var(--primary-color);
  color: #fff;
}
/* Edit Button with Dropdown */
.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--card-shadow);
}
.btn-edit:hover {
  background: var(--primary-color);
  color: #fff;
}
/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color-base);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--content-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
/* Icon Button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--primary-bg);
  color: var(--primary-color);
}
/* Small Action Button */
.btn-action-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-sm:hover {
  background: var(--primary-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
/* Disabled State */
.btn-run:disabled,
.btn-new-conversation:disabled,
.btn-share:disabled,
.btn-start-machine:disabled,
.btn-confirm:disabled,
.btn-edit:disabled,
.btn-secondary:disabled,
.btn-action-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Loading State */
.btn-loading {
  position: relative;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Ant Design overrides aligned with theme */
/**
 * Ant Design Component Overrides - Aligned with ApiFly Template Theme
 */
/* Buttons */
.ant-btn {
  font-family: var(--font-family);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.ant-btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.ant-btn-primary:hover,
.ant-btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.ant-btn-default {
  border-color: var(--border-color-base);
  color: var(--text-primary);
  background: #fff;
}
.ant-btn-default:hover,
.ant-btn-default:focus {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.ant-btn-text {
  color: var(--text-secondary);
}
.ant-btn-text:hover,
.ant-btn-text:focus {
  color: var(--primary-color);
  background: rgba(24, 144, 255, 0.06);
}
/* Input */
.ant-input,
.ant-input-textarea {
  border-color: var(--border-color-base);
  border-radius: 8px;
  font-family: var(--font-family);
  color: var(--text-primary);
}
.ant-input:hover,
.ant-input-textarea:hover,
.ant-input:focus,
.ant-input-textarea:focus {
  border-color: var(--primary-color);
}
.ant-input:focus,
.ant-input-textarea:focus {
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}
/* Select */
.ant-select-selector {
  border-color: var(--border-color-base) !important;
  border-radius: 8px !important;
  font-family: var(--font-family);
}
.ant-select-focused .ant-select-selector {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1) !important;
}
/* Modal */
.ant-modal-content {
  border-radius: 12px;
}
.ant-modal-header {
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
}
.ant-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.ant-modal-footer {
  border-top: 1px solid var(--border-color);
}
/* Dropdown */
.ant-dropdown-menu {
  border-radius: 8px;
}
.ant-dropdown-menu-item {
  color: var(--text-primary);
}
.ant-dropdown-menu-item:hover {
  background: var(--primary-bg);
  color: var(--primary-color);
}
/* Tree */
.ant-tree {
  font-family: var(--font-family);
  color: var(--text-primary);
}
.ant-tree .ant-tree-node-content-wrapper:hover {
  background: var(--primary-bg);
}
.ant-tree .ant-tree-node-selected .ant-tree-node-content-wrapper {
  background: var(--primary-bg) !important;
  color: var(--primary-color);
}
.ant-tree .ant-tree-switcher {
  color: var(--text-secondary);
}
/* Avatar */
.ant-avatar {
  background: var(--primary-color);
  font-family: var(--font-family);
}
/* Message / Notification */
.ant-message-notice-content {
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}
/* Tabs */
.ant-tabs-tab {
  font-family: var(--font-family);
  color: var(--text-secondary);
}
.ant-tabs-tab:hover {
  color: var(--primary-hover);
}
.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--primary-color);
  font-weight: 600;
}
.ant-tabs-ink-bar {
  background: var(--primary-color);
}
/* Card */
.ant-card {
  border-radius: var(--card-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.ant-card-head {
  border-bottom: 1px solid var(--card-border);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
/* Divider */
.ant-divider {
  border-color: var(--border-color);
}
/* Layout */
.ant-layout-header {
  background: var(--card-bg);
  padding: 0;
}
.ant-layout-sider {
  background: var(--card-bg);
}
.ant-layout-content {
  background: var(--content-bg);
}
/* Tooltip */
.ant-tooltip-inner {
  border-radius: 6px !important;
}
/* Notification width */
.ant-notification-notice {
  min-width: 320px;
  max-width: 600px;
}
.ant-notification-notice-message,
.ant-notification-notice-description {
  word-break: break-word;
  white-space: normal;
}
/* Table */
.ant-table {
  color: var(--text-primary);
}
.ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}
.ant-table-tbody > tr > td {
  border-bottom: 1px solid var(--border-color);
}
.ant-table-tbody > tr:hover > td {
  background: var(--primary-bg);
}
/* Pagination */
.ant-pagination-item-active {
  border-color: var(--primary-color);
}
.ant-pagination-item-active a {
  color: var(--primary-color);
}
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, Inter var, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }
  .container {
    max-width: 1536px;
  }
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.right-0 {
  right: 0px;
}
.right-2 {
  right: 0.5rem;
}
.top-0 {
  top: 0px;
}
.top-2 {
  top: 0.5rem;
}
.z-50 {
  z-index: 50;
}
.-m-2 {
  margin: -0.5rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-8 {
  margin-left: 2rem;
}
.mr-8 {
  margin-right: 2rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.\!inline {
  display: inline !important;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-12 {
  height: 3rem;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-64 {
  height: 16rem;
}
.h-8 {
  height: 2rem;
}
.h-\[80vh\] {
  height: 80vh;
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.max-h-32 {
  max-height: 8rem;
}
.w-12 {
  width: 3rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-8 {
  width: 2rem;
}
.w-96 {
  width: 24rem;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-full {
  min-width: 100%;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-\[80\%\] {
  max-width: 80%;
}
.max-w-full {
  max-width: 100%;
}
.max-w-md {
  max-width: 28rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {
  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-pointer {
  cursor: pointer;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.list-decimal {
  list-style-type: decimal;
}
.list-disc {
  list-style-type: disc;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-gray-700 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-divide-opacity, 1));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-r {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-r {
  border-right-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-t-2 {
  border-top-width: 2px;
}
.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}
.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.border-green-400 {
  --tw-border-opacity: 1;
  border-color: rgb(74 222 128 / var(--tw-border-opacity, 1));
}
.border-pink-700 {
  --tw-border-opacity: 1;
  border-color: rgb(190 24 93 / var(--tw-border-opacity, 1));
}
.border-yellow-400 {
  --tw-border-opacity: 1;
  border-color: rgb(250 204 21 / var(--tw-border-opacity, 1));
}
.border-yellow-500 {
  --tw-border-opacity: 1;
  border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}
.border-opacity-30 {
  --tw-border-opacity: 0.3;
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-gray-900\/60 {
  background-color: rgb(17 24 39 / 0.6);
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-orange-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 88 12 / var(--tw-bg-opacity, 1));
}
.bg-pink-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(131 24 67 / var(--tw-bg-opacity, 1));
}
.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-red-900\/20 {
  background-color: rgb(127 29 29 / 0.2);
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
.bg-yellow-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(113 63 18 / var(--tw-bg-opacity, 1));
}
.bg-opacity-10 {
  --tw-bg-opacity: 0.1;
}
.bg-opacity-40 {
  --tw-bg-opacity: 0.4;
}
.bg-opacity-5 {
  --tw-bg-opacity: 0.05;
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.bg-opacity-80 {
  --tw-bg-opacity: 0.8;
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-600 {
  --tw-gradient-from: #2563eb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-purple-600 {
  --tw-gradient-to: #9333ea var(--tw-gradient-to-position);
}
.fill-current {
  fill: currentColor;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.not-italic {
  font-style: normal;
}
.leading-6 {
  line-height: 1.5rem;
}
.leading-7 {
  line-height: 1.75rem;
}
.text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-green-300 {
  --tw-text-opacity: 1;
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}
.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.text-pink-300 {
  --tw-text-opacity: 1;
  color: rgb(249 168 212 / var(--tw-text-opacity, 1));
}
.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.decoration-2 {
  text-decoration-thickness: 2px;
}
.opacity-0 {
  opacity: 0;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-75 {
  opacity: 0.75;
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 使用变量字体增强（如果浏览器支持�?*/
@supports (font-variation-settings: normal) {
  body {
    font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
  }
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}
#root {
  height: 100vh;
}
/* Monaco Editor styles */
.monaco-editor {
  padding: 0 !important;
}
/* 移除 Monaco Editor 的焦点阴�?*/
.monaco-editor .monaco-editor-background,
.monaco-editor .inputarea.ime-input,
.monaco-editor .cursors-layer,
.monaco-editor .view-line,
.monaco-editor,
.monaco-editor.focused {
  box-shadow: none !important;
}
/* 移除编辑器容器的阴影 */
.monaco-editor .overflow-guard {
  box-shadow: none !important;
}
/* Markdown prose styles for dark mode */
.prose-invert {
  color: #e5e7eb;
}
.prose-invert h1,
.prose-invert h2,
.prose-invert h3,
.prose-invert h4,
.prose-invert h5,
.prose-invert h6 {
  color: #f3f4f6;
}
.prose-invert a {
  color: #60a5fa;
}
.prose-invert code {
  color: #fbbf24;
  background-color: #374151;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}
.prose-invert pre {
  background-color: #1f2937;
  color: #e5e7eb;
}
.prose-invert blockquote {
  border-left-color: #4b5563;
  color: #9ca3af;
}
/* 全局滚动条样�?- 默认隐藏，hover时显示主题色 */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover {
  scrollbar-color: #BFBFBF transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 4px;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}
*:hover::-webkit-scrollbar-thumb {
  background-color: #BFBFBF;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: #BFBFBF;
}
.last\:mb-0:last-child {
  margin-bottom: 0px;
}
.hover\:border-gray-600:hover {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.hover\:bg-orange-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(194 65 12 / var(--tw-bg-opacity, 1));
}
.hover\:bg-purple-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:bg-yellow-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(161 98 7 / var(--tw-bg-opacity, 1));
}
.hover\:bg-opacity-30:hover {
  --tw-bg-opacity: 0.3;
}
.hover\:from-blue-700:hover {
  --tw-gradient-from: #1d4ed8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-purple-700:hover {
  --tw-gradient-to: #7e22ce var(--tw-gradient-to-position);
}
.hover\:text-blue-300:hover {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}
.hover\:text-gray-200:hover {
  --tw-text-opacity: 1;
  color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.hover\:text-red-400:hover {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hover\:decoration-blue-300:hover {
  text-decoration-color: #93c5fd;
}
.focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:bg-gray-700:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
