:root {
  --brand: #005bbb;
  --brand-dark: #003f7f;
  --text: #0f172a;
  --muted: #475569;
  --background: #f1f5f9;
  --panel: #ffffff;
  --border: #d7dce6;
  --primary: #005bbb;
  --primary-light: #e6f1ff;
  --tree-line: var(--border);
  --page-pad: clamp(1rem, 3vw, 2rem);
  --content-max: 1200px;
  --text-max: 640px;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0,91,187,0.08), transparent 60%) no-repeat top center / 200% 1200px,
    var(--background);
  color: var(--text);
}
main {
  padding: 0 var(--page-pad) 2rem;
}
.site-header {
  display: flex;
  justify-content: center;
  padding: 1.25rem var(--page-pad);
}
.header-inner {
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-decoration: none;
}
.logo img {
  width: 140px;
  height: auto;
  max-height: none;
  display: block;
}
.page-shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  align-items: start;
}
.muted { color: var(--muted); }
.contact-list {
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.contact-list dt { font-weight: 600; color: var(--muted); margin-bottom: 0.1rem; }
.contact-list dd { margin: 0; }
.tree-list { list-style: none; padding-left: 0; margin: 0; }
.tree-branch { list-style: none; padding-left: 0; margin: 0.2rem 0 0.4rem 0.6rem; position: relative; }
.tree-branch li { margin: 0.25rem 0; position: relative; padding-left: 2.2rem; }
.tree-branch li::before { content: ''; position: absolute; left: 1.1rem; top: 0; bottom: 0; border-left: 1.8px solid var(--tree-line); }
.tree-branch li::after { content: ''; position: absolute; left: 1.1rem; top: 0.58rem; width: 1.1rem; border-top: 1.8px solid var(--tree-line); border-radius: 2px; }
.tree-branch > li:last-child::before { bottom: auto; height: 0.65rem; }
.tree { margin-top: 1rem; }
.tree-node { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; position: relative; }
.node-image {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.node-image img { max-width: 38px; max-height: 38px; object-fit: contain; display: block; }
.node-children { margin-left: 0.85rem; }
.node-children .tree-node { position: relative; margin: 0.25rem 0; padding-left: 0.45rem; }
.node-children .tree-node::before { content: ''; position: absolute; left: -0.65rem; top: 0; bottom: 0; border-left: 1.8px solid var(--border); }
.node-children .tree-node::after { content: ''; position: absolute; left: -0.65rem; top: 0.58rem; width: 0.7rem; border-top: 1.8px solid var(--border); border-radius: 2px; }
.node-children .tree-node:last-child::before { bottom: auto; height: 0.65rem; }
footer {
  margin: 2.5rem auto 0;
  width: 100%;
  padding: 0;
  color: #2f3b51;
  background: linear-gradient(180deg, rgba(0,91,187,0.05), transparent 40%);
  border-top: 1px solid rgba(15,23,42,0.06);
}
.footer-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem var(--page-pad) 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-brand img {
  width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
}
.footer-meta { color: #536072; font-size: 0.95rem; line-height: 1.5; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-links a { color: #1f3b65; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-address { color: #2f3b51; line-height: 1.5; font-size: 0.95rem; text-align: right; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-address { text-align: left; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand img { width: 120px; }
  .logo img { width: 120px; }
}
