/* Apple-docs inspired stylesheet — 一人公司架构 */

:root {
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-panel: #f5f5f7;
  --border: #d2d2d7;
  --border-soft: #ebebef;
  --text: #1d1d1f;
  --text-soft: #424245;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --code-bg: #f5f5f7;
  --blockquote-bg: #f5f5f7;
  --sidebar-w: 280px;
  --content-max: 820px;
  --font-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Helvetica Neue", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
                  "PingFang SC", "Helvetica Neue", sans-serif;
  --font-serif: "New York", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========== Sidebar ========== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-inner {
  padding: 32px 24px 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.brand-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 20px 0 6px;
  padding: 0 10px;
}
.s-heading.s-lvl-1 {
  text-transform: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  font-weight: 600;
  margin: 12px 0 4px;
}
.s-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.45;
  transition: background 0.12s ease, color 0.12s ease;
}
.s-link.s-lvl-1 { padding-left: 14px; }
.s-link.s-lvl-2 { padding-left: 22px; font-size: 13px; color: var(--text-muted); }
.s-link.s-lvl-3 { padding-left: 30px; font-size: 12.5px; color: var(--text-muted); }
.s-link:hover {
  background: var(--border-soft);
  color: var(--accent);
}
.s-link.active {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  font-weight: 500;
}

/* collapsible role group */
.s-group {
  margin: 2px 0;
}
.s-group > .s-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  border-radius: 6px;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.s-group > .s-summary::-webkit-details-marker { display: none; }
.s-group > .s-summary:hover {
  background: var(--border-soft);
  color: var(--text);
}
.s-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.18s ease;
}
.s-group[open] > .s-summary > .s-chevron {
  transform: rotate(90deg);
}
.s-group[open] > .s-summary {
  color: var(--text);
}
.s-group-body {
  padding: 2px 0 4px;
}

/* scrollbar */
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #a1a1a6; }

/* ========== Main content ========== */
.content {
  margin-left: var(--sidebar-w);
  padding: 56px 72px 120px;
  min-height: 100vh;
  max-width: calc(var(--sidebar-w) + var(--content-max) + 144px);
}
.prose {
  max-width: var(--content-max);
}

/* Breadcrumb — Apple Developer style */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  font-family: var(--font-sans);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .crumb-sep {
  color: #c7c7cc;
  font-size: 10px;
}
.breadcrumb .crumb-current {
  color: var(--text);
}

/* Page eyebrow (category chip above title) */
.page-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Typography — Apple Developer feel */
.prose h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 64px 0 18px;
  padding-top: 16px;
  color: var(--text);
  border-top: 1px solid var(--border-soft);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 40px; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin: 44px 0 14px;
  color: var(--text);
}
.prose h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}
.prose h5, .prose h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 20px 0 8px;
}
.prose p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.58;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.12s ease;
}
.prose a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* lists */
.prose ul, .prose ol {
  margin: 0 0 18px;
  padding-left: 26px;
  color: var(--text-soft);
}
.prose li {
  margin: 6px 0;
  line-height: 1.65;
}
.prose li > ul, .prose li > ol { margin: 6px 0 6px; }

/* blockquote — Apple Developer callout style */
.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: var(--text);
  font-size: 15.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* code — Apple Developer style: subtle, no pink */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}
.prose pre {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.prose pre code {
  color: var(--text);
  background: transparent;
  padding: 0;
}
.prose pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: inherit;
}

/* inline code that links to another doc */
.prose a.codelink {
  border-bottom: none;
}
.prose a.codelink:hover { text-decoration: none; }
.prose a.codelink > code {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  transition: background 0.12s ease;
}
.prose a.codelink:hover > code {
  background: rgba(0, 113, 227, 0.16);
  color: var(--accent-hover);
}

/* tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.prose thead {
  background: var(--bg-panel);
}
.prose th, .prose td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
}
.prose td { color: var(--text-soft); }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover { background: var(--bg-soft); }

/* hr */
.prose hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 48px 0;
}

/* images */
.prose img {
  max-width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}

/* Syntax highlighting (codehilite minimal) */
.hl .k, .hl .kd, .hl .kn { color: #a626a4; }   /* keyword */
.hl .s, .hl .s1, .hl .s2 { color: #50a14f; }   /* string */
.hl .c, .hl .c1, .hl .cm { color: #a0a1a7; font-style: italic; } /* comment */
.hl .n, .hl .nx, .hl .nb { color: #1d1d1f; }   /* name */
.hl .mi, .hl .mf { color: #986801; }           /* number */
.hl .o { color: #4078f2; }                     /* operator */

/* ========== page footer ========== */
.page-foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ========== Mobile ========== */
.menu-toggle {
  position: fixed;
  top: 16px; left: 16px;
  z-index: 200;
  display: none;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .content {
    margin-left: 0;
    padding: 64px 24px 80px;
  }
  .menu-toggle { display: flex; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 19px; }
  .prose { font-size: 16px; }
}

/* ====================================================================== */
/* HOME · 3D 主控台                                                       */
/* ====================================================================== */

/* ===== 首页：Linear/Method 深色衬线风 ===== */

body.home {
  --home-bg: #08080a;
  --home-panel: #0f0f12;
  --home-border: rgba(255,255,255,0.08);
  --home-text: #fafafa;
  --home-muted: rgba(255,255,255,0.55);
  --home-dim:   rgba(255,255,255,0.38);
  --home-serif: "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "Songti SC", "Times New Roman", "New York", serif;

  background: var(--home-bg);
  color: var(--home-text);
  min-height: 100vh;
}

.home-main {
  margin-left: var(--sidebar-w);
  padding: 0 40px 80px;
  min-height: 100vh;
}

/* ---- 顶部切换 tab ---- */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, var(--home-bg) 0%, rgba(8,8,10,0.92) 75%, rgba(8,8,10,0) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.home-nav-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 14px;
}
.nav-tab {
  position: relative;
  background: none;
  border: 0;
  padding: 6px 2px;
  color: var(--home-muted);
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.18s ease;
}
.nav-tab:hover { color: var(--home-text); }
.nav-tab.active { color: var(--home-text); }
.nav-underline {
  position: absolute;
  bottom: 10px;
  left: 0;
  height: 1.5px;
  background: var(--home-text);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ---- 首页视图：全屏纯净，隐藏 sidebar、tab 透明悬浮 ---- */
body[data-view="hero"] .sidebar { display: none; }
body[data-view="hero"] .home-main { margin-left: 0; }
body[data-view="hero"] .home-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-view="hero"] .home-foot { display: none; }
body[data-view="hero"] .menu-toggle { display: none; }

/* ---- 三视图切换 ---- */
.home-view {
  display: none;
  min-height: calc(100vh - 64px);
  padding: 40px 0 80px;
  animation: view-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-view.active { display: flex; flex-direction: column; justify-content: center; }
#view-directory.active { justify-content: flex-start; padding-top: 60px; }
#view-organ.active { justify-content: center; }
#view-hero.active {
  justify-content: flex-start;
  position: relative;
  padding-top: min(6vh, 56px);
  padding-bottom: min(86vh, 900px);   /* 给下方更大圆留出空间 */
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head .home-tag {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: #86868b;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--home-text);
  margin: 14px 0 16px;
}
.section-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--home-muted);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* ---- 屏 1 · Venn 装饰（下沉，仅露弧顶） ---- */
.hero-venn {
  position: absolute;
  left: 50%;
  bottom: -6vh;
  transform: translateX(-50%);
  height: min(82vh, 820px);
  width: auto;
  max-width: 100vw;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}
.home-hero {
  position: relative;
  z-index: 1;
}

.home-hero {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.home-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--home-muted);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.home-tag-dot {
  width: 5px; height: 5px;
  background: #f0f0f0;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.home-title {
  font-family: var(--home-serif);
  font-size: clamp(44px, 6.2vw, 96px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--home-text);
  margin: 0 0 22px;
  -webkit-text-fill-color: var(--home-text);
  background: none;
}
.home-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-muted);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 400;
}

/* 首页 sidebar 也换成深色，避免割裂 */
body.home .sidebar {
  background: #0a0a0c;
  border-right-color: var(--home-border);
}
body.home .sidebar .brand {
  color: var(--home-text);
  border-bottom-color: var(--home-border);
}
body.home .sidebar .brand-dot { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.35); }
body.home .s-heading { color: var(--home-dim); }
body.home .s-heading.s-lvl-1 { color: var(--home-muted); }
body.home .s-link { color: rgba(255,255,255,0.62); }
body.home .s-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
body.home .s-link.active { background: rgba(255,255,255,0.08); color: #fff; }
body.home .s-group > .s-summary { color: var(--home-muted); }
body.home .s-group > .s-summary:hover { background: rgba(255,255,255,0.05); color: #fff; }
body.home .s-chevron { color: var(--home-dim); }
body.home .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
body.home .sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
body.home .menu-toggle {
  background: rgba(20,20,22,0.95);
  border-color: var(--home-border);
  color: var(--home-text);
}

/* ---------- 整齐椭圆环 · 静态 3D ---------- */

.org-stage {
  position: relative;
  margin: 48px auto 80px;
  width: min(1000px, 94vw);
  height: min(720px, 68vw);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

.org-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(8deg);
}

/* 装饰圆环：一环虚线 + 一环淡实线 */
.org-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 860px;
  height: 620px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.org-ring::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* CEO 中心 */
.org-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.org-ceo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 46px;
  background:
    radial-gradient(circle at 30% 20%, rgba(30,30,34,1) 0%, rgba(18,18,20,1) 70%);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -14px rgba(0,0,0,0.6),
    0 8px 20px -6px rgba(0,0,0,0.4),
    0 0 80px rgba(160, 180, 240, 0.12);
  border: 1px solid rgba(255,255,255,0.1);
}
.ceo-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #93c5fd;
  background: rgba(96,165,250,0.14);
  padding: 3px 12px;
  border-radius: 999px;
}
.ceo-name {
  font-family: var(--home-serif);
  font-size: 38px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.ceo-role {
  font-size: 12px;
  color: var(--home-muted);
  letter-spacing: 0.04em;
}

/* 部门卡：绝对定位到椭圆上的 (x,y)，尺寸统一 */
.dept {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  margin-left: -75px;
  margin-top: -58px;
  text-decoration: none;
  color: inherit;
  transform: translate(var(--x), var(--y));
  z-index: 1;
}

.dept-card {
  width: 100%;
  padding: 14px 14px 12px;
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 14px 30px -12px rgba(0, 0, 0, 0.6),
    0 3px 8px -3px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    opacity 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* 悬停某张：上浮 + 发光，其余卡片略淡聚焦 */
.dept:hover {
  z-index: 20;
}
.dept:hover .dept-card {
  transform: translateY(-5px) scale(1.06);
  background: rgba(30, 30, 34, 0.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 22px 44px -10px rgba(0, 0, 0, 0.7),
    0 6px 14px -4px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent),
    0 0 30px color-mix(in srgb, var(--c) 30%, transparent);
  border-color: color-mix(in srgb, var(--c) 70%, rgba(255,255,255,0.1));
}
.org-stage:has(.dept:hover) .dept:not(:hover) .dept-card {
  opacity: 0.4;
}

.dept-emoji {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 8px;
}
.dept-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #fafafa;
  letter-spacing: -0.005em;
  margin-bottom: 3px;
}
.dept-desc {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,0.52);
}
.dept-chip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c);
  opacity: 0.85;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent);
}

/* ---- 屏 3 · 完整地图 ---- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}
.dir-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 18px 16px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.dir-card:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.dir-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text);
  letter-spacing: 0.02em;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dir-card-body { display: flex; flex-direction: column; gap: 1px; }
.dir-sub-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--home-dim);
  text-transform: none;
  margin: 10px 0 2px;
  padding: 0 2px;
}
.dir-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.4;
  border-radius: 5px;
  transition: background 0.12s ease, color 0.12s ease;
}
.dir-link.dir-lvl-2 { padding-left: 14px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
.dir-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.dir-arrow {
  color: var(--home-dim);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.dir-link:hover .dir-arrow {
  color: #fff;
  transform: translateX(2px);
}

/* --- 系统模块网格 --- */
.home-sys {
  max-width: 1100px;
  margin: 20px auto 0;
}
.home-sys-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home-dim);
  text-align: center;
  margin-bottom: 18px;
}
.home-sys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.sys-card {
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sys-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.sys-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text);
  margin-bottom: 3px;
}
.sys-desc {
  font-size: 12px;
  color: var(--home-muted);
}

.home-foot {
  margin-top: 72px;
  text-align: center;
  font-size: 11px;
  color: var(--home-dim);
  letter-spacing: 0.08em;
}

/* --- Home responsive --- */
@media (max-width: 900px) {
  .home-main { margin-left: 0; padding: 64px 20px 60px; }
  .home-title { font-size: 32px; }
  .dept-card { width: 116px; padding: 10px; }
  .dept-name { font-size: 13px; }
  .dept-desc { font-size: 10.5px; }
  .ceo-name { font-size: 24px; }
  .org-stage { margin: 20px auto 40px; }
}
@media (max-width: 560px) {
  /* Fall back to 2-col grid on tiny screens */
  .org-stage { perspective: none; height: auto; }
  .org-scene {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .org-ring { display: none; }
  .org-center {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  .dept {
    position: static;
    transform: none;
    width: auto;
    margin: 0;
  }
  .dept-card { width: 100%; }
  .dept:hover .dept-card { transform: translateY(-3px) scale(1.02); }
}
