/* ============================================================================
   AOBM Notes · UI 2.0
   ----------------------------------------------------------------------------
   设计语言：胶囊分段控件
     圆角容器 + 发丝描边 + 低对比底色；选中/主态为实心填充的胶囊。
     全局只用「品牌蓝 + 中性灰」，把颜色留给首页的光学视觉。

   本文件在原 style.css 之后加载，只做覆盖，不改动原规则，便于整体回滚。
   ========================================================================== */

/* --- 1. 设计令牌 ---------------------------------------------------------- */

:root {
  /* 品牌蓝（brand/AOBM-brand-kit：主色 #194779） */
  --ui-blue: #194779;
  --ui-blue-deep: #12355c;
  --ui-blue-soft: rgba(25, 71, 121, .085);
  --ui-blue-line: rgba(25, 71, 121, .28);

  /* 中性 */
  --ui-ink: #161b22;
  --ui-ink-2: #4a5561;
  --ui-muted: #6b737c;
  --ui-hair: #e4e8e5;
  --ui-paper: #f6f7f6;
  --ui-surface: #fff;

  /* 深色胶囊（与首页光学 hero 同色系） */
  --ui-chip: #10201c;
  --ui-chip-soft: rgba(16, 26, 23, .045);
  --ui-chip-line: rgba(16, 26, 23, .085);

  --ui-r-pill: 999px;
  --ui-r-card: 16px;
  --ui-r-row: 14px;
  --ui-shadow-1: 0 1px 2px rgba(16, 26, 23, .05);
  --ui-shadow-2: 0 14px 34px rgba(16, 26, 23, .09);

  /* 覆盖原调色板：把绿色点缀统一到品牌蓝，削弱杂色 */
  --ink: #161b22;
  --muted: #6b737c;
  --paper: #f6f7f6;
  --line: #e4e8e5;
  --green: #194779;
  --green-dark: #12355c;
  --red: #5d6b7a;          /* 原为砖红，现降级为中性石板色，只用于元信息标签 */
  --yellow: #c8a24a;       /* 仅保留极少数装饰用途 */
}

::selection { background: rgba(25, 71, 121, .16); }

*:focus-visible {
  outline: 2px solid var(--ui-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- 2. 通用胶囊部件 ------------------------------------------------------ */

/* 分段控件外框（浅色底） */
.ui-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-chip-line);
  border-radius: var(--ui-r-pill);
  background: var(--ui-chip-soft);
}

.ui-pills > * {
  border: 0;
  border-radius: var(--ui-r-pill);
  background: transparent;
  color: var(--ui-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.ui-pills > *:hover { background: rgba(255, 255, 255, .92); color: var(--ui-ink); }

.ui-pills > .is-active,
.ui-pills > [aria-pressed="true"] {
  background: var(--ui-chip);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 26, 23, .22);
}

/* 小号胶囊徽标 */
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- 3. 页头与主导航 ------------------------------------------------------ */

.site-header {
  height: 68px;
  border-bottom: 1px solid var(--ui-hair);
  background: rgba(246, 247, 246, .82);
  backdrop-filter: blur(16px) saturate(1.5);
}

.main-nav { height: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: auto;
  padding: 4px;
  border: 1px solid var(--ui-chip-line);
  border-radius: var(--ui-r-pill);
  background: var(--ui-chip-soft);
}

.nav-menu > .menu-item { align-items: center; }

.main-nav .menu-item > a,
.nav-menu > .menu-item > a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--ui-r-pill);
  color: var(--ui-ink-2);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav-menu > .menu-item > a:hover,
.nav-menu > .menu-item > a:focus-visible {
  background: rgba(255, 255, 255, .92);
  color: var(--ui-ink);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
  background: var(--ui-chip);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 26, 23, .22);
}

.menu-item-has-children > a::after { opacity: .55; }

/* 下拉菜单 → 圆角浮层 */
.sub-menu {
  top: calc(100% + 2px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 186px;
  padding: 7px;
  border: 1px solid var(--ui-hair);
  border-radius: 15px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  box-shadow: var(--ui-shadow-2);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { transform: translate(-50%, 0); }

.sub-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ui-ink-2);
  font-size: 13px;
}

.sub-menu li a:hover,
.sub-menu li a:focus-visible {
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-pill);
  background: #fff;
  box-shadow: var(--ui-shadow-1);
}

.brand-sub { color: var(--ui-muted); }

/* --- 4. 首页入口卡片 ------------------------------------------------------ */

/* Slider Revolution 模块实际高 650px，而原 min-height 是 720px
   → 底部露出 70px 深色空档。改为让容器贴合模块真实高度。 */
.home-slider { min-height: 0; border-bottom: 0; }

.home-entries { padding: 22px 0 26px; border-bottom: 0; background: transparent; }

.entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.entry-link,
.entry-link:nth-child(3n),
.entry-link:nth-child(4),
.entry-link:nth-child(5),
.entry-link:nth-child(odd),
.entry-link:nth-child(even) {
  grid-column: auto;
  min-height: 152px;
  padding: 22px 22px 24px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.entry-link:hover,
.entry-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ui-blue-line);
  box-shadow: var(--ui-shadow-2);
  background: var(--ui-surface);
}

.entry-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 23px;
  padding: 0 9px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.entry-link strong { margin-top: 14px; font-size: 21px; line-height: 1.3; }
.entry-link small { margin-top: 8px; font-size: 12.5px; }
.entry-link:hover strong { color: var(--ui-blue); }

/* --- 5. 章节标签与小标题 -------------------------------------------------- */

.section-label,
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-banner .kicker,
.section-dark .section-label {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* --- 6. 出版物浏览区 ------------------------------------------------------ */

.publication-archive { padding: 64px 0 100px; }

.publication-browser {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-2);
}

.publication-tools {
  min-height: 0;
  gap: 14px;
  margin: 0;
  padding: 0 0 15px;
  border: 0;
  border-bottom: 1px solid var(--ui-hair);
}

/* 搜索框 → 胶囊输入 */
.publication-search {
  flex: 1 1 320px;
  gap: 11px;
  padding: 9px 16px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-pill);
  background: #f4f6f5;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.publication-search svg { width: 17px; height: 17px; color: var(--ui-muted); transition: color .16s ease; }
.publication-search input { padding: 4px 0; font-size: 14.5px; }
.publication-search input::placeholder { color: #9aa2a9; }

.publication-search:focus-within {
  background: #fff;
  border-color: var(--ui-blue-line);
  box-shadow: 0 0 0 4px var(--ui-blue-soft);
}

.publication-search:focus-within svg { color: var(--ui-blue); }

.publication-count {
  min-width: 0;
  padding: 5px 13px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.publication-count:empty { display: none; }

/* 成员筛选 → 分段控件 */
.publication-filter-row {
  gap: 14px;
  padding: 15px 0;
  background: none;
  border-bottom: 1px solid var(--ui-hair);
}

.publication-filter-label { min-width: 0; color: var(--ui-muted); font-size: 11.5px; letter-spacing: .12em; }

.publication-author-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-chip-line);
  border-radius: var(--ui-r-pill);
  background: var(--ui-chip-soft);
}

.publication-author-tab {
  min-height: 0;
  padding: 7px 15px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: transparent;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 700;
}

.publication-author-tab:hover,
.publication-author-tab:focus-visible {
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ui-ink);
}

.publication-author-tab.is-active {
  border: 0;
  background: var(--ui-chip);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 26, 23, .22);
}

/* 年份 → 分段控件（横向滚动） */
.year-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 15px 0 0;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--ui-chip-line);
  border-radius: var(--ui-r-pill);
  background: var(--ui-chip-soft);
  scrollbar-width: none;
}

.year-tabs::-webkit-scrollbar { display: none; }

.year-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: transparent;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.year-tab span { font-family: inherit; font-size: 13px; font-weight: 800; }
.year-tab small { color: currentColor; font-size: 11px; font-weight: 700; opacity: .55; }

.year-tab:hover,
.year-tab:focus-visible {
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ui-ink);
}

.year-tab.is-active {
  border: 0;
  background: var(--ui-chip);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 26, 23, .22);
}

.year-tab.is-active small { opacity: .72; }

/* 年份分组标题 → 胶囊徽标 */
.publication-year { margin: 34px 0 0; }

.publication-year-heading {
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
}

.publication-year-heading h2,
.publication-year > h2 {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}

.publication-year-heading span { color: var(--ui-muted); font-size: 12.5px; }

/* 论文列表 */
.publication-list { border-top: 1px solid var(--ui-hair); }

.publication-row {
  padding: 22px 18px;
  border: 0;
  border-bottom: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-row);
  transition: background-color .16s ease, box-shadow .16s ease;
}

.publication-row:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 26, 23, .07), inset 0 0 0 1px var(--ui-blue-line);
}

.publication-row-year { color: var(--ui-muted); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.publication-row-meta { color: var(--ui-blue); font-size: 11.5px; letter-spacing: .02em; }
.publication-row h3 a:hover { color: var(--ui-blue); }

.publication-doi {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 10px;
  border-radius: var(--ui-r-pill);
  background: #f2f4f3;
  color: var(--ui-muted);
  font-size: 11.5px;
}

/* 行内操作 → 小号分段控件 */
.publication-row-actions {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-chip-line);
  border-radius: var(--ui-r-pill);
  background: var(--ui-chip-soft);
  align-self: center;
}

.publication-row-actions a {
  min-width: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--ui-r-pill);
  color: var(--ui-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.publication-row-actions a + a { padding-left: 14px; border-left: 0; }

.publication-row-actions a:hover,
.publication-row-actions a:focus-visible {
  background: var(--ui-chip);
  color: #fff;
  text-decoration: none;
}

/* 首个动作（详情）为次要主态 */
.publication-row-actions a:first-child {
  background: #fff;
  color: var(--ui-blue);
  box-shadow: 0 1px 3px rgba(16, 26, 23, .10);
}

.publication-row-actions a:first-child:hover { background: var(--ui-chip); color: #fff; }

/* --- 7. 详情页 ------------------------------------------------------------ */

.publication-meta,
.content-meta {
  margin: 0 0 30px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-row);
  background: var(--ui-surface);
  overflow: hidden;
}

.publication-meta div,
.content-meta div {
  grid-template-columns: 104px 1fr;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--ui-hair);
}

.publication-meta div:last-child,
.content-meta div:last-child { border-bottom: 0; }

.publication-meta dt,
.content-meta dt { color: var(--ui-muted); font-size: 13px; font-weight: 700; }

.publication-toc {
  margin: 34px 0;
  padding: 22px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.publication-toc summary {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.publication-toc summary::-webkit-details-marker { display: none; }

.publication-source { border-bottom: 0; }

.abstract-panel + .abstract-panel { border-top: 1px solid var(--ui-hair); }

.abstract-panel {
  padding: 20px 22px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-row);
  background: var(--ui-surface);
  margin-top: 14px;
}

.abstract-panel + .abstract-panel { margin-top: 14px; }
.abstract-panel h3 { color: var(--ui-blue); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.abstract-block { border-top: 0; padding-top: 0; margin-top: 34px; }

/* 文字按钮 → 胶囊按钮 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-pill);
  background: var(--ui-surface);
  color: var(--ui-blue);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--ui-shadow-1);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.text-link:hover,
.text-link:focus-visible {
  background: var(--ui-chip);
  border-color: var(--ui-chip);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 26, 23, .18);
}

.section-dark .text-link {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  box-shadow: none;
}

.section-dark .text-link:hover { background: #fff; color: var(--ui-chip); border-color: #fff; }

.publication-source .text-link span { color: currentColor; font-size: 15px; }

/* --- 8. 归档列表 / 成员 / 研究方向 --------------------------------------- */

.content-page { padding: 64px 0; }

.archive-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  border-top: 0;
}

.archive-item {
  padding: 24px 26px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.archive-item:hover {
  transform: translateY(-2px);
  border-color: var(--ui-blue-line);
  box-shadow: var(--ui-shadow-2);
}

.archive-meta { color: var(--ui-blue); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }

.topic-list { border-top: 0; gap: 14px; }

.topic,
.topic:nth-child(odd),
.topic:nth-child(even) {
  min-height: 0;
  padding: 26px 28px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.topic-index {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.method { padding: 24px 26px; border: 1px solid var(--ui-hair); border-top: 1px solid var(--ui-hair); border-radius: var(--ui-r-card); background: var(--ui-surface); box-shadow: var(--ui-shadow-1); }
.method h3 { margin-top: 12px; }
.method::before { display: block; width: 28px; height: 3px; border-radius: var(--ui-r-pill); background: var(--ui-blue); content: ""; }

.member-list { gap: 0 22px; border-top: 0; }

.member-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.member-photo { width: 96px; height: 118px; border-radius: 10px; }
.member-card .member-role { color: var(--ui-blue); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.student-year h2 {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border: 0;
  border-radius: var(--ui-r-pill);
  background: var(--ui-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.student-list { border-top: 1px solid var(--ui-hair); }
.student-list li { font-size: 15.5px; }

.admissions-grid { gap: 14px; }

.admissions-grid article {
  padding: 24px 26px;
  border: 1px solid var(--ui-hair);
  border-top: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-card);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-1);
}

.admissions-block { border-top: 0; }

.notice {
  border: 1px solid var(--ui-hair);
  border-radius: var(--ui-r-row);
  background: #f2f4f3;
}

.intro-note {
  padding: 20px 22px;
  border: 1px solid var(--ui-hair);
  border-left: 2px solid var(--ui-blue);
  border-radius: var(--ui-r-row);
  background: var(--ui-surface);
}

.author-photo, .publication-toc img { border-radius: 12px; }

/* --- 9. 页脚 -------------------------------------------------------------- */

.site-footer {
  padding: 30px 0;
  background: #0d1513;
  color: rgba(255, 255, 255, .62);
}

.footer-links { gap: 6px; }

.footer-links a {
  padding: 6px 13px;
  border-radius: var(--ui-r-pill);
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color .16s ease, color .16s ease;
}

.footer-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.public-security-record { color: rgba(255, 255, 255, .72); }
.public-security-record img { border-radius: 4px; }

.skip-link { border-radius: 0 0 10px 0; }

/* --- 10. 响应式 ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-link,
  .entry-link:nth-child(4),
  .entry-link:nth-child(5),
  .entry-link:nth-child(odd),
  .entry-link:nth-child(even) { border: 1px solid var(--ui-hair); }
  .entry-link:nth-child(5) { grid-column: auto; }
  .member-list { gap: 0; }
}

@media (max-width: 680px) {
  .site-header { height: 64px; }

  /* 移动端导航面板 → 圆角浮层 + 胶囊行 */
  .main-nav {
    inset: 63px 10px auto;
    padding: 10px;
    border: 1px solid var(--ui-hair);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 50px rgba(16, 26, 23, .18);
  }

  .nav-menu {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-menu > .menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    border-bottom: 0;
  }

  .main-nav .menu-item > a { min-height: 46px; padding: 10px 14px; border-radius: 12px; }
  .nav-menu > .menu-item > a:hover { background: var(--ui-chip-soft); }
  .nav-menu .current-menu-item > a,
  .nav-menu .current_page_item > a,
  .nav-menu .current-menu-ancestor > a { background: var(--ui-chip); color: #fff; }

  .submenu-toggle { width: 44px; height: 46px; color: var(--ui-blue); }

  .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--ui-blue);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .sub-menu li a { border-radius: 10px; }

  .home-entries { padding: 16px 0 20px; }
  .entry-grid { grid-template-columns: 1fr; gap: 10px; }
  .entry-link { min-height: 0; padding: 18px 20px; }

  .publication-browser { padding: 14px; border-radius: var(--ui-r-row); }
  .publication-tools { gap: 10px; padding-bottom: 13px; }
  .publication-filter-row { gap: 9px; padding: 13px 0; }
  .publication-author-tabs { flex-wrap: wrap; border-radius: 16px; }
  .year-tabs { border-radius: 16px; }

  .publication-row { padding: 18px 14px; }
  .publication-row:hover { box-shadow: none; }
  .publication-meta div,
  .content-meta div { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px 15px; }
  .archive-item { padding: 20px; }
}

@media (max-width: 440px) {
  .entry-grid { grid-template-columns: 1fr; }
  .publication-author-tabs { display: flex; }
}

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  .entry-link, .archive-item, .text-link, .publication-row,
  .ui-pills > *, .publication-author-tab, .year-tab, .footer-links a {
    transition: none !important;
  }
  .entry-link:hover, .archive-item:hover { transform: none; }
}

/* --- 11. 首页首屏：光学 3D ------------------------------------------------ */

.aobm-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - 68px));
  padding: 104px 0 96px;
  overflow: hidden;
  isolation: isolate;
  background: #0b1a17;
  color: #fff;
}

/* WebGL2 不可用时的兜底：静态光学渐变，不白屏、不报错 */
.aobm-hero--no-gl {
  background:
    radial-gradient(115% 90% at 76% 44%, rgba(72, 150, 168, .48), transparent 62%),
    radial-gradient(58% 58% at 76% 44%, rgba(216, 183, 91, .22), transparent 70%),
    linear-gradient(160deg, #0e2421 0%, #081513 100%);
}

.aobm-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* 文案压暗层：无论色散扇面飘到哪里，标题都可读 */
.aobm-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(6, 16, 14, .84) 0%,
    rgba(6, 16, 14, .52) 34%,
    rgba(6, 16, 14, 0) 64%);
  content: "";
  pointer-events: none;
}

.aobm-hero-inner { position: relative; z-index: 2; }

.aobm-hero-kicker {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .60);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.aobm-hero-title {
  max-width: 15em;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .01em;
}

.aobm-hero-lead {
  max-width: 30em;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .70);
  font-size: 17px;
  line-height: 1.8;
}

.aobm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }

.aobm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--ui-r-pill);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.aobm-btn:hover,
.aobm-btn:focus-visible {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.aobm-btn--primary { background: #fff; border-color: #fff; color: var(--ui-chip); }
.aobm-btn--primary:hover { background: rgba(255, 255, 255, .88); border-color: transparent; color: var(--ui-chip); }

@media (max-width: 820px) {
  .aobm-hero { min-height: min(620px, calc(100svh - 64px)); padding: 92px 0 84px; }
}

@media (max-width: 680px) {
  .aobm-hero { min-height: 0; padding: 76px 0 68px; }
  .aobm-hero-title { font-size: clamp(34px, 10vw, 46px); }
  .aobm-hero-lead { margin-top: 20px; font-size: 15px; }
  .aobm-hero-actions { margin-top: 30px; }
  .aobm-btn { padding: 11px 20px; }
  /* 窄屏文案占满宽度，压暗层改为整体均匀 + 底部收暗 */
  .aobm-hero::after {
    background: linear-gradient(180deg,
      rgba(6, 16, 14, .62) 0%,
      rgba(6, 16, 14, .50) 46%,
      rgba(6, 16, 14, .84) 100%);
  }
}
