:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #18202a;
  --muted: #697480;
  --line: #e0e5e7;
  --soft-line: #edf0f1;
  --teal: #0f766e;
  --teal-dark: #0a514c;
  --amber: #a9631b;
  --shadow: 0 18px 46px rgba(24, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

button {
  font: inherit;
}

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

.intro{
  height: 360px;
  background:
    linear-gradient(90deg, rgba(24, 32, 42, 0.04), rgba(24, 32, 42, 0.01)),
    url("./hub-assets/top-bg.jpg");
    background-size: cover;
    border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 246, 0.88);
  border-bottom: 1px solid rgba(224, 229, 231, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #53606c;
  font-size: 14px;
  font-weight: 600;
}

.top-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 10px auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: clamp(44px, 6vw, 78px) 0 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.intro h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
}

.overview {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  margin-right: 20px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.overview div {
  padding: 15px 16px;
  background: var(--surface);
}

.overview dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.overview dd {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.agent-area,
.sections-area {
  padding: 28px 0 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4f5b66;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-pill.is-active,
.category-pill.has-agent {
  border-color: #b9d9d4;
  background: var(--surface);
  color: var(--teal-dark);
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(23px, 2.35vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-entry {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 32, 42, 0.07);
}

.agent-entry.is-hidden {
  display: none;
}

.agent-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 20px;
}

.agent-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12a594;
  box-shadow: 0 0 0 4px rgba(18, 165, 148, 0.12);
}

.agent-copy h3 {
  max-width: 100%;
  margin: 16px 0 9px;
  font-size: clamp(22px, 2.05vw, 27px);
  line-height: 1.22;
  letter-spacing: 0;
}

.agent-copy p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.68;
}

.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.agent-meta span {
  padding: 5px 9px;
  border: 1px solid #d8e8e5;
  border-radius: 999px;
  background: #f0f7f5;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.agent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 20px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.agent-link:hover {
  transform: translateY(-1px);
}

.agent-link.is-disabled {
  background: #eef1f2;
  color: var(--muted);
  cursor: default;
}

.agent-link.is-disabled:hover {
  transform: none;
}

.agent-visual {
  min-height: 0;
  aspect-ratio: 16 / 8.2;
  background:
    linear-gradient(90deg, rgba(24, 32, 42, 0.1), rgba(24, 32, 42, 0.01)),
    url("./hub-assets/agent-hero.png");
  background-size: cover;
  background-position: 64% center;
}

.agent-visual.is-muted {
  filter: grayscale(0.2);
  opacity: 0.72;
}

.sections-area {
  padding-bottom: 72px;
}

.section-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section-item {
  display: grid;
  width: 100%;
  text-align: left;
  gap: 8px;
  min-height: 92px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  cursor: pointer;
}

.section-item.is-active {
  background: var(--surface);
  border-color: #b9d9d4;
}

.section-item.has-agent {
  background: var(--surface);
  border-color: #b9d9d4;
}

.category-pill:hover,
.section-item:hover {
  border-color: #b9d9d4;
  background: var(--surface);
}

.section-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.section-item strong {
  font-size: 16px;
}

.section-item em {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .overview {
    width: fit-content;
    grid-template-columns: repeat(2, 1fr);
  }

  .agent-entry {
    min-height: 386px;
  }

  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    min-height: 58px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    font-size: 12px;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-nav {
    flex: 0 0 auto;
    gap: 14px;
    font-size: 13px;
  }

  main {
    width: min(100% - 28px, 1120px);
    margin-top: 12px;
  }

  .intro {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 8.6;
    padding: 0;
    border-radius: 9px;
    background-position: center;
  }

  .intro h1 {
    font-size: 32px;
  }

  .overview {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
    width: 150px;
    margin: 0 12px 12px auto;
    border-radius: 7px;
  }

  .overview div {
    padding: 10px 12px;
  }

  .overview dt {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .overview dd {
    font-size: 23px;
  }

  .category-bar {
    gap: 7px;
    margin-top: 0;
    padding: 13px 0 16px;
  }

  .category-pill {
    min-height: 32px;
    padding: 0 13px;
    font-size: 12px;
  }

  .agent-area,
  .sections-area {
    padding-top: 22px;
  }

  .section-title {
    display: block;
    margin-bottom: 13px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .agent-copy h3 {
    font-size: 24px;
  }

  .agent-link {
    width: 100%;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-entry {
    min-height: auto;
  }

  .agent-copy {
    padding: 18px;
  }

  .agent-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .agent-meta {
    margin-top: 14px;
  }

  .agent-link {
    min-height: 38px;
    margin-top: 18px;
  }

  .section-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-item {
    min-height: 86px;
    padding: 14px 15px;
  }

  .site-footer {
    flex-direction: column;
  }
}
