:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d9e0e7;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  min-height: 72px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: #1f6feb;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #607080;
  margin-top: 2px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.topbar nav a {
  border-radius: 6px;
  color: #334155;
  padding: 8px 10px;
}

.topbar nav a:hover {
  background: #edf3fb;
}

.bridge-pill {
  background: #eef6f2;
  border: 1px solid #b9d9ca;
  border-radius: 999px;
  color: #17613b;
  padding: 7px 12px;
  white-space: nowrap;
}

html[data-bridge="external"] .bridge-pill {
  background: #fff6e6;
  border-color: #f0cf8c;
  color: #7a4b00;
}

main {
  margin: 0 auto;
  max-width: 1280px;
  padding: 28px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 4px 0 12px;
}

.hero p {
  color: #465568;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  max-width: 820px;
}

.eyebrow {
  color: #1f6feb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.mode-panel {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  padding: 18px;
}

.mode-panel strong,
.mode-panel span {
  display: block;
}

.mode-panel span {
  color: #526173;
  line-height: 1.7;
  margin-top: 8px;
}

.workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.path-list {
  display: grid;
  gap: 10px;
}

.path-item {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  display: block;
  padding: 14px;
}

.path-item.active {
  border-color: #1f6feb;
  box-shadow: inset 4px 0 0 #1f6feb;
}

.path-item strong,
.path-item span {
  display: block;
}

.path-item span {
  color: #607080;
  font-size: 13px;
  margin-top: 5px;
}

.content-panel {
  display: grid;
  gap: 16px;
}

.notice {
  background: #fff9ed;
  border: 1px solid #efd49a;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px;
}

.notice span {
  color: #664a13;
}

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

.card {
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  min-height: 180px;
  padding: 18px;
}

.card span {
  color: #1f6feb;
  font-size: 13px;
  font-weight: 700;
}

.card h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 12px 0;
}

.card p {
  color: #526173;
  line-height: 1.7;
  margin: 0;
}

.action-panel {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  min-height: 78px;
  padding: 16px;
}

.primary-action {
  background: #1f6feb;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 11px 18px;
}

.primary-action:hover {
  background: #185abd;
}

.action-panel p {
  color: #526173;
  line-height: 1.6;
  margin: 0;
}

.external-note {
  color: #7a4b00;
  font-weight: 700;
}

@media (max-width: 920px) {
  .topbar,
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: start;
    padding: 16px;
  }

  .topbar nav {
    justify-content: start;
  }

  main {
    padding: 18px;
  }

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

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

  .notice,
  .action-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
