/* Agent 与 Skill 页 · page-agent-skill.css
   复用全站 tokens；新增：Hero 控制台 mock、架构协作图、Skill 技能包卡片。
   画廊复用 page-workflow.css；企业知识闭环 / 业务拆解复用 pages.css 的 .kb__flow / .loop__grid。 */

/* ── Hero 控制台 mock ─────────────────────────────── */
.as-console {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  background: var(--gray-950);
  box-shadow: var(--sh-4);
  overflow: hidden;
}
.as-console__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--gray-950) 70%, #fff 4%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.as-console__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.as-console__dot:nth-child(1) { background: #ff5f57; }
.as-console__dot:nth-child(2) { background: #febc2e; }
.as-console__dot:nth-child(3) { background: #28c840; }
.as-console__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tr-mono);
  color: rgba(255,255,255,.55);
}
.as-console__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-5);
  color: #fff;
}
.as-console__say {
  position: relative;
  background: color-mix(in srgb, var(--brand-500) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 45%, transparent);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: #eaf2ff;
  margin: 0 0 var(--sp-5);
}
.as-console__agent {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--brand-300);
  margin: 0 0 var(--sp-3);
}
.as-console__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.as-console__tasks li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: var(--fs-sm);
  color: var(--d-ink-2);
  line-height: 1.4;
}
.as-console__tasks li::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
}
.as-console__tasks li.is-done {
  color: var(--d-ink);
}
.as-console__tasks li.is-done::before {
  background: var(--brand-500);
  border-color: var(--brand-500);
  background-image: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  background-size: 10px 10px;
  background-position: center;
}
.as-console__tasks li.is-run::before {
  border-color: var(--brand-400);
  border-top-color: transparent;
  animation: as-spin .9s linear infinite;
}
.as-console__tasks li.is-wait { opacity: .55; }
@keyframes as-spin { to { transform: translateY(-50%) rotate(360deg); } }

.as-console__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: var(--fs-xs);
  color: var(--d-ink-3);
}
.as-console__live {
  color: var(--brand-300);
  font-weight: 600;
}

/* ── 架构协作图 ───────────────────────────────────── */
.as-arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--head-gap);
}
.as-arch__row { width: 100%; display: flex; justify-content: center; }
.as-arch__arrow {
  color: var(--brand-400);
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}
.as-arch__node {
  min-width: 280px;
  max-width: 460px;
  text-align: center;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-7);
  font-size: var(--fs-lg);
  font-weight: 650;
  color: var(--gray-900);
}
.as-arch__node small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--gray-500);
}
.as-arch__node-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-mono);
  color: var(--gray-400);
  margin-bottom: 4px;
}
.as-arch__node--in {
  background: color-mix(in srgb, var(--brand-500) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-500) 30%, transparent);
}
.as-arch__node--out {
  background: var(--brand-600);
  border: 1px solid var(--brand-600);
  color: #fff;
}
.as-arch__node--out small { color: rgba(255,255,255,.8); }
.as-arch__node--out .as-arch__node-k { color: rgba(255,255,255,.7); }

.as-arch__agent {
  width: 100%;
  max-width: 620px;
  border: 1px solid color-mix(in srgb, var(--brand-500) 35%, var(--gray-200));
  background: color-mix(in srgb, var(--brand-500) 5%, #fff);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-7);
  text-align: center;
}
.as-arch__agent-head {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.as-arch__agent-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-mono);
  color: var(--brand-700);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.as-arch__agent-head h3 { margin: 0; font-size: var(--fs-xl); color: var(--gray-900); }
.as-arch__agent-sub {
  margin: var(--sp-2) 0 var(--sp-4);
  color: var(--gray-600);
  font-size: var(--fs-sm);
}
.as-arch__agent-tasks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.as-arch__agent-tasks span {
  font-size: var(--fs-xs);
  color: var(--brand-700);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-500) 25%, transparent);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

.as-arch__row--skills { gap: var(--sp-3); flex-wrap: wrap; }
.as-arch__skill {
  flex: 1 1 180px;
  min-width: 150px;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--brand-500) 35%, var(--gray-300));
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-800);
}

.as-arch__feedback {
  margin-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-5);
}
.as-arch__feedback-k {
  font-family: var(--font-mono);
  color: var(--brand-600);
  font-size: var(--fs-md);
}

/* ── Skill 技能包卡片 ─────────────────────────────── */
.as-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--head-gap);
}
.as-skill {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform var(--d-4) var(--e-out), box-shadow var(--d-4) var(--e-out), border-color var(--d-4) var(--e-out);
}
.as-skill:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  border-color: color-mix(in srgb, var(--brand-500) 35%, var(--gray-200));
}
.as-skill__no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-mono);
  color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.as-skill h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); color: var(--gray-900); }
.as-skill p { color: var(--gray-600); font-size: var(--fs-sm); line-height: 1.6; margin: 0 0 var(--sp-4); }
.as-skill__io {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--gray-100);
  font-size: var(--fs-xs);
  color: var(--gray-500);
}
.as-skill__io b {
  color: var(--gray-400);
  font-weight: 700;
  margin-right: 4px;
}

@media (max-width: 1040px) {
  .as-skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .as-skills { grid-template-columns: 1fr; }
  .as-arch__node { min-width: 0; width: 100%; }
  .as-arch__agent-head { flex-direction: column; gap: var(--sp-2); }
}
