:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #10b981;
  --warning: #f59e0b;
  --danger: #dc4768;
  --ink: #1f2937;
  --muted: #6b7280;
  --light: #9ca3af;
  --bg: #f9fafb;
  --soft: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(31,41,55,.08);
  --shadow-lg: 0 20px 42px rgba(31,41,55,.14);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.logo span { font-size: 26px; }
.logo img {
  width: 156px;
  height: 52px;
  padding: 7px 14px;
  border: 1px solid rgba(79,70,229,.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 26px rgba(31,41,55,.12);
  object-fit: contain;
  flex: 0 0 auto;
}
.logo strong {
  line-height: 1.25;
}
.nav-links { display: flex; gap: 30px; color: var(--muted); font-weight: 600; }
.nav-links a { position: relative; padding: 24px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: white; border-color: var(--border); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero {
  padding: 104px 0 72px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 52px; align-items: center; }
.hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
.hero-highlight {
  background: linear-gradient(90deg, #fff7cf 0%, #e8fbff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 12px 34px rgba(255, 255, 255, .16);
}
.hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.9); font-size: 18px; }
.hero .eyebrow { color: #e9e7ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 24px; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-metrics span {
  min-width: 118px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.11);
}
.hero-metrics strong { display: block; font-size: 28px; line-height: 1.1; }
.landing-hero .hero-metrics span { flex: 0 0 calc(50% - 8px); }
.hero-panel {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(17,24,39,.72);
  box-shadow: var(--shadow-lg);
}
.panel-top { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; color: #c7d2fe; font-size: 12px; }
.panel-top span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.panel-top span:nth-child(2) { background: #f59e0b; }
.panel-top span:nth-child(3) { background: #22c55e; margin-right: 8px; }
.assembly-card, .assembly-flow div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
.assembly-card.primary { margin-bottom: 14px; border-color: rgba(129,140,248,.55); background: rgba(79,70,229,.22); }
.assembly-card small, .assembly-flow small { display: block; color: #cbd5e1; font-weight: 800; }
.assembly-card strong, .assembly-flow strong { display: block; margin: 4px 0; color: white; }
.assembly-card p { margin: 0; color: #d1d5db; font-size: 13px; }
.assembly-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.page-header {
  padding: 86px 0 54px;
  color: white;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.page-header h1 { margin: 0 0 12px; font-size: 42px; }
.page-header p { margin: 0 auto; max-width: 820px; color: rgba(255,255,255,.9); font-size: 18px; }
.section { padding: 72px 0; background: white; }
.section.muted { background: var(--bg); }
.section-head { max-width: 820px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 10px; font-size: 32px; }
.section-head p { margin: 0; color: var(--muted); }
body[data-page="home"] .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
body[data-page="home"] .section-head .eyebrow {
  justify-content: center;
}
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-card .icon { font-size: 34px; }
.category-card h3 { margin: 10px 0 8px; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; }
.scenario-grid-landing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.scenario-card {
  min-height: 184px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}
.scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.scenario-card span { font-size: 34px; }
.scenario-card h3 { margin: 10px 0 8px; font-size: 18px; }
.scenario-card p { margin: 0; color: var(--muted); font-size: 14px; }
.featured-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.value-grid article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}
.value-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.value-grid h3 { margin: 0 0 8px; }
.value-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.capability-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.capability-chain div {
  position: relative;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}
.capability-chain div::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -14px;
  color: var(--primary);
  font-weight: 900;
}
.capability-chain div:last-child::after { display: none; }
.capability-chain small {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 900;
}
.capability-chain strong { display: block; margin-bottom: 8px; }
.capability-chain p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-band {
  padding: 88px 0;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.contact-content {
  max-width: 980px;
  text-align: center;
}
.contact-content h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 46px); line-height: 1.16; }
.contact-content p { margin: 0; color: rgba(255,255,255,.9); font-size: 22px; font-weight: 700; }
.contact-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin: 46px auto 0;
  padding: 42px;
  border-radius: 22px;
  background: white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 24px 70px rgba(29, 24, 79, .2);
}
.contact-qr {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fafc;
}
.contact-qr img {
  display: block;
  width: 100%;
  border-radius: 12px;
}
.contact-info .eyebrow { color: var(--primary); }
.contact-info h3 {
  margin: 10px 0 14px;
  font-size: 34px;
}
.contact-info p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}
.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.contact-points span {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
}
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-grid article {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
}
.process-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  font-weight: 900;
}
.process-grid h3 { margin: 0 0 8px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.filter-section { position: sticky; top: 72px; z-index: 20; padding: 22px 0; background: white; border-bottom: 1px solid var(--border); }
.filter-bar { display: grid; grid-template-columns: 180px 160px 160px minmax(260px, 1fr); gap: 16px; margin-bottom: 16px; }
label { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.filter-tag.active, .filter-tag:hover { background: var(--primary); color: white; }
.agents-list { padding: 46px 0 72px; background: var(--bg); }
.dept-section { margin-bottom: 44px; }
.dept-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); font-size: 24px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 22px; }
.agent-grid.compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.agent-card {
  display: flex;
  flex-direction: column;
  min-height: 288px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.agent-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.agent-emoji { font-size: 38px; }
.agent-dept, .badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.badge.demo { background: #d1fae5; color: #047857; }
.badge.later { background: #fef3c7; color: #92400e; }
.agent-name { margin: 0 0 8px; font-size: 18px; }
.agent-desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.skill-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.skill-tag, .tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.agent-card .btn { margin-top: auto; }

.detail-page { padding: 38px 0 72px; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--primary); font-weight: 800; }
.detail-hero {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: var(--shadow-lg);
}
.detail-emoji {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 24px;
  background: rgba(255,255,255,.16);
  font-size: 46px;
}
.detail-hero h1 { margin: 8px 0 8px; font-size: 36px; line-height: 1.16; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.9); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 24px; }
.detail-section, .sidebar-card, .preview-card, .builder-panel, .preview-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}
.detail-section { padding: 26px; margin-bottom: 18px; }
.detail-section h2, .sidebar-card h3, .preview-card h3 { margin: 0 0 18px; }
.section-note, .form-hint { margin: -8px 0 18px; color: var(--muted); font-size: 14px; }
.ability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ability-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.ability-card small { color: var(--primary); font-weight: 900; }
.ability-card h3 { margin: 6px 0 8px; font-size: 16px; }
.ability-card p { margin: 0; color: var(--muted); font-size: 13px; }
.workflow-steps { display: grid; gap: 14px; }
.workflow-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.workflow-step .num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: white; font-weight: 900; }
.workflow-step h4 { margin: 0 0 4px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 14px; }
.deliverables-list, .use-cases { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.deliverables-list { grid-template-columns: repeat(2, 1fr); }
.deliverables-list li, .use-cases li { padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 14px; }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.boundary-box { padding: 16px; border-radius: 14px; background: var(--bg); border-top: 4px solid var(--secondary); }
.boundary-box.confirm { border-top-color: var(--warning); }
.boundary-box.forbidden { border-top-color: var(--danger); }
.boundary-box h3 { margin: 0 0 8px; font-size: 15px; }
.boundary-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.skill-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skill-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}
.skill-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.skill-card h3 { margin: 5px 0 0; font-size: 17px; }
.skill-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.skill-type {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.skill-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.skill-meta-grid div {
  padding: 10px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border);
}
.skill-meta-grid strong, .skill-meta-grid span { display: block; }
.skill-meta-grid strong { margin-bottom: 4px; font-size: 12px; color: var(--ink); }
.skill-meta-grid span { color: var(--muted); font-size: 12px; }
.skill-relation { margin-top: 10px; }
.skill-relation strong { display: block; margin-bottom: 6px; font-size: 13px; }
.detail-sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar-card { padding: 22px; margin-bottom: 18px; }
.sidebar-card p { color: var(--muted); font-size: 14px; }
.quick-form { display: grid; gap: 10px; }
.related-agents { display: grid; gap: 8px; }
.related-agent { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg); }

.create-header { text-align: left; }
.create-page { padding: 36px 0 72px; }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; align-items: start; }
.builder-panel { padding: 26px; }
.preview-panel { position: sticky; top: 92px; display: grid; gap: 16px; padding: 16px; }
.quick-create-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}
.quick-create-steps span {
  padding: 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}
.quick-create-steps span.active { background: var(--primary); color: white; }
.create-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mode-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}
.mode-card.active {
  border-color: var(--primary);
  background: #eef2ff;
}
.mode-card strong, .mode-card span {
  display: block;
}
.mode-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.publish-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.publish-status {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff7ed;
  color: #92400e;
  font-size: 13px;
}
.publish-status.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.admin-page { padding: 36px 0 72px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 26px; align-items: start; }
.admin-panel { padding: 26px; }
.admin-preview { position: sticky; top: 96px; padding: 24px; }
.form-tip { margin: -4px 0 18px; color: var(--muted); font-size: 14px; }
.brand-preview-box {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 18px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.form-section { padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section h2 { margin: 0 0 16px; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.question-grid label:last-child {
  grid-column: 1 / -1;
}
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.button-row.left { justify-content: flex-start; }
.domain-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.task-chip-grid, .source-grid, .guardrail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice-chip, .guardrail-chip {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}
.choice-chip.active, .guardrail-chip.active {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
}
.advanced-wrapper {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfd;
}
.advanced-wrapper > summary {
  padding: 18px 20px;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}
.advanced-wrapper .form-section {
  padding: 20px;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.sub-title {
  margin: 16px 0 10px;
  font-size: 15px;
}
.generated-plan {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.section-head.small {
  margin-bottom: 16px;
}
.section-head.small h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.section-head.small p {
  margin: 0;
  color: var(--muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.plan-grid .wide {
  grid-column: 1 / -1;
}
.domain-tab {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}
.domain-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title-row h2 { margin: 0; }
.section-title-row input { max-width: 360px; margin-top: 0; }
.package-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.package-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
}
.package-card.selected { border-color: var(--primary); background: #eef2ff; }
.package-card strong { display: block; margin-bottom: 6px; }
.package-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.package-card small { color: var(--primary); font-weight: 800; }
.composer-list { display: grid; gap: 12px; }
.advanced-config { display: grid; gap: 16px; }
.advanced-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.advanced-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.advanced-card-head h3 { margin: 6px 0 0; font-size: 17px; }
.advanced-card details {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.advanced-card summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.check-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.check-item input {
  width: auto;
  margin: 3px 0 0;
  flex: 0 0 auto;
}
.action-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, .8fr) 132px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.action-row span { font-size: 13px; font-weight: 700; }
.action-row small { color: var(--muted); }
.action-row select { margin-top: 0; padding: 8px 10px; }
.composer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8f9ff;
}
.composer-card h3 { margin: 6px 0 6px; font-size: 16px; }
.composer-card p { margin: 0; color: var(--muted); font-size: 13px; }
.composer-card strong { display: block; margin-bottom: 6px; font-size: 13px; }
.preview-card { padding: 18px; }
.preview-card h2 { margin: 0 0 8px; }
.preview-card p { color: var(--muted); }
.recommend-result {
  display: grid;
  gap: 10px;
}
.recommend-result div {
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
}
.recommend-result strong, .recommend-result span {
  display: block;
}
.recommend-result strong {
  margin-bottom: 4px;
}
.recommend-result span {
  color: var(--muted);
  font-size: 13px;
}
.selected-packages { display: grid; gap: 8px; }
.selected-packages div { padding: 10px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.selected-package-item { position: relative; padding-right: 38px !important; }
.selected-package-item button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-weight: 900;
}
.selected-package-item button:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.boundary-mini { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.boundary-mini strong { color: var(--ink); }
pre {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
}
.footer { padding: 28px 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--border); background: white; }
.empty { padding: 42px; border: 1px dashed var(--border); border-radius: var(--radius-lg); text-align: center; color: var(--muted); background: white; }

/* ====================== 管理后台 ====================== */
.admin-page { padding: 36px 0 72px; background: var(--bg); min-height: 60vh; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: white; border-radius: var(--radius) var(--radius) 0 0; border: 1px solid var(--border); border-bottom: 0; overflow: hidden; }
.admin-tab { flex: 1; padding: 14px 20px; border: 0; background: white; color: var(--muted); font-weight: 800; font-size: 14px; cursor: pointer; }
.admin-tab.active { background: var(--primary); color: white; }
.admin-tab:hover:not(.active) { background: var(--soft); }
.admin-card { padding: 24px; background: white; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 18px; }
.admin-loading, .admin-error { padding: 42px; text-align: center; background: white; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); }
.admin-error { color: var(--danger); background: #fef2f2; }
.admin-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.admin-action-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.admin-action-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.admin-action-card strong { font-size: 17px; }
.admin-action-card span { color: var(--muted); font-size: 14px; }
.config-form label { display: block; margin-bottom: 14px; }
.config-status { margin-left: 12px; font-size: 14px; font-weight: 700; }
.logo-upload-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 8px 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.logo-upload-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.logo-upload-preview img {
  max-width: 82px;
  max-height: 82px;
  object-fit: contain;
}
.logo-upload-preview span {
  font-size: 42px;
}
.logo-upload-controls input {
  margin-top: 6px;
}
.logo-upload-controls .form-hint {
  margin: 8px 0 0;
}
.knowledge-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 18px; }
.knowledge-upload input { max-width: 440px; margin: 0; }
.knowledge-list { display: grid; gap: 10px; }
.knowledge-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.knowledge-file strong, .knowledge-file small { display: block; }
.knowledge-file small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.product-table-wrap { overflow-x: auto; margin-top: 16px; }
.product-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-table th, .product-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.product-table th { background: var(--soft); font-weight: 800; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.product-table tr:hover td { background: #f8f9ff; }
.product-table .action-cell { white-space: nowrap; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.product-form { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); margin-bottom: 16px; }
.product-form h3 { margin: 0 0 12px; }
.chat-list { display: grid; gap: 8px; }
.chat-session-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.chat-session-info strong { display: block; margin-bottom: 4px; }
.chat-session-info small { color: var(--muted); font-size: 12px; }
.chat-session-actions { display: flex; gap: 8px; flex-shrink: 0; }
.chat-messages-display { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.chat-messages-display h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.chat-msg { padding: 12px; margin-bottom: 10px; border-radius: 12px; background: white; border: 1px solid var(--border); }
.chat-msg.assistant { border-left: 4px solid var(--primary); }
.chat-msg.user { border-left: 4px solid var(--secondary); }
.chat-msg strong { display: block; margin-bottom: 6px; }
.msg-content { color: var(--ink); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.chat-msg small { display: block; margin-top: 8px; color: var(--light); font-size: 11px; }

/* ====================== 后台管理端左侧布局 ====================== */
body[data-page="admin"] {
  background: #f6f7fb;
  overflow: hidden;
}

.admin-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f7fb;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 18px 14px;
  background: #111827;
  color: #e5e7eb;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 18px;
}

.admin-brand span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}

.admin-side-nav {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.admin-side-nav .admin-tab {
  flex: none;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.admin-side-nav .admin-tab:hover:not(.active) {
  background: rgba(255,255,255,.08);
  color: white;
}

.admin-side-nav .admin-tab.active {
  background: var(--primary);
  color: white;
}

.admin-sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 16px 12px 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-sidebar-footer a {
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 800;
}

.admin-workspace {
  min-width: 0;
  height: 100vh;
  overflow: auto;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 20px 32px;
  background: rgba(246,247,251,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.admin-content {
  padding: 24px 32px 42px;
}

.admin-content .admin-card {
  border-radius: var(--radius);
}

.admin-card-flush {
  padding: 0;
  overflow: hidden;
}

.admin-builder-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 140px);
  min-height: 680px;
  border: 0;
  background: white;
}

.agent-admin-list,
.agent-admin-grid,
.agent-kb-picker,
.knowledge-block {
  display: grid;
  gap: 12px;
}

.agent-admin-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 16px;
}

.agent-admin-row,
.agent-admin-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.agent-admin-card {
  min-height: 210px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.agent-admin-card-head,
.agent-admin-main,
.agent-admin-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.agent-admin-card-head strong {
  display: block;
  line-height: 1.35;
}

.agent-admin-card-head small,
.agent-admin-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.agent-admin-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.agent-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.agent-admin-controls {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
  flex-wrap: wrap;
}

.agent-admin-controls > label {
  min-width: 150px;
}

.agent-kb-picker {
  flex: 1;
  min-width: 260px;
}

.check-item.compact {
  padding: 7px 9px;
  background: white;
}

.muted-inline {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.shown { background: #dbeafe; color: #1d4ed8; }
.status-pill.trial { background: #d1fae5; color: #047857; }
.status-pill.draft { background: #f3f4f6; color: #4b5563; }
.status-pill.official { background: #fef3c7; color: #92400e; }

.knowledge-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

body.embedded-admin {
  background: white;
  overflow: auto;
}

body.embedded-admin .navbar,
body.embedded-admin .page-header,
body.embedded-admin .footer {
  display: none;
}

body.embedded-admin .create-page {
  padding: 0;
}

body.embedded-admin .container {
  max-width: none;
  padding: 0;
}

body.embedded-admin .create-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

body.embedded-admin .builder-panel,
body.embedded-admin .preview-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.embedded-admin .preview-panel {
  top: 18px;
  border-left: 1px solid var(--border);
}

/* ====================== 产品问答 ====================== */
body[data-page="product-qa"] {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body[data-page="product-qa"] .navbar {
  flex: 0 0 auto;
  position: relative;
}
.qa-layout { flex: 1 1 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 0; overflow: hidden; }
.qa-sidebar { display: flex; min-height: 0; flex-direction: column; background: white; border-right: 1px solid var(--border); }
.qa-sidebar-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.qa-sidebar-header h3 { margin: 0; font-size: 16px; }
.qa-session-list { flex: 1; overflow-y: auto; padding: 8px; }
.qa-session-item { padding: 12px; border-radius: 10px; cursor: pointer; margin-bottom: 4px; }
.qa-session-item:hover { background: var(--soft); }
.qa-session-item.active { background: #eef2ff; }
.qa-session-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-session-item small { color: var(--muted); font-size: 11px; }
.qa-main { display: flex; min-height: 0; flex-direction: column; background: var(--bg); }
.qa-chat-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 24px; background: white; border-bottom: 1px solid var(--border); }
.qa-chat-header h2 { margin: 0; font-size: 18px; }
.qa-agent-head { min-width: 0; }
.qa-status { font-size: 13px; color: var(--secondary); font-weight: 700; }
.qa-agent-picker {
  display: grid;
  min-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.qa-agent-picker select {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 13px;
}
.qa-messages { flex: 1; overflow-y: auto; padding: 24px; }
.qa-welcome { text-align: center; padding: 60px 20px; }
.qa-welcome-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.qa-welcome h3 { margin: 0 0 10px; font-size: 22px; }
.qa-welcome p { margin: 0; color: var(--muted); line-height: 1.8; }
.qa-message { display: flex; align-items: flex-start; gap: 12px; width: fit-content; max-width: min(780px, 86%); margin-bottom: 20px; }
.qa-message.user { flex-direction: row-reverse; align-items: flex-start; justify-content: flex-start; gap: 8px; width: fit-content; max-width: min(560px, 68%); margin-left: auto; }
.qa-avatar { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: white; border: 1px solid var(--border); font-size: 18px; }
.qa-bubble { display: inline-block; width: fit-content; max-width: 100%; padding: 14px 18px; border-radius: 16px; background: white; border: 1px solid var(--border); line-height: 1.8; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.qa-user-bubble,
.qa-message.user .qa-bubble {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 16px 16px 4px 16px;
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  line-height: 1.55;
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.qa-user-bubble .qa-message-text,
.qa-message.user .qa-bubble > div:first-child {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.qa-reference-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  white-space: normal;
}
.qa-reference-panel summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(79,70,229,.18);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(79,70,229,.06);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.qa-reference-panel summary::-webkit-details-marker { display: none; }
.qa-reference-panel summary::before {
  content: "+";
  margin-right: 6px;
  font-weight: 900;
}
.qa-reference-panel[open] summary::before { content: "-"; }
.qa-reference-panel ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.qa-reference-panel li + li { margin-top: 6px; }
.qa-input-bar { flex: 0 0 auto; display: flex; gap: 10px; padding: 16px 24px; background: white; border-top: 1px solid var(--border); }
.qa-input-bar textarea { flex: 1; margin: 0; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; }

@media (max-width: 760px) {
  .qa-layout { grid-template-columns: 1fr; }
  .qa-sidebar { display: none; }
  .qa-chat-header { align-items: stretch; flex-direction: column; }
  .qa-agent-picker { min-width: 0; }
  .qa-message { max-width: 100%; }
  .admin-tabs { flex-wrap: wrap; border-bottom: 1px solid var(--border); border-radius: var(--radius); }
  .admin-tab { flex: 1 1 45%; }
  .admin-action-grid { grid-template-columns: 1fr; }
  .logo-upload-box { grid-template-columns: 1fr; }
  .knowledge-file { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1100px) {
  .hero-grid, .detail-content, .create-layout, .admin-layout { grid-template-columns: 1fr; }
  .hero-panel, .preview-panel, .detail-sidebar, .admin-preview { position: static; }
  .category-grid, .process-grid, .scenario-grid-landing, .featured-agent-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-chain { grid-template-columns: repeat(3, 1fr); }
  .capability-chain div::after { display: none; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .navbar { position: static; }
  .nav-inner {
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 0 10px;
  }
  .logo {
    width: 100%;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    line-height: 1.25;
  }
  .logo span { font-size: 20px; }
  .logo img {
    width: 132px;
    height: 42px;
    padding: 5px 10px;
    border-radius: 12px;
  }
  .nav-links {
    width: 100%;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    color: #475569;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .nav-links a.active::after { bottom: 3px; }
  .nav-inner > .btn { display: none; }
  .hero { padding: 44px 0 42px; }
  .hero h1 { font-size: 34px; line-height: 1.14; }
  .hero p { font-size: 16px; line-height: 1.7; }
  .hero-actions { gap: 10px; margin: 24px 0 18px; }
  .hero-actions .btn { flex: 1 1 100%; min-height: 44px; }
  .page-header { padding: 46px 0 34px; }
  .page-header h1 { font-size: 32px; }
  .page-header p { font-size: 16px; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 26px; }
  .filter-section {
    position: static;
    padding: 12px 0;
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }
  .filter-bar label {
    min-width: 0;
    font-size: 12px;
  }
  .filter-bar label:last-child {
    grid-column: 1 / -1;
    order: -1;
  }
  .filter-bar input,
  .filter-bar select {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14px;
  }
  .filter-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .filter-tags::-webkit-scrollbar { display: none; }
  .filter-tag {
    flex: 0 0 auto;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .agents-list { padding: 24px 0 46px; }
  .dept-section { margin-bottom: 30px; }
  .dept-title {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
  }
  .agent-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .agent-card {
    min-width: 0;
    min-height: auto;
    padding: 16px;
    border-radius: 16px;
  }
  .agent-card:hover { transform: none; }
  .agent-header { align-items: center; margin-bottom: 10px; }
  .agent-emoji { font-size: 30px; }
  .agent-dept, .badge { padding: 3px 8px; font-size: 12px; }
  .agent-name { font-size: 17px; line-height: 1.35; }
  .agent-desc {
    display: -webkit-box;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .skill-tags { gap: 6px; margin-bottom: 14px; }
  .skill-tag, .tag { max-width: 100%; font-size: 11px; }
  .agent-card .btn { min-height: 40px; }
  .assembly-flow, .category-grid, .process-grid, .detail-hero, .ability-grid, .deliverables-list, .boundary-grid, .form-grid, .package-list, .scenario-grid-landing, .featured-agent-grid, .value-grid, .capability-chain { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .contact-qr { max-width: 320px; margin: 0 auto; }
  .contact-info p { margin-left: auto; margin-right: auto; }
  .contact-points { grid-template-columns: 1fr; }
  .contact-content p { font-size: 17px; }
  .landing-hero .hero-metrics span { flex-basis: 100%; }
  .quick-create-steps, .create-mode, .question-grid, .plan-grid { grid-template-columns: 1fr; }
  .question-grid label:last-child, .plan-grid .wide { grid-column: auto; }
  .skill-card-grid, .skill-meta-grid, .composer-card, .check-grid, .check-grid.compact, .action-row { grid-template-columns: 1fr; }
  .detail-hero { text-align: center; }
  .detail-badges { justify-content: center; }
}
