@import url("navigation-layout.css?v=20261119-site-nav");
/* ==========================================================================
   中国风格 · 全站设计系统
   依据《网站首页—文物详情页PDD》第 0 节 Design Tokens
   ========================================================================== */

/* 霞鹜文楷（LXGW WenKai）：本地子集化字体，用于大标题，营造中式书卷气。
   已用 fontTools 子集化（仅保留站点用到的字符），提供 Regular(400) 与 Medium(500) 两档字重。
   注意：官方无 Bold 字重，加粗效果用 Medium 字重承担。 */
@font-face {
  font-family: "LXGW WenKai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/LXGWWenKai-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "LXGW WenKai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/LXGWWenKai-Medium.woff2") format("woff2");
}

/* 思源宋体（Source Han Serif SC / Noto Serif SC）：本地子集化字体。
   同样只保留站点用到的字符，提供 Regular(400) / Medium(500) / SemiBold(600) 三档字重。
   用于首页等需要书卷气的正文与标题。 */
/* 平台名标题：方正小标宋 B05S。子集只含平台名与常用标点，8KB；
   缺字时回落思源宋体，不会掉成黑体。 */
@font-face {
  font-family: "FZ XiaoBiaoSong";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/FZXiaoBiaoSong-B05S-subset.woff2") format("woff2");
}
@font-face {
  font-family: "Source Han Serif SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SourceHanSerifSC-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Han Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/SourceHanSerifSC-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Source Han Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/SourceHanSerifSC-SemiBold.woff2") format("woff2");
}

:root {
  /* ---- 全局尺寸缩放 ----
     整站的字号、描边、内距、图标、控件尺寸都由 --s 驱动；
     改变 --s 即可让整页等比放大 / 缩小而不破坏版面比例。
     1 = 初版基准，1.2 = 在初版基础上整体放大约两成。 */
  --s: 1.2;

  /* ---- 色彩 ---- */
  --color-page: #ffffff;
  --color-ink: #171717;
  --color-ink-2: #626262;
  --color-ink-3: #777777;
  --color-border: #d7d7d7;
  --color-border-strong: #777777;
  --color-line-strong: #a3a3a3;
  --color-surface-subtle: #f6f6f4;
  --color-stage: #f0f0ee;
  --color-hover: #eaeae7;
  --color-inverse: #ffffff;
  --color-brand: #0f7a70;
  --color-brand-deep: #0a4c47;
  --color-focus: #245fc5;
  --color-error: #c63a2f;
  /* 卡片悬停时标题下划线的颜色（参考站用赭黄 #ffaf4b，这里随站点主色） */
  --color-hover-line: var(--color-brand);

  /* ---- 排版 ---- */
  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-en: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, serif;
  /* 思源宋体：本地子集字体，用于首页正文与标题 */
  --font-serif-cn: "Source Han Serif SC", "Noto Serif SC", "Songti SC",
    SimSun, serif;

  --fs-display: calc(64px * var(--s));
  --lh-display: calc(72px * var(--s));
  --fs-h1: calc(40px * var(--s));
  --lh-h1: calc(52px * var(--s));
  --fs-h2: calc(30px * var(--s));
  --lh-h2: calc(40px * var(--s));
  --fs-h3: calc(24px * var(--s));
  --lh-h3: calc(34px * var(--s));
  --fs-h4: calc(20px * var(--s));
  --lh-h4: calc(30px * var(--s));
  --fs-body-lg: calc(16px * var(--s));
  --lh-body-lg: calc(26px * var(--s));
  --fs-body: calc(14px * var(--s));
  --lh-body: calc(24px * var(--s));
  --fs-label: calc(13px * var(--s));
  --lh-label: calc(20px * var(--s));
  --fs-caption: calc(12px * var(--s));
  --lh-caption: calc(18px * var(--s));

  /* ---- 间距（4px 基准） ---- */
  --sp-1: calc(4px * var(--s));
  --sp-2: calc(8px * var(--s));
  --sp-3: calc(12px * var(--s));
  --sp-4: calc(16px * var(--s));
  --sp-5: calc(20px * var(--s));
  --sp-6: calc(24px * var(--s));
  --sp-8: calc(32px * var(--s));
  --sp-10: calc(40px * var(--s));
  --sp-12: calc(48px * var(--s));
  --sp-16: calc(64px * var(--s));
  --sp-20: calc(80px * var(--s));
  --sp-24: calc(96px * var(--s));

  /* ---- 结构 ---- */
  --container-max: 2400px;
  --gutter: clamp(calc(24px * var(--s)), 2.4vw, calc(56px * var(--s)));
  --grid-gap: calc(24px * var(--s));
  --header-h: calc(72px * var(--s));
  --sidebar-w: calc(396px * var(--s));
  /* 专题 tab 栏高度与顶栏导航同字号后重新取整（22 行高 + 上下 12 内距） */
  --topic-tabs-h: 46px;

  /* ---- 层级 ---- */
  --z-base: 0;
  --z-hover: 10;
  /* 45：项目研究页的轮播图 active 帧是 30、箭头 40，顶栏若仍是 30 会被压在下面，
     下拉菜单就看不见了；45 高于页面内容、低于抽屉 50 与弹窗 60。 */
  --z-header: 45;
  --z-menu: 40;
  --z-drawer: 50;
  --z-modal: 60;
  --z-toast: 70;

  /* ---- 动效 ---- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 140ms;
  --t-mid: 240ms;
}

/* ========================== 基础重置 ========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Firefox：细线 + 淡色滑块（Chromium 若声明这两个属性会忽略 ::-webkit-scrollbar，故仅限 Firefox）
   判据用 -moz-appearance，只有 Firefox 认；Chromium 会整块跳过 */
@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(24, 20, 16, 0.2) transparent;
  }
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-cn);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: calc(2px * var(--s)) solid var(--color-focus);
  outline-offset: calc(2px * var(--s));
}

::selection {
  background: var(--color-ink);
  color: var(--color-inverse);
}

/* 滚动条：细线胶囊——10px 命中外框里画 4px 的圆头滑块，细但不难点 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(24, 20, 16, 0.2);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 20, 16, 0.36);
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* ========================== 排版 ========================== */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 500; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 500; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 500; }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 500; }

.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.body { font-size: var(--fs-body); line-height: var(--lh-body); }
.label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; }
.caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--color-ink-3); }

.muted { color: var(--color-ink-2); }
.faint { color: var(--color-ink-3); }
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--font-serif); }

.icon {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
  flex: none;
  display: inline-block;
  vertical-align: calc(-2px * var(--s));
}

/* 竖排辅助标识 */
.vertical {
  writing-mode: vertical-rl;
  letter-spacing: 0.24em;
  font-size: var(--fs-caption);
  color: var(--color-ink-3);
}

/* ========================== 布局 ========================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding-top: var(--header-h);
}

.section {
  margin-top: var(--sp-20);
}

.section:first-child {
  margin-top: var(--sp-12);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: calc(1px * var(--s)) solid var(--color-border);
  margin-bottom: var(--sp-6);
}

.section-head__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 500;
}

.section-head__sub {
  font-size: var(--fs-label);
  color: var(--color-ink-2);
  max-width: calc(520px * var(--s));
}

.rule {
  height: calc(1px * var(--s));
  background: var(--color-border);
  border: 0;
  margin: 0;
}

/* ========================== 顶部导航 ========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: var(--color-page);
  border-bottom: calc(1px * var(--s)) solid var(--color-border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.brand__seal {
  width: calc(36px * var(--s));
  height: calc(36px * var(--s));
  display: block;
  object-fit: contain;
  flex: none;
}

.brand__name {
  font-size: calc(18px * var(--s));
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-en);
  font-size: calc(10px * var(--s));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  display: block;
  margin-top: calc(1px * var(--s));
}

.brand__seal { border-radius: calc(1px * var(--s)); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  height: 100%;
  margin-left: auto;
}

.nav__group {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.nav__item {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: calc(15px * var(--s));
  color: var(--color-ink);
  letter-spacing: 0.02em;
  transition: color var(--t-fast) ease-out;
}

.nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px * var(--s));
  height: calc(2px * var(--s));
  background: var(--color-brand);
  transform: scaleX(0);
  transition: transform var(--t-fast) ease-out;
}

.nav__item:hover::after {
  transform: scaleX(1);
}

.nav__item.is-active::after {
  transform: scaleX(1);
}

/* ---- 组合栏目：资源检索 → 关联探索 / 专题发现 / 数据汇聚 ---- */
.nav__toggle {
  gap: 5px;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.nav__caret {
  width: 12px;
  height: 12px;
  opacity: 0.45;
  transition: transform 200ms var(--ease), opacity var(--t-fast) ease-out;
}
.nav__group.is-open > .nav__item { color: var(--color-ink); }
.nav__group.is-open > .nav__item::after { transform: scaleX(1); }
.nav__group.is-open .nav__caret { transform: rotate(180deg); opacity: 0.9; }

/* 二级菜单：由 .is-open 控制（JS 统管悬停 / 点击 / 键盘），纯 CSS 悬停会与点击收起打架 */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 236px;
  padding: 6px 0;
  background: var(--color-page);
  border: 1px solid var(--color-border);
  box-shadow:
    0 20px 46px -20px rgba(23, 23, 23, 0.28),
    0 2px 8px rgba(23, 23, 23, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  /* 关闭时先播完淡出再隐藏；打开时立刻可聚焦（visibility 不参与过渡） */
  transition: opacity var(--t-fast) ease-out, transform 200ms var(--ease), visibility 0s linear var(--t-fast);
  z-index: var(--z-menu);
}

.nav__group.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity var(--t-fast) ease-out, transform 200ms var(--ease), visibility 0s;
}

.nav-menu__link {
  display: block;
  padding: 9px 20px 10px;
  color: var(--color-ink-2);
  white-space: nowrap;
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out;
}

.nav-menu__label {
  display: block;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
}

.nav-menu__desc {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  line-height: 16px;
  color: var(--color-ink-3);
  letter-spacing: 0.01em;
}

.nav-menu__link:hover {
  background: var(--color-surface-subtle);
}
.nav-menu__link:hover .nav-menu__label { color: var(--color-ink); }
.nav-menu__link:hover .nav-menu__desc { color: var(--color-ink-2); }

.nav-menu__link.is-active {
  box-shadow: inset 2px 0 0 var(--color-brand);
}
.nav-menu__link.is-active .nav-menu__label { color: var(--color-ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
}

.icon-btn {
  width: calc(40px * var(--s));
  height: calc(40px * var(--s));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  transition: background var(--t-fast) ease-out;
}

.icon-btn:hover {
  background: var(--color-surface-subtle);
}

.icon-btn svg {
  width: calc(24px * var(--s));
  height: calc(24px * var(--s));
  stroke-width: 2;
}

/* ========================== 侧边栏（右侧抽屉） ========================== */
.sidebar-mask {
  position: fixed;
  inset: 0;
  background: rgba(23, 23, 23, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), visibility var(--t-mid);
  z-index: var(--z-drawer);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  max-width: 92vw;
  background: var(--color-surface-subtle);
  border-right: calc(1px * var(--s)) solid var(--color-border);
  box-shadow: calc(18px * var(--s)) 0 calc(44px * var(--s)) rgba(23, 23, 23, 0.06);
  transform: translateX(-100%);
  transition: transform var(--t-mid) var(--ease);
  z-index: calc(var(--z-drawer) + 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.sidebar-open .sidebar-mask {
  opacity: 1;
  visibility: visible;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

body.sidebar-open {
  overflow: hidden;
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--sp-6);
  border-bottom: calc(1px * var(--s)) solid var(--color-border);
  flex: none;
}

.sidebar__tabs {
  display: flex;
  gap: var(--sp-1);
}

.sidebar__tab {
  padding: calc(7px * var(--s)) calc(14px * var(--s));
  font-size: calc(15px * var(--s));
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-hover);
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out;
}

.sidebar__tab:hover {
  background: var(--color-border);
}

.sidebar__tab.is-active {
  background: var(--color-ink);
  color: var(--color-inverse);
}

.sidebar__body {
  padding: var(--sp-6);
}

.sidebar__group + .sidebar__group {
  margin-top: var(--sp-8);
}

.sidebar__group-title {
  font-size: calc(15px * var(--s));
  color: var(--color-ink);
  letter-spacing: 0.02em;
  padding-bottom: var(--sp-2);
  border-bottom: calc(1px * var(--s)) solid var(--color-line-strong);
}

.sidebar__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-3);
  padding: calc(10px * var(--s)) 0;
  font-size: calc(14px * var(--s));
  color: var(--color-ink-2);
  border-bottom: calc(1px * var(--s)) solid var(--color-border);
  transition: color var(--t-fast) ease-out, padding-left var(--t-fast) var(--ease);
}

.sidebar__link:hover {
  color: var(--color-ink);
  padding-left: var(--sp-1);
}

.sidebar__link .arrow {
  margin-left: auto;
  opacity: 0;
  transition: opacity var(--t-fast) ease-out;
}

.sidebar__link:hover .arrow {
  opacity: 1;
}

.sidebar__link.is-active {
  color: var(--color-ink);
  font-weight: 500;
  box-shadow: inset calc(2px * var(--s)) 0 0 var(--color-ink);
  padding-left: var(--sp-2);
}

.sidebar__foot {
  margin-top: auto;
  padding: var(--sp-6);
  font-size: var(--fs-caption);
  color: var(--color-ink-3);
  line-height: 1.9;
}

/* ========================== 按钮 ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: calc(44px * var(--s));
  padding: 0 var(--sp-6);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  border: calc(1px * var(--s)) solid var(--color-ink);
  background: var(--color-page);
  color: var(--color-ink);
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out,
    border-color var(--t-fast) ease-out;
}

.btn:hover {
  background: var(--color-surface-subtle);
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-inverse);
  border-color: var(--color-ink);
}

.btn--primary:hover {
  background: #333333;
}

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-ink-2);
}

.btn--ghost:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--sm {
  height: calc(36px * var(--s));
  padding: 0 var(--sp-4);
  font-size: var(--fs-caption);
}

.btn svg {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--s));
  font-size: var(--fs-label);
  font-weight: 500;
  border-bottom: calc(1px * var(--s)) solid var(--color-ink);
  padding-bottom: calc(2px * var(--s));
  transition: opacity var(--t-fast) ease-out;
}

.text-link:hover {
  opacity: 0.6;
}

.text-link .icon {
  width: calc(13px * var(--s));
  height: calc(13px * var(--s));
}

/* ========================== 标签 / 筛选 ========================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--s));
  height: calc(30px * var(--s));
  padding: 0 calc(10px * var(--s));
  font-size: var(--fs-caption);
  line-height: 1;
  color: var(--color-ink-2);
  border: calc(1px * var(--s)) solid var(--color-border);
  background: var(--color-page);
  cursor: pointer;
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out,
    border-color var(--t-fast) ease-out;
}

.tag:hover {
  background: var(--color-surface-subtle);
  border-color: var(--color-border-strong);
  color: var(--color-ink);
}

.tag.is-selected {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-inverse);
}

.tag.is-static {
  cursor: default;
}

.tag.is-static:hover {
  background: var(--color-page);
  border-color: var(--color-border);
  color: var(--color-ink-2);
}


/* ========================== 搜索框 ========================== */
/* 细黑描边 + 全圆角，内部留 6px 让右侧按钮自成一颗胶囊 */
.search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: calc(40px * var(--s));
  padding: 0 calc(4px * var(--s)) 0 var(--sp-4);
  border: calc(1px * var(--s)) solid var(--color-ink);
  border-radius: calc(100px * var(--s));
  background: var(--color-page);
  transition: box-shadow var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.search:focus-within {
  border-color: var(--color-ink);
  outline: 0;
  box-shadow: 0 0 0 calc(3px * var(--s)) rgba(23, 23, 23, 0.12);
}

.search svg {
  width: calc(15px * var(--s));
  height: calc(15px * var(--s));
  color: var(--color-ink-2);
  flex: none;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: calc(12px * var(--s));
  letter-spacing: 0.01em;
}

.search input::placeholder {
  color: var(--color-ink-3);
}

.search__submit {
  flex: none;
  height: calc(30px * var(--s));
  padding: 0 calc(17px * var(--s));
  border-radius: calc(100px * var(--s));
  background: var(--color-ink);
  color: var(--color-inverse);
  font-size: calc(11px * var(--s));
  letter-spacing: 0.12em;
  transition: background var(--t-fast) ease-out;
}

.search__submit:hover {
  background: #333;
}

/* ========================== 文物卡片 ========================== */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6) var(--grid-gap);
}

.artifact-card {
  position: relative;
  display: block;
  cursor: pointer;
}

/* 悬停动效参照 dinesen.com/inspiration 的 image-hover：
   1) 图框下缘裁掉一道缝（wrapper 的 clip-path inset 底部 10px）
   2) 照片在框内整体上浮 5px，形成「物件轻轻浮起」的错觉
   两个动作同时长 300ms，缓动 ease；光标移开原路回去 */
.artifact-card__stage {
  position: relative;
  background: #1c1e20;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  transition: clip-path 300ms ease;
}

.artifact-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.artifact-card:hover .artifact-card__stage,
.artifact-card:focus-visible .artifact-card__stage {
  clip-path: inset(0 0 calc(10px * var(--s)) 0);
}

.artifact-card:hover .artifact-card__img,
.artifact-card:focus-visible .artifact-card__img {
  transform: translateY(calc(-5px * var(--s)));
}

.artifact-card__body {
  padding-top: calc(8px * var(--s));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  min-width: 0;
}

.artifact-card__body > div {
  min-width: 0;
}

.artifact-card__name {
  display: inline-block;
  max-width: 100%;
  padding-bottom: calc(1px * var(--s));
  border-bottom: calc(1px * var(--s)) solid transparent;
  font-size: var(--fs-body);
  line-height: calc(22px * var(--s));
  color: var(--color-ink);
  transition: border-color 250ms ease, color var(--t-fast) ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 参考站用一条赭黄细线点亮标题；这里换成站点主色，长度随文字 */
.artifact-card:hover .artifact-card__name,
.artifact-card:focus-visible .artifact-card__name {
  border-bottom-color: var(--color-hover-line);
}

.artifact-card__meta {
  font-size: var(--fs-caption);
  line-height: calc(18px * var(--s));
  color: var(--color-ink-3);
  margin-top: calc(2px * var(--s));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 文物图操作区：红色「+」+ 收藏/相似搜索/比较 ============
   悬停文物图即浮出；菜单贴在「+」右侧（贴近视口右缘时由 JS 改为在下方展开）。
   宿主元素需要 position:relative，并加 class="has-acts"。 */
.acts {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  z-index: var(--z-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-2px * var(--s)));
  transition: opacity var(--t-fast) ease-out, transform var(--t-fast) var(--ease),
    visibility var(--t-fast);
}

.has-acts:hover > .acts,
.has-acts:focus-within > .acts,
.acts:hover,
.acts:focus-within,
.acts.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 红色「+」 */
.acts__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(32px * var(--s));
  height: calc(32px * var(--s));
  flex: none;
  background: var(--color-brand);
  color: var(--color-inverse);
  transition: background var(--t-fast) ease-out;
}

.acts__plus:hover,
.acts.is-open .acts__plus {
  background: #7d2624;
}

.acts__plus svg {
  width: calc(16px * var(--s));
  height: calc(16px * var(--s));
  transition: transform var(--t-mid) var(--ease);
}

.acts.is-open .acts__plus svg {
  transform: rotate(45deg);
}

/* 菜单：默认贴在「+」右侧；靠近视口右缘时（.is-down）改为在下方展开、右边缘对齐
   未展开时 display:none，避免隐藏元素撑出横向滚动 */
.acts__menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: calc(150px * var(--s));
  background: var(--color-page);
  border: calc(1px * var(--s)) solid var(--color-border);
  box-shadow: 0 calc(6px * var(--s)) calc(22px * var(--s)) rgba(24, 20, 16, 0.09);
  z-index: calc(var(--z-hover) + 1);
}

.has-acts:hover > .acts .acts__menu,
.acts:hover .acts__menu,
.acts:focus-within .acts__menu,
.acts.is-open .acts__menu {
  display: block;
}

/* 下方展开：瀑布流最右列、以及详情页图像右上角 */
.acts.is-down .acts__menu,
.stage > .acts .acts__menu {
  top: 100%;
  left: auto;
  right: 0;
}

.acts__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: calc(10px * var(--s)) var(--sp-4);
  font-size: var(--fs-caption);
  line-height: calc(18px * var(--s));
  color: var(--color-ink);
  text-align: left;
  border-bottom: calc(1px * var(--s)) solid var(--color-border);
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out;
}

.acts__item:last-child {
  border-bottom: 0;
}

.acts__item:hover {
  background: var(--color-surface-subtle);
}

.acts__item svg {
  width: calc(15px * var(--s));
  height: calc(15px * var(--s));
  flex: none;
  color: var(--color-ink-2);
}

.acts__item:hover svg {
  color: var(--color-ink);
}

.acts__item.is-on {
  color: var(--color-brand);
}

.acts__item.is-on svg {
  color: var(--color-brand);
  fill: currentColor;
}

/* ============ 收藏成功提示条（底部居中，可继续「加入专辑」） ============ */
.fav-toast {
  position: fixed;
  left: 50%;
  bottom: calc(44px * var(--s));
  z-index: calc(var(--z-modal) - 5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(6px * var(--s));
  padding: calc(13px * var(--s)) calc(22px * var(--s));
  background: var(--color-page);
  border: calc(1px * var(--s)) solid var(--color-border);
  box-shadow: 0 calc(10px * var(--s)) calc(34px * var(--s)) rgba(20, 16, 12, 0.14);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(10px * var(--s)));
  transition: opacity var(--t-mid) ease-out, transform var(--t-mid) var(--ease);
  pointer-events: none;
}

.fav-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* 上行：收藏成功 | 加入专辑 › */
.fav-toast__row {
  display: flex;
  align-items: center;
  gap: calc(18px * var(--s));
}

/* 下行：这件文物还能怎么用（比上行轻一档，不抢「加入专辑」） */
.fav-toast__hint {
  font-size: var(--fs-caption);
  line-height: calc(18px * var(--s));
  color: var(--color-ink-3);
}

.fav-toast__text {
  letter-spacing: 0.04em;
}

.fav-toast__sep {
  width: calc(1px * var(--s));
  align-self: stretch;
  background: var(--color-border);
}

.fav-toast__act {
  display: inline-flex;
  align-items: center;
  gap: calc(2px * var(--s));
  font-size: var(--fs-body);
  color: var(--color-brand);
  transition: opacity var(--t-fast) ease-out;
}

.fav-toast__act:hover {
  opacity: 0.78;
}

.fav-toast__act svg {
  width: calc(14px * var(--s));
  height: calc(14px * var(--s));
  flex: none;
}

/* ============ 加入专辑 / 新建专辑弹窗 ============ */
.modal__panel--album {
  width: min(calc(460px * var(--s)), 100%);
}

/* 专辑列表：一行一个，右侧方形勾选 */
.album-list {
  margin-top: var(--sp-4);
  max-height: calc(322px * var(--s));
  overflow: auto;
}

.album-list > li {
  border-bottom: calc(1px * var(--s)) solid var(--color-border);
}

.album-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: calc(11px * var(--s)) 0;
  text-align: left;
}

.album-thumb {
  position: relative;
  flex: none;
  width: calc(40px * var(--s));
  height: calc(40px * var(--s));
  overflow: hidden;
  background: var(--color-surface-subtle);
  border: calc(1px * var(--s)) solid var(--color-border);
}

.album-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 空专辑：一层浅色内框，避免看成空复选框 */
.album-thumb:empty::after {
  content: "";
  position: absolute;
  inset: calc(5px * var(--s));
  border: calc(1px * var(--s)) solid var(--color-border);
}

.album-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: calc(1px * var(--s));
  min-width: 0;
}

.album-name {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color var(--t-fast) ease-out;
}

.album-row:hover .album-name {
  color: var(--color-brand);
}

.album-count {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--color-ink-3);
}

.album-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(20px * var(--s));
  height: calc(20px * var(--s));
  border: calc(1px * var(--s)) solid var(--color-border);
  transition: background var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}

.album-check svg {
  width: calc(13px * var(--s));
  height: calc(13px * var(--s));
  color: var(--color-inverse);
  opacity: 0;
}

.album-row.is-in .album-check {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.album-row.is-in .album-check svg {
  opacity: 1;
}

.album-new {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: calc(12px * var(--s)) 0 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--color-ink-2);
  transition: color var(--t-fast) ease-out;
}

.album-new:hover {
  color: var(--color-brand);
}

.album-new svg {
  width: calc(14px * var(--s));
  height: calc(14px * var(--s));
  flex: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.modal[hidden] {
  display: none;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.4);
  opacity: 0;
  transition: opacity var(--t-mid) ease-out;
}

.modal.is-open .modal__scrim {
  opacity: 1;
}

.modal__panel {
  position: relative;
  width: min(calc(420px * var(--s)), 100%);
  background: var(--color-page);
  border: calc(1px * var(--s)) solid var(--color-border);
  box-shadow: 0 calc(24px * var(--s)) calc(64px * var(--s)) rgba(20, 16, 12, 0.18);
  padding: calc(34px * var(--s)) calc(34px * var(--s)) var(--sp-6);
  opacity: 0;
  transform: translateY(calc(10px * var(--s)));
  transition: opacity var(--t-mid) ease-out, transform var(--t-mid) var(--ease);
}

.modal.is-open .modal__panel {
  opacity: 1;
  transform: none;
}

.modal__title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.modal__title::after {
  content: "";
  display: block;
  width: calc(32px * var(--s));
  height: calc(2px * var(--s));
  margin-top: var(--sp-3);
  background: var(--color-brand);
}

.modal__lede {
  margin-top: var(--sp-3);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--color-ink-3);
}

.modal__field {
  display: block;
  margin-top: var(--sp-6);
}

.modal__label {
  display: block;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--color-ink-2);
  margin-bottom: var(--sp-2);
}

/* 标签后的一枚极小的「必填 / 选填」，不额外占一行 */
.modal__req,
.modal__opt {
  margin-left: calc(4px * var(--s));
  font-size: calc(9.5px * var(--s));
  letter-spacing: 0.04em;
}

.modal__req {
  color: var(--color-brand);
}

.modal__opt {
  color: var(--color-ink-3);
  opacity: 0.75;
}

.modal__input {
  width: 100%;
  height: calc(42px * var(--s));
  padding: 0 var(--sp-3);
  background: var(--color-page);
  border: calc(1px * var(--s)) solid var(--color-border);
  font-size: var(--fs-body);
  color: var(--color-ink);
  transition: border-color var(--t-fast) ease-out;
}

.modal__input::placeholder {
  color: #a8a8a8;
}

.modal__input:focus {
  outline: none;
  border-color: var(--color-ink);
}

.modal__error {
  margin-top: var(--sp-2);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--color-error);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* 弹窗打开时锁住背景滚动 */
.is-modal-open {
  overflow: hidden;
}

/* 触屏没有 hover：操作区常驻，点「+」展开菜单 */
@media (hover: none) {
  .has-acts > .acts {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* 详情页：操作区常驻在文物图片右上角，贴住画面边角（与设计稿一致） */
.stage > .acts {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* 展开收藏夹下拉时菜单让位（放在最后，压过上面的 display 规则） */
/* ========================== 页脚 ========================== */
.site-footer {
  margin-top: var(--sp-20);
  border-top: calc(1px * var(--s)) solid var(--color-border);
  padding: var(--sp-8) 0 var(--sp-10);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-10);
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
/* 页脚的平台全称与顶栏同一套字（方正小标宋），字号略收以适应 18 字 */
.site-footer .brand__name {
  font-family: "FZ XiaoBiaoSong", "Source Han Serif SC", "Songti SC", serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .02em;
}

.site-footer__cols {
  display: flex;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

.site-footer__col h4 {
  font-size: var(--fs-caption);
  color: var(--color-ink-3);
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-3);
  font-weight: 400;
}

.site-footer__col a {
  display: block;
  font-size: calc(12px * var(--s));
  color: var(--color-ink-2);
  padding: calc(4px * var(--s)) 0;
}

.site-footer__col a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: calc(3px * var(--s));
}

/* ========================== 通用小组件 ========================== */
/* 仅供读屏与语义结构使用，视觉上不占位 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.empty-state {
  padding: var(--sp-24) 0;
  text-align: center;
  color: var(--color-ink-3);
  border: calc(1px * var(--s)) solid var(--color-border);
  border-top: 0;
}


.toast {
  position: fixed;
  left: 50%;
  bottom: calc(40px * var(--s));
  transform: translate(-50%, calc(8px * var(--s)));
  background: var(--color-ink);
  color: var(--color-inverse);
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  padding: calc(12px * var(--s)) calc(20px * var(--s));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) ease-out, transform var(--t-fast) var(--ease);
  z-index: var(--z-toast);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========================== 响应式 ========================== */
@media (max-width: 1439px) {
  :root {
    /* 中等屏：整体缩放略收，避免长标题折行 */
    --s: 1.12;
    --gutter: calc(30px * var(--s));
  }
  .artifact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root {
    --s: 1.02;
    --gutter: calc(20px * var(--s));
  }
  .artifact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: var(--sp-6); }
  .brand__sub { display: none; }
  .section { margin-top: var(--sp-16); }
  .site-footer__cols { gap: var(--sp-10); }
}

@media (max-width: 767px) {
  :root {
    --s: 1;
    --gutter: calc(16px * var(--s));
    --header-h: calc(52px * var(--s));
  }
  .nav { display: none; }
  .artifact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { margin-top: var(--sp-12); }
  .artifact-card__img { padding: 6%; }
  .site-footer { margin-top: var(--sp-16); }
  .site-footer__inner { flex-direction: column; gap: var(--sp-8); }
  .site-footer__cols { gap: var(--sp-8); }
  .site-footer__col { min-width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   顶部导航 · 按 UI 规范定稿
   60px 高 / 白底 + 底部 1px 细线；Logo 40×40；品牌间距 14；
   中文 20/28·600；英文 10/14；导航 16/24·400；项距 32；到菜单 28；
   图标 22–24（热区 44×44）；当前栏目下划线 2px、距文字 8px
   ========================================================================== */
:root { --header-h: 54px; }

.site-header {
  height: var(--header-h);
  background: #fff;
  /* 去掉顶栏底部灰线：当前栏目红线下划线的底部即为顶栏边界 */
  border-bottom: 0;
}
.site-header__inner {
  height: 100%;
  max-width: none;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
/* 菜单键在最左，紧跟品牌；导航靠右，搜索键收在最右 */
.site-header .site-header__menu {
  margin-right: 4px;
  margin-left: -11px;
}

/* ---- 品牌组合 ---- */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.site-header .brand__seal {
  width: 40px;
  height: 40px;
  flex: none;
}
/* ---- 品牌标志：器形自转的循环 GIF，素材已按器形紧裁（约 4:5）----
   在 40px 盒子里 contain 会缩到 32×40，轻放大一点让视觉重量接近文字。 */
.brand__morph {
  position: relative;
  display: block;
}
.brand__morph__art,
.brand__morph__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 素材已按器形全帧紧裁（含旋转最大外廓），按盒子原尺寸呈现即可 */
  transform: none;
}
.brand__morph__art {
  transition: opacity .42s ease-out;
}
.brand__morph__video {
  opacity: 0;
  background: #fff; /* 首帧未绘制前保持纸白，与顶栏底色一致 */
  transition: opacity .26s ease-out;
  pointer-events: none;
}
.brand__morph.is-live .brand__morph__video { opacity: 1; }
.brand__morph.is-live .brand__morph__art { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .brand__morph__art,
  .brand__morph__video { transition: none; }
}
.site-header .brand__name {
  font-family: "FZ XiaoBiaoSong", "Source Han Serif SC", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  /* 小标宋的字面比常规宋体略高，视觉重心偏上，微调半像素落回中线 */
  transform: translateY(.5px);
}
.site-header .brand__sub { display: none; }

/* ---- 主导航 ---- */
.site-header .nav {
  gap: 32px;
  height: auto;
  margin-left: auto;
}
.site-header .nav__item {
  height: auto;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.site-header .nav__item::after {
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--color-ink);
}
.site-header .nav__item.is-active::after {
  transform: scaleX(1);
}

/* ---- 右侧动作区：44×44 热区，图标 22 ---- */
.site-header .header-actions {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 17px; /* 28px 视觉间距 - 图标内缩 11px */
}
.site-header .icon-btn {
  width: 44px;
  height: 44px;
}
.site-header .icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

/* ---- 顶栏搜索：点图标在下方展开，回车提交到资源检索页 ---- */
.header-search {
  position: absolute;
  top: calc(100% + 30px);
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 392px;
  height: 52px;
  padding: 0 8px 0 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
}
.header-search.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-search > svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: 1.5;
  color: var(--color-ink-3);
}
.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--color-ink);
  -webkit-appearance: none;
}
.header-search input::placeholder { color: var(--color-ink-3); }
.header-search__submit {
  flex: none;
  height: 36px;
  padding: 0 14px;
  background: var(--color-ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header__inner { padding: 0 20px; }
  .site-header .nav { display: none; }
  .site-header .header-actions { margin-left: auto; }
  .header-search { width: min(calc(100vw - 40px), 392px); }
  .site-header .brand__name { font-size: 17px; line-height: 24px; }
  .site-header .brand__seal { width: 34px; height: 34px; }
}

/* 内容页共享导航：品牌与主导航分区，入口动画页不加载此样式 */
.site-header__inner { padding-inline: clamp(24px, 4.45vw, 64px); gap: 0; }
.site-header .site-header__menu { display: none; }
.site-header .brand { gap: 12px; min-height: 44px; }
.site-header .brand__seal { width: 36px; height: 36px; }
/* 全称 18 字，字号随视口收一档，保证与右侧导航不打架 */
.site-header .brand__name { font-size: 18px; line-height: 1.25; letter-spacing: .01em; }
.site-header .brand__sub { display: none; }
@media (max-width: 1240px) {
  .site-header .brand__name { font-size: 17px; }
}
@media (max-width: 1100px) {
  .site-header .brand__name { font-size: 16px; }
  .site-header .brand__seal { width: 32px; height: 32px; }
}
.site-header .nav { display: flex; gap: 28px; align-items: center; height: 100%; }
.site-header .nav__item { height: 100%; display: flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 22px; color: var(--color-ink-2); }
.site-header .nav__item:hover, .site-header .nav__item.is-active { color: var(--color-ink); }
.site-header .nav__item::after { bottom: 0; background: var(--color-brand); }
.site-header .nav-menu { top: 100%; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; }
@media (max-width: 1000px) {
  :root { --header-h: 52px; }
  .site-header { height: var(--header-h); }
  .site-header__inner { padding-inline: 20px; }
  .site-header .site-header__menu { display: inline-flex; margin-right: 12px; }
  .site-header .nav { display: none; }
  .site-header .header-actions { margin-left: auto; }
  .site-header .brand__name { font-size: 15px; }
  .header-search { top: calc(100% + 16px); }
}
/* 手机：18 字一行放不下，允许折成两行，仍是大字 */
.brand__name-br { display: inline; }
@media (max-width: 560px) {
  .site-header .brand { gap: 10px; }
  .site-header .brand__seal { width: 32px; height: 32px; }
  .site-header .brand__name {
    font-size: 14px;
    line-height: 1.32;
    letter-spacing: 0;
    white-space: normal;
  }
  /* 手机上一行放不下，固定断成两行，且两行等长 */
  .brand__name-br { display: block; }
}
