:root {
  --bg: #03050d;
  --panel: rgba(11, 15, 32, 0.62);
  --panel-solid: rgba(11, 15, 32, 0.9);
  --line: rgba(170, 186, 255, 0.14);
  --line-strong: rgba(190, 204, 255, 0.28);
  --text: #e8ebf6;
  --muted: #98a1c0;
  --faint: #6d769a;
  --gold: #f2d28b;
  --gold-deep: #c9a45a;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "思源宋体", "STZhongsong", "华文中宋", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }

#scene { position: fixed; inset: 0; }
#scene canvas { display: block; }
.labels { position: fixed !important; inset: 0; pointer-events: none; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ───── 标题 ───── */
.brand { position: fixed; top: 22px; left: 26px; pointer-events: none; z-index: 5; }
.brand h1 {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: 0.32em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(242, 210, 139, 0.18);
}
.brand .sub { margin: 6px 0 10px; color: var(--muted); font-size: 13px; letter-spacing: 0.18em; }
.brand .chip {
  display: inline-block; font-size: 11px; color: var(--faint); letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: rgba(8, 11, 24, 0.5);
}

/* ───── 工具栏 ───── */
.tools { position: fixed; top: 22px; right: 24px; display: flex; gap: 10px; align-items: center; z-index: 6; flex-wrap: wrap; justify-content: flex-end; max-width: 60vw; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: var(--muted); transition: all .25s; }
.seg button.on { background: rgba(170, 186, 255, 0.16); color: var(--text); }
.pill { border: 1px solid var(--line-strong); background: var(--panel); backdrop-filter: blur(12px); border-radius: 999px; padding: 7px 15px; font-size: 12.5px; color: var(--text); transition: all .25s; }
.pill:hover { border-color: rgba(220, 228, 255, 0.5); }
.pill.gold { border-color: rgba(242, 210, 139, 0.45); color: var(--gold); }
.pill.gold.on { background: linear-gradient(180deg, rgba(242, 210, 139, 0.32), rgba(201, 164, 90, 0.22)); color: #fff4d6; box-shadow: 0 0 24px rgba(242, 210, 139, 0.25); }

/* ───── 节点名字 ───── */
.lbl {
  /* 注意：不能给 transform 加过渡——三维标签每帧都会改写 transform，加了会让名字拖在节点后面 */
  font-family: var(--serif); white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity .45s, color .4s;
  color: rgba(236, 240, 255, 0.92); text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.9);
}
.lbl.t1 { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; color: #fbf3df; }
.lbl.t2 { font-size: 11.5px; color: rgba(214, 222, 248, 0.85); }
.lbl.on { opacity: 1; }
.lbl.on.dim { opacity: 0.18; }
.lbl.known { color: var(--gold); }
.era { font-size: 10.5px; color: rgba(150, 165, 215, 0.42); letter-spacing: 0.08em; white-space: nowrap; pointer-events: none; }

/* ───── 时间轴 ───── */
.timeline {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(900px, calc(100vw - 32px)); padding: 14px 22px 12px; z-index: 6;
}
.tl-row { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.play {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid rgba(242, 210, 139, 0.5);
  background: radial-gradient(circle at 50% 40%, rgba(242, 210, 139, 0.25), rgba(242, 210, 139, 0.05));
  display: grid; place-items: center; transition: box-shadow .3s;
}
.play:hover { box-shadow: 0 0 22px rgba(242, 210, 139, 0.35); }
.play i { width: 0; height: 0; border-left: 12px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.play.playing i { width: 12px; height: 14px; border: 0; margin: 0; border-left: 4px solid var(--gold); border-right: 4px solid var(--gold); }
.tl-text { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.year {
  font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff6dc, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.count { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.tl-track { position: relative; padding-top: 0; }
#spark { display: block; width: 100%; height: 36px; }
#slider { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; position: relative; z-index: 2; }
#slider::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, rgba(242, 210, 139, 0.65), rgba(160, 175, 230, 0.25)); border-radius: 2px; }
#slider::-moz-range-track { height: 2px; background: rgba(160, 175, 230, 0.3); border-radius: 2px; }
#slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: #fff4d6; box-shadow: 0 0 0 4px rgba(242, 210, 139, 0.22), 0 0 18px rgba(242, 210, 139, 0.8); }
#slider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff4d6; box-shadow: 0 0 18px rgba(242, 210, 139, 0.8); }
.ticks { position: relative; height: 16px; font-size: 10.5px; color: var(--faint); }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; top: 2px; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }

/* ───── 图例 ───── */
#legend { position: fixed; left: 26px; bottom: 30px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); z-index: 5; pointer-events: none; }
#legend span { display: flex; align-items: center; gap: 8px; }
#legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ───── 知识卡片 ───── */
#card {
  position: fixed; top: 84px; right: 24px; bottom: 150px; width: 380px; padding: 20px 22px 18px; z-index: 7;
  overflow-y: auto; opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .35s, transform .35s;
  background: var(--panel-solid);
}
#card.open { opacity: 1; transform: none; pointer-events: auto; }
#card::-webkit-scrollbar { width: 6px; }
#card::-webkit-scrollbar-thumb { background: rgba(170, 186, 255, 0.2); border-radius: 3px; }
.card-top { display: flex; align-items: center; gap: 8px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.08em; }
.badge.t1 { color: #fff4d6; background: linear-gradient(180deg, rgba(242, 210, 139, 0.4), rgba(201, 164, 90, 0.25)); border: 1px solid rgba(242, 210, 139, 0.5); }
.badge.t2 { color: var(--text); border: 1px solid var(--line-strong); }
.dom { font-size: 11.5px; color: var(--c); display: flex; align-items: center; gap: 6px; }
.dom::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.x { margin-left: auto; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; }
.x:hover { color: var(--text); }
#card h2 { font-family: var(--serif); font-size: 22px; line-height: 1.35; margin: 14px 0 4px; font-weight: 600; letter-spacing: 0.02em; }
.orig { font-size: 12px; color: var(--faint); font-style: italic; }
.meta { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.special { margin-top: 10px; font-size: 12px; color: #c9f5e2; background: rgba(122, 242, 187, 0.08); border: 1px solid rgba(122, 242, 187, 0.25); border-radius: 10px; padding: 7px 10px; }
.one { font-family: var(--serif); font-size: 16.5px; line-height: 1.75; color: #fbf3df; margin: 16px 0 10px; padding-left: 12px; border-left: 2px solid var(--gold); }
.more { font-size: 13.5px; line-height: 1.8; color: #c9cfe6; margin: 0 0 14px; }
.marks { display: flex; gap: 10px; margin-bottom: 6px; }
.marks button { flex: 1; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-size: 13px; color: var(--muted); transition: all .2s; }
.marks button:hover { color: var(--text); }
.marks button.on { color: #fff4d6; border-color: rgba(242, 210, 139, 0.6); background: rgba(242, 210, 139, 0.16); box-shadow: 0 0 18px rgba(242, 210, 139, 0.15); }
#card h3 { font-size: 12px; color: var(--faint); font-weight: 500; letter-spacing: 0.16em; margin: 18px 0 8px; }
.rel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rel li { font-size: 13px; line-height: 1.5; }
.go { border: 0; background: none; padding: 0; color: #dfe6ff; font-size: 13.5px; text-align: left; border-bottom: 1px dashed rgba(200, 210, 255, 0.3); }
.go:hover { color: #fff; border-bottom-color: var(--gold); }
.tag { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); padding: 0 6px; border-radius: 6px; }
.conf { margin-left: 4px; font-size: 11px; color: var(--faint); }
.conf.c-推测 { color: #c08a8a; }
.note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty { font-size: 12.5px; color: var(--faint); margin: 0; }
.foot { font-size: 11.5px; color: var(--faint); line-height: 1.6; margin: 20px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* ───── 我的认知 ───── */
#myPanel {
  position: fixed; top: 128px; left: 24px; width: 290px; padding: 16px 18px; z-index: 6;
  opacity: 0; transform: translateX(-16px); pointer-events: none; transition: opacity .35s, transform .35s;
  max-height: calc(100vh - 330px); overflow-y: auto;
}
#myPanel.open { opacity: 1; transform: none; pointer-events: auto; }
.my-head { display: flex; flex-direction: column; gap: 4px; }
.my-head b { font-family: var(--serif); color: var(--gold); font-size: 16px; letter-spacing: 0.1em; }
.my-head span { font-size: 12px; color: var(--muted); }
.bar { height: 4px; border-radius: 4px; background: rgba(170, 186, 255, 0.12); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), #fff1c4); box-shadow: 0 0 10px var(--gold); transition: width .5s; }
#myPanel .hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 6px 0; }
#myPanel h4 { font-size: 12.5px; margin: 14px 0 6px; color: var(--text); font-weight: 500; }
#myPanel h4 small { color: var(--faint); font-weight: 400; margin-left: 6px; }
#myPanel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
#myPanel .go { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; padding: 5px 6px; border-radius: 8px; font-size: 13px; }
#myPanel .go:hover { background: rgba(170, 186, 255, 0.08); }
#myPanel .go small { margin-left: auto; color: var(--faint); font-size: 11px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }

/* ───── 悬停提示与操作提示 ───── */
#tip {
  position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: rgba(8, 11, 24, 0.88); border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 11px;
  display: flex; flex-direction: column; gap: 2px; max-width: 280px;
}
#tip.on { opacity: 1; }
#tip b { font-family: var(--serif); font-size: 13.5px; font-weight: 600; }
#tip span { font-size: 11.5px; color: var(--muted); }
#hint {
  position: fixed; left: 50%; bottom: 168px; transform: translateX(-50%); z-index: 5; pointer-events: none;
  font-size: 12px; color: var(--muted); letter-spacing: 0.12em; transition: opacity 1.2s; white-space: nowrap;
}
#hint.gone { opacity: 0; }

/* ───── 手机 ───── */
@media (max-width: 720px) {
  .brand { top: 14px; left: 16px; }
  .brand h1 { font-size: 24px; }
  .brand .sub { font-size: 11.5px; margin: 4px 0 6px; }
  .tools { top: auto; bottom: 150px; right: 16px; left: 16px; max-width: none; justify-content: center; gap: 6px; }
  .seg button, .pill { font-size: 11.5px; padding: 5px 10px; }
  .timeline { bottom: 12px; padding: 10px 14px 8px; }
  .year { font-size: 22px; }
  #legend { display: none; }
  #hint { display: none; }
  #card { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62vh; border-radius: 18px 18px 0 0; transform: translateY(24px); }
  #myPanel { top: 92px; left: 16px; right: 16px; width: auto; max-height: 40vh; }
  .lbl.t1 { font-size: 11.5px; }
  .lbl.t2 { font-size: 10px; }
}

/* ───── 没有 WebGL 时的提示 ───── */
#nogl { display: none; position: fixed; left: 50%; top: 96px; transform: translateX(-50%); z-index: 20; width: min(560px, calc(100vw - 32px));
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 18px; }
#nogl b { font-family: var(--serif); color: var(--gold); font-size: 16px; }
#nogl p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
body.no-webgl #nogl { display: block; }
body.no-webgl .tools, body.no-webgl .timeline, body.no-webgl #legend, body.no-webgl #hint { display: none; }

/* ───── 工具栏两行、搜索 ───── */
.tools { flex-direction: column; align-items: flex-end; gap: 8px; }
.tools .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pill.on:not(.gold) { background: rgba(170, 186, 255, 0.16); border-color: rgba(200, 212, 255, 0.45); }
#vineBtn:not(.on) { color: var(--faint); }
.search { position: relative; }
#search {
  width: 220px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel);
  color: var(--text); font: inherit; font-size: 12.5px; outline: none; backdrop-filter: blur(12px);
}
#search:focus { border-color: rgba(242, 210, 139, 0.55); }
#searchResults { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: 300px; max-height: 360px; overflow-y: auto; padding: 6px; z-index: 12; background: var(--panel-solid); }
#searchResults.open { display: block; }
#searchResults .go, #listPanel .go { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; padding: 6px 8px; border-radius: 8px; font-size: 13px; text-align: left; }
#searchResults .go:hover, #listPanel .go:hover { background: rgba(170, 186, 255, 0.08); }
#searchResults small, #listPanel small { margin-left: auto; color: var(--faint); font-size: 11px; white-space: nowrap; }
#searchResults .empty { padding: 6px 8px; }

/* ───── 列表模式 ───── */
#listPanel {
  position: fixed; top: 128px; left: 24px; bottom: 150px; width: 330px; z-index: 8; display: flex; flex-direction: column;
  opacity: 0; transform: translateX(-16px); pointer-events: none; transition: opacity .35s, transform .35s; background: var(--panel-solid);
}
#listPanel.open { opacity: 1; transform: none; pointer-events: auto; }
.list-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 8px; border-bottom: 1px solid var(--line); }
.list-head b { font-family: var(--serif); color: var(--gold); font-size: 16px; letter-spacing: 0.1em; }
.list-head span { font-size: 12px; color: var(--faint); }
.list-host { overflow-y: auto; padding: 4px 10px 14px; }
.list-body h4 { font-size: 12px; color: var(--muted); letter-spacing: 0.14em; margin: 14px 4px 4px; font-weight: 500; }
.list-body h4 small { color: var(--faint); margin-left: 4px; }
.list-body ul { list-style: none; margin: 0; padding: 0; }
.list-body .go.t1 .nm { color: #fbf3df; font-weight: 600; }
body.no-webgl #listPanel { top: 210px; bottom: 16px; }
body.no-webgl #card { top: 210px; bottom: 16px; }

/* ───── 卡片新增段落 ───── */
.sec { font-size: 13.5px; line-height: 1.8; color: #c9cfe6; margin: 0; }
#card .links a { color: #dfe6ff; font-size: 13px; text-decoration: none; border-bottom: 1px dashed rgba(200, 210, 255, 0.3); }
#card .links a:hover { color: #fff; border-bottom-color: var(--gold); }

/* ───── 进度码 ───── */
#myPanel .sync { display: flex; gap: 8px; margin-top: 14px; }
#myPanel .sync .pill { font-size: 12px; padding: 5px 12px; }
#myPanel .sync-box { margin-top: 8px; }
#myPanel textarea { width: 100%; box-sizing: border-box; background: rgba(8, 11, 24, 0.6); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; font: 12px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
#myPanel .sync-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .tools { align-items: center; }
  .tools .row { justify-content: center; }
  .tools .opt { display: none; }
  #search { width: 150px; }
  #searchResults { right: auto; left: 0; width: 260px; }
  #listPanel { top: 92px; left: 12px; right: 12px; width: auto; bottom: 200px; }
}

/* 工具栏有两行：卡片和面板从第二行下方开始 */
#card { top: 118px; }

/* ───── 审查修复：层级、版式、无 WebGL ───── */
/* 卡片永远在列表之上（手机上两者占同一块区域） */
#card { z-index: 9; }
/* 桌面：工具栏有两行，卡片从第二行下方开始 */
@media (min-width: 721px) and (min-height: 521px) {
  #card { top: 118px; }
}
/* 没有 WebGL：只藏 3D 专属的控件，搜索、列表、我的认知照常可用 */
body.no-webgl .tools { display: flex; }
body.no-webgl .only3d { display: none !important; }
/* 竖屏手机：卡片是底部弹层；搜索结果向上展开，工具栏压在时间轴之上 */
@media (max-width: 720px) {
  #card { top: auto !important; bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .tools { z-index: 8; }
  #searchResults { top: auto; bottom: calc(100% + 6px); }
}
/* 横屏手机（矮屏）：卡片和面板占满高度 */
@media (max-height: 520px) and (min-width: 721px) {
  #card { top: 10px; bottom: 10px; width: 360px; }
  #myPanel, #listPanel { top: 10px; bottom: 10px; max-height: none; }
  .brand .sub, .brand .chip { display: none; }
}

/* ───── 触屏设备（手机、平板，含微信内置浏览器）：可点的东西至少 40 像素，手指才点得准 ───── */
@media (pointer: coarse) {
  .seg button, .pill { min-height: 40px; }
  #search { height: 40px; }
  .x { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  #searchResults .go, #listPanel .go, #myPanel .go { min-height: 40px; }
  #card li .go, #card .links a { display: inline-block; padding: 9px 0; }
  #slider { height: 40px; }
  #slider::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; }
  #slider::-moz-range-thumb { width: 22px; height: 22px; }
}
/* 竖屏手机：工具栏压在时间轴之上、列表面板在工具栏之上；位置按实测高度（--tl-h、--tools-h，由 main.js 写入）计算，
   并让出 iPhone 底部横条的安全区 */
@media (max-width: 720px) {
  .timeline { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .tools { bottom: calc(var(--tl-h, 140px) + 20px + env(safe-area-inset-bottom)); }
  #listPanel { bottom: calc(var(--tl-h, 140px) + var(--tools-h, 70px) + 28px + env(safe-area-inset-bottom)); }
}

/* ───── 右侧高度滑杆：放大以后把视角沿树上下移动（树根到树梢） ───── */
#heightNav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
#heightNav .hn-track { position: relative; width: 28px; height: 240px; }
#heightSlider { -webkit-appearance: none; appearance: none; position: absolute; left: 50%; top: 50%; width: 240px; height: 28px; margin: 0;
  transform: translate(-50%, -50%) rotate(-90deg); background: transparent; cursor: ns-resize; }
#heightSlider::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, rgba(160, 175, 230, 0.25), rgba(242, 210, 139, 0.55)); border-radius: 2px; }
#heightSlider::-moz-range-track { height: 2px; background: rgba(160, 175, 230, 0.3); border-radius: 2px; }
#heightSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: #dfe6ff; box-shadow: 0 0 12px rgba(170, 186, 255, 0.8); }
#heightSlider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #dfe6ff; }
@media (max-width: 720px) {
  #heightNav { right: 4px; top: 42%; }
  #heightNav .hn-track { height: 180px; }
  #heightSlider { width: 180px; }
}
@media (pointer: coarse) {
  #heightNav .hn-track { width: 40px; }
  #heightSlider { height: 40px; }
  #heightSlider::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -10px; }
}

/* ───── 两棵树的切换（标题下方） ───── */
.brand .trees { display: flex; gap: 6px; margin-top: 10px; pointer-events: auto; }
.brand .trees a { font-size: 12px; color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8, 11, 24, 0.35); transition: all .25s; }
.brand .trees a:hover { color: var(--text); border-color: var(--line-strong); }
.brand .trees a.on { color: var(--gold); border-color: rgba(242, 210, 139, 0.55); background: rgba(242, 210, 139, 0.08); }
@media (pointer: coarse) { .brand .trees a { min-height: 40px; display: inline-flex; align-items: center; } }
#card .special a { color: var(--gold); }
