* { box-sizing: border-box; }
body {
  margin: 0;
  background: #ededed;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2f4a;
}
a { color: inherit; text-decoration: none; }
.page {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.project-header { text-align: center; margin-bottom: 18px; }
.project-header h1 { margin: 0; font-size: 28px; font-weight: 700; color: #8f63c0; }
.project-header h2 { margin: 8px 0 0; font-size: 22px; font-weight: 600; color: #e38b33; }
.project-header .program { margin: 2px 0 0; font-size: 16px; font-weight: 500; color: #8f63c0; }
.project-header .platform { margin: 6px 0 0; font-size: 14px; color: #4a6fa5; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid #d6dce8; border-radius: 18px; padding: 14px 16px; margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.topbar h3 { margin: 0; font-size: 22px; color: #8f63c0 }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-link, .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px;
  border-radius: 12px; border: 1px solid #cfd8ea; background: #fff; font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nav-link:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,0.08); border-color: #8eb0f0; }
.nav-link.active { background: #eef4ff; border-color: #79a2ea; color: #224d95; }
.panel {
  background: #fff; border: 1px solid #d6dce8; border-radius: 20px; padding: 20px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.section-title { margin: 0 0 12px; font-size: 18px; color: #274278; }
.info-grid { display: grid; gap: 14px; }
.info-box { border: 1px solid #dfe5f1; border-radius: 16px; padding: 14px 16px; background: #fcfdff; }
.info-box h4 { margin: 0 0 8px; font-size: 15px; color: #274278; }
.info-box .content { line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  border: 1px solid #dfe5f1; border-radius: 18px; padding: 16px; background: #fff;
  box-shadow: 0 8px 22px rgba(15,23,42,0.04);
}
.card h4 { margin: 0 0 10px; font-size: 17px; color: #203a6f; }
.card ul { margin: 0; padding-left: 20px; line-height: 1.65; }
.hero {
  border: 1px solid #dfe5f1; border-radius: 20px; padding: 18px; background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: #374151; }
select, button { min-height: 44px; border-radius: 12px; border: 1px solid #d1d5db; font-size: 15px; }
select { width: 100%; padding: 10px 12px; background: #fff; }
button { cursor: pointer; font-weight: 700; padding: 10px 14px; }
.btn-primary { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.btn-secondary { background: #fff; color: #1f2f4a; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-card { border: 1px solid #dfe5f1; border-radius: 16px; padding: 14px; background: #fff; }
.quick-card h4 { margin: 0 0 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: none; border-radius: 999px; padding: 8px 10px; font-size: 13px; font-weight: 700; cursor: pointer;
  background: #eef2ff; color: #3730a3;
}
.diagram-board {
  position: relative; width: 1536px; height: 1245px; margin: 0 auto; background: #ededed; overflow: hidden;
}
.node { position: absolute; z-index: 2; }
.line { position: absolute; z-index: 1; background: #3f79bf; border-radius: 3px; }
.line.green { background: #6aa46d; }
.line.orange { background: #e38b33; }
.line.purple { background: #8f63c0; }
.line.cyan { background: #39a7bf; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 28px; min-height: 52px; border-radius: 14px;
  color: #fff; font-weight: 700; font-size: 22px; line-height: 1; text-align: center; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 2px rgba(0,0,0,0.08);
}
.pill.small { min-height: 44px; padding: 8px 22px; font-size: 18px; border-radius: 12px; }
.blue-pill { background: linear-gradient(180deg, #68a3de 0%, #4b87cc 100%); border: 2px solid #2f69aa; }
.green-pill { background: linear-gradient(180deg, #74bb7a 0%, #56a15e 100%); border: 2px solid #47894d; }
.orange-pill { background: linear-gradient(180deg, #f0aa57 0%, #df8a33 100%); border: 2px solid #cb7826; }
.purple-pill { background: linear-gradient(180deg, #b289dd 0%, #9468c2 100%); border: 2px solid #7d52af; }
.cyan-pill { background: linear-gradient(180deg, #58b8cd 0%, #3ca6bc 100%); border: 2px solid #27879d; }
.box { border-radius: 14px; padding: 14px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); font-size: 16px; line-height: 1.45; }
.blue-box { background: #dbe4ef; color: #202f49; }
.green-box { background: #dde4db; color: #223628; }
.orange-box { background: #f1e0d1; color: #53331f; }
.purple-box { background: #ddd2e8; color: #3f3154; }
.cyan-box { background: #d9e9ee; color: #21434f; }
.box ul { margin: 0; padding-left: 22px; }
.box li { margin: 4px 0; }
.mini-label {
  display: block; width: 100%; background: rgba(255,255,255,0.38); color: inherit; text-align: center; font-weight: 700;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.main-center {
  width: 352px; height: 118px; border-radius: 22px; border: 3px solid #3e79bf; background: #d8e3ee; display: flex;
  align-items: center; justify-content: center; text-align: center; color: #203a6f; font-size: 29px; font-weight: 800; line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.clickable { display: inline-block; }
.clickable:hover { transform: translateY(-1px); }
.responsive-note { text-align: center; color: #6b7280; font-size: 14px; margin-top: 14px; }
@media (max-width: 1560px) { .diagram-wrap { overflow-x: auto; padding-bottom: 8px; } }
@media (max-width: 980px) {
  .grid-2, .controls, .quick-grid, .card-grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
