* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #0f172a;
  background: #f5f8fb;
}

a {
  color: inherit;
  text-decoration: none;
}

.home-page {
  min-height: 100vh;
  padding: 28px 40px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 90% 16%, rgba(20, 184, 166, 0.18), transparent 26%),
    #f7fbff;
}

.site-header {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 14px 18px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: #2563eb;
  font-weight: 900;
}

.site-brand strong {
  font-size: 24px;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-menu a {
  padding: 10px 15px;
  border-radius: 6px;
  color: #344054;
  font-weight: 800;
}

.site-menu a:hover {
  background: #eef4ff;
  color: #1d4ed8;
}

.site-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.outline-pill,
.primary-pill,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
}

.outline-pill {
  border: 1px solid #bad0ee;
  color: #1d4ed8;
  background: #fff;
}

.primary-pill {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.large {
  min-height: 50px;
  padding: 0 26px;
}

.text-link {
  color: #475467;
}

.hero {
  max-width: 1480px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(540px, 1.1fr);
  align-items: center;
  gap: 56px;
}

.hero-kicker {
  margin: 0 0 18px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 74px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 680px;
  margin: 28px 0 32px;
  color: #344054;
  font-size: 25px;
  line-height: 1.65;
}

.workbench-card {
  --accent: #2563eb;
  overflow: hidden;
  border: 1px solid #d5e3f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.11);
}

.workbench-card.ink {
  color: #fff;
  border-color: #1f2937;
  background: #111827;
}

.workbench-card.mint {
  border-color: #bfe7d6;
  background: #f1fcf7;
}

.workbench-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.workbench-top span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.workbench-top strong {
  font-size: 21px;
}

.workbench-top em {
  color: #12b76a;
  font-style: normal;
  font-weight: 900;
}

.workbench-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.workbench-body aside {
  padding: 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(37, 99, 235, 0.05);
}

.workbench-body button {
  width: 100%;
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 6px;
  padding: 13px 12px;
  text-align: left;
  color: inherit;
  background: transparent;
}

.workbench-body button.active,
.workbench-body button:hover {
  background: rgba(37, 99, 235, 0.13);
}

.workbench-body b {
  font-size: 16px;
}

.workbench-body small {
  color: #667085;
}

.ink .workbench-body small {
  color: #cbd5e1;
}

.workbench-body i {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.chat-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.bubble {
  max-width: 72%;
  margin: 0;
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.55;
}

.bubble.user {
  align-self: flex-end;
  color: #fff;
  background: var(--accent);
}

.bubble.agent {
  background: #eef2f7;
}

.bubble.system {
  color: #475467;
  background: #f8fafc;
  font-size: 14px;
}

.ink .bubble.agent,
.ink .bubble.system {
  color: #e5e7eb;
  background: #1f2937;
}

.relation-strip {
  max-width: 1480px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.relation-strip article {
  display: grid;
  gap: 6px;
}

.relation-strip strong {
  font-size: 16px;
}

.relation-strip span {
  color: #667085;
  line-height: 1.55;
}

.relation-strip i {
  align-self: center;
  height: 2px;
  background: #c9d8ea;
}

@media (max-width: 1080px) {
  .home-page {
    padding: 18px;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .site-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 34px;
    gap: 28px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy > p:not(.hero-kicker) {
    font-size: 20px;
  }

  .relation-strip {
    grid-template-columns: 1fr;
  }

  .relation-strip i {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .outline-pill,
  .primary-pill,
  .text-link {
    width: 100%;
  }

  .workbench-body {
    grid-template-columns: 1fr;
  }

  .workbench-body aside {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }

  .bubble {
    max-width: 88%;
  }
}
