/* ===== 小A来单 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #6366F1;        /* 主色：靛蓝 */
  --primary-light: #A78BFA;  /* 浅紫 */
  --primary-dark: #4F46E5;
  --primary-soft: rgba(99, 102, 241, .09);
  --accent: #8B5CF6;         /* 辅助：紫 */
  --bg: #F4F6F8;
  --card: #fff;
  --text: #1F2937;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(17, 42, 66, .07);
  --sidebar-w: 220px;
  /* 蓝紫渐变（主按钮/顶栏/主视觉） */
  --gradient: linear-gradient(120deg, #4338CA, #6366F1 52%, #8B5CF6);
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ===== 顶栏 ===== */
.topbar {
  height: 58px; display: flex; align-items: center; padding: 0 22px;
  background: var(--gradient);
  color: #fff; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 14px rgba(79, 70, 229, .35);
}
.topbar-logo { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #fff; }
.topbar-logo span { background: rgba(255, 255, 255, .18); padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 400; }
.topbar-nav { display: flex; gap: 4px; margin-left: 30px; }
.topbar-nav a { padding: 8px 18px; border-radius: 8px; color: rgba(255, 255, 255, .72); font-size: 14px; transition: all .15s; }
.topbar-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.topbar-nav a.active { background: rgba(255, 255, 255, .22); color: #fff; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-icon { font-size: 17px; opacity: .85; }
.topbar-right .user-info { display: flex; align-items: center; gap: 9px; }
.topbar-right .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 600;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-size: 13px; font-weight: 600; }
.role-tag { font-size: 10px; opacity: .8; }
.btn-ghost { color: rgba(255, 255, 255, .85); padding: 7px 14px; border-radius: 8px; font-size: 13px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; }

/* ===== 布局 ===== */
.layout { display: flex; min-height: calc(100vh - 58px); }
.sidebar {
  width: var(--sidebar-w); background: var(--card); border-right: 1px solid var(--border);
  padding: 14px 0; position: fixed; top: 58px; bottom: 0; left: 0; overflow-y: auto; z-index: 900;
}
.sidebar-section-title {
  font-size: 11px; color: var(--text-light); padding: 10px 20px 5px;
  font-weight: 700; letter-spacing: .6px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px; cursor: pointer;
  color: var(--text-light); transition: all .15s; font-size: 14px;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item.active { background: var(--primary-soft); color: var(--primary-dark); border-left-color: var(--primary); font-weight: 600; }
.sidebar-item .icon { width: 20px; text-align: center; }
.main-content { flex: 1; margin-left: var(--sidebar-w); padding: 22px 26px; min-width: 0; }

/* ===== 卡片 ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title .actions { display: flex; gap: 8px; }
.card-title .sub { font-size: 12px; color: var(--text-light); font-weight: 400; }
.hero { border: none; color: #fff; background: var(--gradient); }
.hero-orange { border: none; color: #fff; background: linear-gradient(125deg, #B45309, var(--accent)); }
.hero-blue { border: none; color: #fff; background: linear-gradient(125deg, #1E40AF, var(--info)); }

/* ===== 栅格 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1200px) { .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
}

/* ===== 统计卡 ===== */
.stat-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card .stat-icon { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; }
.stat-card .stat-trend { font-size: 12px; margin-top: 5px; color: var(--text-light); }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ===== 专栏卡 ===== */
.course-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s; border: 1px solid var(--border); }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .12); }
.course-cover { height: 135px; display: flex; align-items: center; justify-content: center; font-size: 42px; color: #fff; }
.course-cover.d1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.course-cover.d2 { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.course-cover.d3 { background: linear-gradient(135deg, #3B82F6, #6366F1); }
.course-cover.d4 { background: linear-gradient(135deg, #A78BFA, #F472B6); }
.course-info { padding: 14px; }
.course-info .course-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.45; }
.course-info .course-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.course-info .course-price { font-size: 18px; font-weight: 700; color: var(--danger); }
.course-info .course-price .original { font-size: 12px; color: var(--text-light); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.course-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; margin-bottom: 6px; }
.tag-hot { background: #FEE2E2; color: #DC2626; }
.tag-new { background: #D1FAE5; color: #059669; }
.tag-live { background: #DBEAFE; color: #2563EB; }
.tag-value { background: #FEF3C7; color: #D97706; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; background: #F8FAFB; border-bottom: 2px solid var(--border); color: var(--text-light); font-weight: 600; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: #F8FAFB; }

/* ===== 徽章 / 标签 ===== */
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-success { background: #D1FAE5; color: #059669; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-danger { background: #FEE2E2; color: #DC2626; }
.badge-info { background: #DBEAFE; color: #2563EB; }
.badge-gray { background: #F3F4F6; color: #6B7280; }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.skill-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: #EDE9FE; color: #6D28D9; margin: 2px 4px 2px 0; }

/* ===== 按钮 ===== */
.btn { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: all .15s; border: none; display: inline-block; cursor: pointer; }
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: .9; color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== 任务卡 ===== */
.task-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; transition: box-shadow .2s; border-left: 4px solid var(--border); }
.task-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.task-card.internal { border-left-color: var(--info); }
.task-card.merchant { border-left-color: var(--accent); }
.task-card.enterprise { border-left-color: var(--primary); }
.task-card .task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.task-card .task-title { font-size: 15px; font-weight: 600; }
.task-card .task-budget { font-size: 18px; font-weight: 700; color: var(--danger); white-space: nowrap; }
.task-card .task-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); margin-top: 8px; flex-wrap: wrap; }
.task-card .task-desc { font-size: 13px; color: var(--text-light); margin: 8px 0; line-height: 1.6; }
.task-require { margin-top: 10px; padding: 9px 12px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; font-size: 12px; color: #92400E; line-height: 1.6; }
.task-require strong { color: #B45309; }
.task-require ul { margin: 4px 0 0; padding-left: 17px; }

/* ===== 进度条 ===== */
.progress-bar { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width .3s; background: var(--primary); }

/* 上传进度条（视频分片上传动画） */
.upload-progress { margin: 10px 0 4px; }
.upload-progress .progress-bar { height: 12px; background: #E5E7EB; border-radius: 6px; }
.upload-progress .progress-fill {
  width: 0;
  background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%,
    transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%, transparent);
  background-size: 16px 16px;
  animation: upload-stripes 0.8s linear infinite;
}
@keyframes upload-stripes { from { background-position: 16px 0; } to { background-position: 0 0; } }

/* 合并入库阶段：进度条呼吸 + 动态省略号（大文件合并耗时，给足过程反馈） */
.upload-progress.is-merging .progress-fill {
  animation: upload-stripes 0.8s linear infinite, upload-breathe 1.4s ease-in-out infinite;
}
@keyframes upload-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.upload-dots::after {
  content: "";
  animation: upload-dots 1.2s steps(4, end) infinite;
}
@keyframes upload-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ===== 标签页 / 筛选片 ===== */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab, .tabs a.tab {
  padding: 9px 20px; font-size: 14px; color: var(--text-light);
  border: none; background: transparent; border-radius: 8px 8px 0 0;
  transition: all .15s; white-space: nowrap; display: inline-block;
}
.tab:hover { color: var(--text); background: rgba(0, 0, 0, .03); }
/* 选中态：实心渐变底 + 白字（高对比，不与页面/链接色冲突） */
.tab.active, .tabs a.tab.active,
.tab.active:hover, .tabs a.tab.active:hover,
.tab.active:visited, .tabs a.tab.active:visited,
.tab.active:link, .tabs a.tab.active:link {
  color: #fff;
  background: var(--gradient);
  font-weight: 600;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip, .filter-chips a.chip {
  padding: 6px 15px; border-radius: 20px; font-size: 12px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  transition: all .15s; display: inline-block;
}
.chip:hover { border-color: var(--primary); }
.chip.active, .filter-chips a.chip.active,
.chip.active:hover, .chip.active:visited, .chip.active:link {
  background: var(--gradient); color: #fff; border-color: transparent;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-light); font-weight: 600; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
}
.radio-group { display: flex; gap: 18px; }
.radio-item { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.upload-box {
  border: 2px dashed var(--border); border-radius: 10px; padding: 22px;
  text-align: center; color: var(--text-light); cursor: pointer; transition: all .15s;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ===== 信息行 ===== */
.info-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-light); white-space: nowrap; }
.info-row .value { font-weight: 600; text-align: right; word-break: break-all; }

/* ===== flash ===== */
/* 页面级提示：固定悬浮于页面居中偏上（不受布局影响） */
.flash-layer {
  position: fixed; top: 22vh; left: 50%; transform: translateX(-50%);
  z-index: 3000; width: min(460px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.flash-layer .flash { pointer-events: auto; box-shadow: 0 10px 30px rgba(17, 42, 66, .18); margin-bottom: 0; }
.flash { padding: 11px 16px; border-radius: 9px; margin-bottom: 13px; font-size: 13px; }
.flash-success { background: #D1FAE5; color: #065F46; }
.flash-danger { background: #FEE2E2; color: #991B1B; }
.flash-warning { background: #FEF3C7; color: #92400E; }
.flash-info { background: #DBEAFE; color: #1E40AF; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 42px; color: var(--text-light); }
.empty .empty-icon { font-size: 40px; margin-bottom: 10px; opacity: .6; }

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item.completed::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item.current::before { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.timeline-title { font-weight: 600; margin-bottom: 2px; }
.timeline-desc { font-size: 12px; color: var(--text-light); }

/* ===== 聊天 ===== */
.chat-msg { display: flex; gap: 8px; margin-bottom: 12px; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-bubble { max-width: 72%; padding: 9px 13px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.chat-msg:not(.user) .chat-bubble { background: #F3F4F6; }
.chat-msg.user .chat-bubble { background: var(--primary); color: #fff; }

/* ===== 信用圈 ===== */
.credit-circle {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; border: 4px solid;
  flex-shrink: 0;
}

/* ===== 架构图 ===== */
.arch-layer { padding: 15px; border-radius: 10px; margin-bottom: 8px; text-align: center; font-weight: 700; color: #fff; }
.arch-entry { background: #0D9488; }
.arch-business { background: #6366F1; }
.arch-support { background: #EC4899; }
.arch-infra { background: #F59E0B; }
.arch-boxes { display: flex; gap: 8px; justify-content: center; margin-top: 9px; flex-wrap: wrap; }
.arch-box { background: rgba(255, 255, 255, .22); padding: 7px 15px; border-radius: 7px; font-size: 12px; font-weight: 400; }

/* ===== 流程条 ===== */
.flow-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.flow-strip .step { padding: 8px 16px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.flow-strip .arrow { color: var(--text-light); }

/* ===== 登录/注册/重置（无侧边栏页，水平垂直居中） ===== */
.main-content.no-sidebar { margin-left: 0; padding: 0; display: flex; }
.auth-wrap {
  flex: 1; min-height: calc(100vh - 58px);
  display: flex; align-items: center; justify-content: center; padding: 30px 16px;
}
.auth-card { width: 420px; max-width: 100%; background: var(--card); border-radius: 16px; box-shadow: 0 12px 40px rgba(17, 42, 66, .13); padding: 34px; }
.auth-card h2 { font-size: 21px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-light); font-size: 13px; margin-bottom: 22px; }

/* ===== 首页落地（无顶栏，整屏居中） ===== */
.landing-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
  background: var(--bg);
}
.landing-title { font-size: 44px; font-weight: 700; margin: 0; letter-spacing: 2px; }

/* ===== 分页/条目 ===== */
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item .grow { flex: 1; min-width: 0; }

/* ===== 信用分级格 ===== */
.credit-level { flex: 1; min-width: 170px; padding: 16px; border-radius: 10px; text-align: center; }
.credit-level .lv { font-size: 22px; font-weight: 700; }

/* ===== 其他 ===== */
.text-muted { color: var(--text-light); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.w-100 { width: 100%; }
::webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 榜单展示（演示页） ===== */
.rank-board .rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 9px; }
.rank-board .rank-row + .rank-row { border-top: 1px dashed var(--border); }
.rank-board .rank-row.rank-top { background: #FFFBEB; border-top-color: transparent; }
.rank-board .rank-row.rank-me { outline: 1.5px solid #F59E0B; outline-offset: -1.5px; }
.rank-no { width: 30px; text-align: center; font-weight: 700; color: var(--text-light); flex-shrink: 0; }
.rank-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rank-name { font-size: 14px; font-weight: 600; }
.rank-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 10px; font-weight: 700; color: #B45309; background: #FDE68A; border-radius: 8px; vertical-align: 1px; }
.rank-value { font-size: 13px; font-weight: 700; color: var(--primary-dark, #4338CA); white-space: nowrap; }

/* ===== 接单要求高亮块（任务详情） ===== */
.task-require-highlight { margin: 14px 0; padding: 16px 18px; background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 2px solid #F59E0B; border-radius: 12px; box-shadow: 0 4px 14px rgba(245, 158, 11, .18); }
.task-require-highlight .require-title { font-size: 17px; font-weight: 800; color: #92400E; margin-bottom: 8px; }
.task-require-highlight ul { margin: 0; padding-left: 20px; }
.task-require-highlight li { font-size: 15px; font-weight: 600; color: #78350F; line-height: 1.9; }
.task-require-highlight li strong { color: #B45309; font-size: 16px; }
.task-require-highlight .require-tip { margin-top: 8px; font-size: 13px; font-weight: 700; color: #9a3412; }

/* ===== 整卡可点击（任务卡片 → 详情） ===== */
a.task-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.task-card:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
a.task-card:active { transform: translateY(0); }
.task-card .task-view-hint { float: right; font-size: 12px; font-weight: 600; color: var(--primary, #4F46E5); }

/* ===== 直播（网页推流/观看） ===== */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #EF4444; margin-right: 5px; animation: livePulse 1.2s infinite; vertical-align: 1px; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
.broadcast-stage { position: relative; background: #0F172A; border-radius: 12px; overflow: hidden; }
.broadcast-stage video { width: 100%; max-height: 420px; display: block; background: #0F172A; }
.live-watch-wrap video { width: 100%; max-height: 72vh; background: #000; border-radius: 12px; display: block; }
.live-status-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; background: #1E293B; color: #fff; font-size: 13px; }
.live-share-box { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.live-share-box input { flex: 1; font-size: 12px; }

/* ===== 任务详情·确认接单（大按钮 + 免责条款弹窗） ===== */
.btn-confirm-task { display: block; width: 100%; margin-top: 6px; padding: 15px 20px; font-size: 19px; font-weight: 800; letter-spacing: 2px; color: #fff; background: linear-gradient(135deg, #F59E0B, #EF4444); border: none; border-radius: 12px; box-shadow: 0 6px 18px rgba(239, 68, 68, .28); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-confirm-task:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(239, 68, 68, .35); }
.btn-confirm-task:active { transform: translateY(0); }
.apply-modal-error { margin-bottom: 10px; padding: 11px 14px; background: #FEE2E2; border: 1.5px solid #EF4444; border-radius: 9px; color: #991B1B; font-size: 13.5px; font-weight: 700; line-height: 1.7; }
.apply-modal-error a { color: #B91C1C; text-decoration: underline; font-weight: 800; }
.rank-tag.t1 { color: #1D4ED8; background: #DBEAFE; }
.rank-tag.t2 { color: #0F766E; background: #CCFBF1; }
.rank-tag.t3 { color: #BE185D; background: #FCE7F3; }

/* 文件选择框：视觉隐藏但保持可交互（配合 label[for] 使用，避免包裹式隐藏的选中态问题） */
.upload-box-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 顶部常驻工具条（批量保存按钮吸顶，滚动不消失；位于 topbar 58px 之下） */
.sticky-tools {
  position: sticky; top: 58px; z-index: 800;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg, #f8fafc);
  padding: 10px 0; margin-bottom: 6px;
  box-shadow: 0 8px 14px -10px rgba(15, 23, 42, .25);
}

/* 顶部大类导航（侧边栏归类切换，2026-10-29） */
.topbar-cats { margin-left: 34px; }
.topbar-cats a { border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; }
.topbar-cats a.active { background: #fff; color: var(--primary-dark, #4338CA); border-color: #fff; }

/* AI 工作台（模型广场卡片封面，2026-10-29） */
.ws-cover { height: 110px; border-radius: 12px 12px 0 0; display: flex; align-items: flex-end; padding: 10px; background: linear-gradient(135deg, var(--c1, #6366F1), var(--c2, #8B5CF6)); }
.ws-cover-lg { height: 150px; }
.ws-model .course-info { padding: 12px 14px 14px; }

/* AI 工作台 · 交互式节点画布（2026-10-30） */
.ws-editor { padding: 0; overflow: hidden; }
.ws-editor-bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border, #E5E7EB); flex-wrap: wrap; }
.ws-canvas { position: relative; height: 560px; overflow: hidden; background: #F8FAFC;
  background-image: radial-gradient(#D8DEE9 1px, transparent 1px); background-size: 22px 22px; cursor: grab; }
.ws-edges { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; pointer-events: none; }
.ws-edges path { pointer-events: stroke; }
.ws-edge { fill: none; stroke: #6366F1; stroke-width: 2.5; }
.ws-edge-hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; pointer-events: stroke; }
.ws-edge-temp { stroke-dasharray: 6 6; opacity: .7; }
.ws-nodes { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; pointer-events: none; }
.ws-node { position: absolute; width: 262px; background: #fff; pointer-events: auto; border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .10); }
.ws-node-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: #fff;
  border-radius: 11px 11px 0 0; cursor: move; font-size: 13px; }
.ws-node-head strong { flex: 1; font-size: 13px; text-align: left; }
.ws-node-status { font-size: 10px; background: rgba(255, 255, 255, .25); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ws-node-status.is-running { background: #F59E0B; }
.ws-node-status.is-done { background: #10B981; }
.ws-node-del { background: transparent; border: 0; color: #fff; font-size: 16px; cursor: pointer; line-height: 1; }
.ws-node-body { padding: 10px 12px 12px; text-align: left; }
.ws-port { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: #fff; border: 3px solid #6366F1; cursor: crosshair; z-index: 2; }
.ws-port-in { left: -8px; }
.ws-port-out { right: -8px; border-color: #EC4899; }
.ws-port:hover { transform: scale(1.25); }
.ws-preview { margin: 6px 0 8px; padding: 10px; border-radius: 8px;
  background: linear-gradient(135deg, #EEF2FF, #FCE7F3); font-size: 12px; }
.ws-addbar { display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--border, #E5E7EB); }

/* 画布全屏模式（2026-10-30）：内容区铺满视口 */
.main-content.ws-full { padding: 0; height: calc(100vh - 58px); overflow: hidden; }
.main-content.ws-full .flash { margin: 8px 14px; }
.ws-full .ws-editor { display: flex; flex-direction: column; height: 100%; border-radius: 0; border: 0; }
.ws-full .ws-canvas { flex: 1; height: auto; min-height: 0; }

/* 双语切换（2026-11-04）：顶栏两段式开关，当前语言高亮 */
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; overflow: hidden; margin-right: 10px; }
.lang-opt { color: rgba(255, 255, 255, .85); padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; transition: all .15s; }
.lang-opt:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.lang-opt.active { background: #fff; color: var(--primary-dark, #4338CA); }

/* 页脚 ICP 备案标识（2026-11-11） */
.site-footer { text-align: center; padding: 14px 16px 20px; font-size: 12px; color: #9aa0a6; }
.site-footer a { color: #9aa0a6; text-decoration: none; }
.site-footer a:hover { color: #6b7280; text-decoration: underline; }
