/* ==========================================================================
   宣纸墨韵 —— 人文学术主页视觉系统
   1. 设计变量  2. 基础样式  3. 背景装饰（远山 / 水彩 / 宣纸纹）
   4. 布局骨架  5. 侧栏名片  6. 正文排版  7. 论文卡片
   8. 兴趣卡 / 时间轴 / 奖项  9. 控件  10. 动效与响应式
   ========================================================================== */

/* ------------------------------ 1. 设计变量 ------------------------------ */
:root {
  color-scheme: light;

  /* 字体 */
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* 纸墨色 */
  --paper: #faf7f1;
  --paper-2: #fffdf8;
  --paper-3: #f4efe6;
  --ink: #2f2b26;
  --ink-2: #4d463d;
  --ink-3: #7d7568;
  --line: rgba(47, 43, 38, 0.13);
  --line-soft: rgba(47, 43, 38, 0.07);

  /* 点缀色：华政红（绛红） / 赭金 / 黛青 / 竹青 */
  --brand-2: #93251f;
  --brand-3: #c0a062;
  --brand-1: #2f6270;
  --brand-4: #4f7a5b;

  --link: #8f2a22;
  --chip: rgba(147, 37, 31, 0.09);
  --chip-ink: #8f2a22;

  /* 玻璃与阴影 */
  --glass: rgba(255, 253, 247, 0.72);
  --glass-2: rgba(255, 253, 248, 0.9);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-blur: blur(18px) saturate(140%);
  --shadow-1: 0 1px 2px rgba(60, 50, 35, 0.05), 0 8px 22px -14px rgba(60, 50, 35, 0.3);
  --shadow-2: 0 2px 6px rgba(60, 50, 35, 0.06), 0 22px 46px -22px rgba(60, 50, 35, 0.38);
  --shadow-warm: 0 14px 32px -16px rgba(147, 37, 31, 0.5);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 11px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 兼容旧主题变量（论文页内联样式依赖） */
  --primary-color: #93251f;
  --secondary-color: #7d7568;
  --font-color: #4d463d;
  --bg-color: #faf7f1;
  --heading-color: #2f2b26;
  --border-color: rgba(47, 43, 38, 0.16);
  --link-color: #8f2a22;
}

[data-theme="dark"] {
  color-scheme: dark;

  /* 夜墨 */
  --paper: #17150f;
  --paper-2: #201d18;
  --paper-3: #262219;
  --ink: #f0e9dc;
  --ink-2: #d7cec0;
  --ink-3: #9a9082;
  --line: rgba(240, 233, 220, 0.11);
  --line-soft: rgba(240, 233, 220, 0.06);

  /* 暖绛红 / 暖金 / 青瓷 / 苔绿 */
  --brand-2: #e08a78;
  --brand-3: #c9a978;
  --brand-1: #8fb3b8;
  --brand-4: #94b199;

  --link: #e0907f;
  --chip: rgba(224, 138, 120, 0.14);
  --chip-ink: #e08a78;

  --glass: rgba(32, 29, 24, 0.6);
  --glass-2: rgba(36, 32, 27, 0.8);
  --glass-border: rgba(240, 233, 220, 0.09);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 26px -16px rgba(0, 0, 0, 0.85);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.55), 0 26px 52px -22px rgba(0, 0, 0, 0.9);
  --shadow-warm: 0 16px 34px -16px rgba(224, 138, 120, 0.55);

  --primary-color: #e08a78;
  --secondary-color: #9a9082;
  --font-color: #d7cec0;
  --bg-color: #17150f;
  --heading-color: #f0e9dc;
  --border-color: rgba(240, 233, 220, 0.16);
  --link-color: #e0907f;
}

/* ------------------------------ 2. 基础样式 ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.014em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
  animation: pageIn 1s var(--ease-out) both;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

::selection {
  background: rgba(147, 37, 31, 0.2);
  color: var(--ink);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(147, 37, 31, 0.45), rgba(192, 160, 98, 0.45));
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(147, 37, 31, 0.6); }

/* ------------------------------ 3. 背景装饰 ------------------------------ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

/* 水彩晕染 */
.bg-decor .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.4;
  will-change: transform;
}

.bg-decor .a1 {
  width: 48vw;
  height: 48vw;
  left: -12vw;
  top: -16vw;
  background: radial-gradient(circle at 40% 40%, rgba(192, 160, 98, 0.5), rgba(192, 160, 98, 0) 66%);
  animation: drift1 26s ease-in-out infinite;
}

.bg-decor .a2 {
  width: 42vw;
  height: 42vw;
  right: -10vw;
  top: 2vh;
  background: radial-gradient(circle at 50% 50%, rgba(47, 98, 112, 0.4), rgba(47, 98, 112, 0) 66%);
  animation: drift2 30s ease-in-out infinite;
}

.bg-decor .a3 {
  width: 44vw;
  height: 44vw;
  left: 22vw;
  bottom: -20vw;
  background: radial-gradient(circle at 50% 50%, rgba(147, 37, 31, 0.32), rgba(147, 37, 31, 0) 66%);
  animation: drift3 34s ease-in-out infinite;
}

[data-theme="dark"] .bg-decor .aurora { opacity: 0.34; }
[data-theme="dark"] .bg-decor .a1 {
  background: radial-gradient(circle at 40% 40%, rgba(201, 169, 120, 0.45), rgba(201, 169, 120, 0) 68%);
}
[data-theme="dark"] .bg-decor .a2 {
  background: radial-gradient(circle at 50% 50%, rgba(143, 179, 184, 0.35), rgba(143, 179, 184, 0) 68%);
}
[data-theme="dark"] .bg-decor .a3 {
  background: radial-gradient(circle at 50% 50%, rgba(224, 138, 120, 0.3), rgba(224, 138, 120, 0) 68%);
}

/* 远山（水墨） */
.bg-mountains {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 205px;
}

.bg-mountains .mt1 { fill: #2f6270; opacity: 0.07; }
.bg-mountains .mt2 { fill: #2f6270; opacity: 0.05; }
.bg-mountains .mt3 { fill: #93251f; opacity: 0.04; }

[data-theme="dark"] .bg-mountains .mt1 { fill: #8fb3b8; opacity: 0.07; }
[data-theme="dark"] .bg-mountains .mt2 { fill: #c9a978; opacity: 0.05; }
[data-theme="dark"] .bg-mountains .mt3 { fill: #e08a78; opacity: 0.04; }

/* 宣纸颗粒 */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .bg-noise {
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* 纸灯：跟随光标 */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 12%),
    rgba(192, 160, 98, 0.14),
    transparent 62%
  );
  transition: opacity 0.6s var(--ease);
}
.cursor-glow.is-active { opacity: 1; }

[data-theme="dark"] .cursor-glow {
  background: radial-gradient(
    560px circle at var(--mx, 50%) var(--my, 12%),
    rgba(201, 169, 120, 0.16),
    transparent 62%
  );
}

/* 顶部校色细线 + 阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  background: rgba(147, 37, 31, 0.14);
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--sp, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3) 58%, var(--brand-1));
  transition: transform 0.08s linear;
}

[data-theme="dark"] .scroll-progress { background: rgba(224, 138, 120, 0.12); }

/* ------------------------------ 4. 布局骨架 ------------------------------ */
.wrapper {
  display: flex;
  align-items: flex-start;
  gap: 38px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 94px 28px 70px;
  float: none;
}

section {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  min-height: auto;
}

/* ------------------------------ 5. 侧栏名片 ------------------------------ */
header {
  position: sticky;
  top: 92px;
  flex: 0 0 320px;
  width: 320px;
  height: auto;
  float: none;
  padding: 34px 22px 26px;
  margin: 0;
  border-radius: var(--radius-xl);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2);
  text-align: center;
  z-index: 10;
  animation: cardIn 1s var(--ease-out) both;
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease),
    box-shadow 0.4s var(--ease);
}

/* 书脊：顶部一道朱—金细线 */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-2) 18%,
    var(--brand-3) 50%,
    var(--brand-2) 82%,
    transparent
  );
  opacity: 0.75;
}

header:hover {
  box-shadow: 0 2px 8px rgba(60, 50, 35, 0.06), 0 28px 56px -26px rgba(60, 50, 35, 0.42);
}

/* 头像：金—青光环 */
header .image.avatar {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  margin: 4px auto 20px !important;
  padding: 0;
  border-radius: 50%;
  border: 0;
  line-height: 0;
  transition: transform 0.6s var(--ease-out);
}

header .image.avatar::before {
  content: "";
  display: block;
  position: absolute;
  inset: -4px;
  width: auto;
  height: auto;
  opacity: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #93251f,
    #c0a062 30%,
    #2f6270 54%,
    #b8453a 80%,
    #93251f
  );
  animation: spin 16s linear infinite;
  z-index: 0;
}

[data-theme="dark"] header .image.avatar::before {
  background: conic-gradient(from 0deg, #e08a78, #c9a978 30%, #8fb3b8 54%, #e08a78);
}

header .image.avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #93251f, #c0a062, #2f6270, #93251f);
  filter: blur(15px);
  opacity: 0.32;
  z-index: -1;
  animation: spin 16s linear infinite;
}

header .image.avatar:hover { transform: scale(1.03); }

header .image.avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  object-fit: cover;
  box-shadow: none;
  transition: box-shadow 0.4s var(--ease);
}

header .image.avatar:hover img {
  box-shadow: 0 10px 28px -12px rgba(147, 37, 31, 0.55);
}

/* 姓名（衬线） */
header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center !important;
  width: 100%;
  margin: 4px 0 6px !important;
}

/* 打字机副标题 */
header .tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 1.7em;
  margin: 0 0 18px !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brand-2);
  text-align: center !important;
}

header .tagline .caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 4px;
  border-radius: 2px;
  background: currentColor;
  animation: blink 1.2s steps(2, start) infinite;
}

/* 信息胶囊 */
header .meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 18px;
}

header .meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: center;
  color: var(--ink-2) !important;
  background: var(--chip);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

header .meta-item i {
  font-size: 0.76rem;
  color: var(--brand-2);
  background: none;
  -webkit-text-fill-color: currentColor;
}

header .meta-item:hover {
  transform: translateY(-2px);
  background: rgba(147, 37, 31, 0.15);
  box-shadow: 0 8px 20px -12px rgba(147, 37, 31, 0.55);
}

/* 覆盖主题自带的自定义标签颜色 */
position,
email,
autocolor {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
}

header email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

header button.email-copy {
  font: inherit;
  cursor: pointer;
  text-align: center;
  border: 1px dashed rgba(147, 37, 31, 0.4);
  position: relative;
}

header button.email-copy::after {
  content: "点击复制";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fffdf8;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

header button.email-copy:hover::after {
  opacity: 0.95;
  transform: translate(-50%, 0);
}

header button.email-copy.is-copied {
  border-style: solid;
  border-color: rgba(79, 122, 91, 0.6);
  color: #4f7a5b !important;
}

header button.email-copy.is-copied::after {
  content: "已复制";
  opacity: 1;
  transform: translate(-50%, 0);
  background: #4f7a5b;
}

/* 社交图标 */
header .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0;
}

header .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2) !important;
  font-size: 1rem;
  line-height: 1;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease),
    background 0.4s var(--ease), color 0.3s var(--ease), border-color 0.4s var(--ease);
}

header .social-icons a:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  border-color: transparent;
  color: #fffdf8 !important;
  box-shadow: var(--shadow-warm);
}

/* ------------------------------ 6. 正文排版 ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  text-align: left !important;
  letter-spacing: 0.04em;
}

h2 {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding-bottom: 10px;
  margin: 34px 0 14px !important;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.6;
  border-bottom: 0;
}

h2:first-of-type {
  margin-top: 0 !important;
  padding-top: 0;
}

/* 研究兴趣：避开顶部远山装饰，整体下移 */
#research-interests {
  margin-top: 62px !important;
}

/* 标题图标：朱砂印章 */
h2 > i.fas,
h2 > i.fab,
h2 > i.far,
h3 > i.fas,
h3 > i.fab,
h3 > i.far,
h4 > i.fas,
h4 > i.fab,
h4 > i.far {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  margin-right: 0;
  border-radius: 7px;
  font-size: 0.82rem;
  color: var(--brand-2) !important;
  -webkit-text-fill-color: currentColor;
  background: rgba(147, 37, 31, 0.1);
  box-shadow: inset 0 0 0 1px rgba(147, 37, 31, 0.16);
  filter: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h2:hover > i,
h3:hover > i,
h4:hover > i {
  background: rgba(147, 37, 31, 0.18);
}

[data-theme="dark"] h2 > i.fas,
[data-theme="dark"] h2 > i.fab,
[data-theme="dark"] h2 > i.far,
[data-theme="dark"] h3 > i.fas,
[data-theme="dark"] h4 > i.fas {
  color: var(--brand-2) !important;
  background: rgba(224, 138, 120, 0.14);
  box-shadow: inset 0 0 0 1px rgba(224, 138, 120, 0.18);
}

/* 标题下划线：墨线 + 末端朱点 */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background-image:
    radial-gradient(circle 2.5px at right center, var(--brand-2) 99%, transparent),
    linear-gradient(90deg, rgba(47, 43, 38, 0.3), rgba(47, 43, 38, 0.08) 62%, rgba(47, 43, 38, 0.02));
  transform-origin: left center;
  transition: transform 1s var(--ease-out) 0.1s;
}

[data-theme="dark"] h2::after {
  background-image:
    radial-gradient(circle 2.5px at right center, var(--brand-2) 99%, transparent),
    linear-gradient(90deg, rgba(240, 233, 220, 0.34), rgba(240, 233, 220, 0.1) 62%, rgba(240, 233, 220, 0.02));
}

.js h2::after { transform: scaleX(0); }
.js h2.in-view::after { transform: scaleX(1); }

/* 标题右侧小按钮 */
h2 > a {
  margin-left: auto;
  padding: 3px 13px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--chip-ink) !important;
  background: var(--chip) !important;
  background-image: none !important;
  border: 1px solid rgba(147, 37, 31, 0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

h2 > a:hover {
  transform: translateX(3px);
  color: #fffdf8 !important;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3)) !important;
  border-color: transparent;
  box-shadow: var(--shadow-warm);
}

h3 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 8px; }
h4 { font-size: 1.04rem; font-weight: 700; margin: 20px 0 7px; color: var(--brand-1); }

p {
  margin: 0 0 13px;
  color: var(--ink-2);
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 引言式段落 */
p.lead {
  position: relative;
  padding: 2px 0 2px 18px;
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--ink-2);
}

p.lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-2), rgba(147, 37, 31, 0.15));
}

/* 链接：墨线渐显 */
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 0;
  background-image: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 1px;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}

a:hover {
  color: var(--link);
  background-size: 100% 1px;
}

strong, b {
  color: var(--ink);
  font-weight: 700;
}

em { font-style: italic; }

hr {
  height: 1px;
  border: 0;
  margin: 26px 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

code, pre {
  font-family: var(--font-mono) !important;
  font-size: 0.88em;
}

code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--chip);
  color: var(--chip-ink);
}

pre {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow-x: auto;
}

img { max-width: 100%; height: auto; }

section ul:not([class]),
section ol:not([class]) {
  margin: 0 0 14px;
  padding-left: 4px;
  list-style: none;
}

section ul:not([class]) > li,
section ol:not([class]) > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: var(--ink-2);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

section ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.86em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
  transition: transform 0.3s var(--ease);
}

section ul:not([class]) > li:hover { transform: translateX(2px); }
section ul:not([class]) > li:hover::before { transform: scale(1.25); }

/* ------------------------------ 7. 论文卡片 ------------------------------ */
.publications { margin-top: 10px !important; }

.publications ol.bibliography {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.publications ol.bibliography li,
.publications ol.bibliography li.publication-item {
  position: relative;
  min-height: 0;
  margin: 0 !important;
  padding: 15px 17px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: var(--radius-lg);
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease), background 0.45s var(--ease);
}

/* hover 时左侧朱砂竖线 */
.publications ol.bibliography li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

/* 柔和纸灯光晕 */
.publications ol.bibliography li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(192, 160, 98, 0.1),
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.publications ol.bibliography li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line) !important;
  background: var(--glass-2);
}

.publications ol.bibliography li:hover::before,
.publications ol.bibliography li:hover::after { opacity: 1; }

[data-theme="dark"] .publications ol.bibliography li::after {
  background: radial-gradient(
    260px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(201, 169, 120, 0.12),
    transparent 68%
  );
}

.publications .pub-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 !important;
  padding: 0;
  position: relative;
  z-index: 1;
}

.publications .col-sm-3.abbr {
  flex: 0 0 170px;
  max-width: 170px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  line-height: 0;
}

.publications ol.bibliography li .abbr img.teaser {
  width: 170px;
  height: 106px;
  margin: 0 !important;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 5px 16px -10px rgba(60, 50, 35, 0.5);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease);
}

.publications ol.bibliography li:hover .abbr img.teaser {
  transform: scale(1.035);
}

/* 期刊角标：朱印 */
.publications ol.bibliography li .abbr abbr.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #fffdf8 !important;
  background: rgba(147, 37, 31, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

[data-theme="dark"] .publications ol.bibliography li .abbr abbr.badge {
  background: rgba(168, 52, 40, 0.92);
}

.publications .col-sm-9 {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.publications ol.bibliography li .title {
  margin: 0 0 6px !important;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55 !important;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: left !important;
}

.publications ol.bibliography li .title a {
  color: var(--ink);
  background-image: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  background-size: 0% 1px;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}

.publications ol.bibliography li .title a:hover {
  color: var(--link);
  background-size: 100% 1px;
}

.publications ol.bibliography li .author {
  margin: 0 0 4px !important;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.7 !important;
  color: var(--ink-3);
  text-align: left !important;
}

.publications ol.bibliography li .periodical {
  margin: 0 0 9px !important;
  padding: 0;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  color: var(--brand-1) !important;
  text-align: left !important;
  letter-spacing: 0.02em;
}

.publications ol.bibliography li .periodical em {
  font-style: italic;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

/* 链接按钮 */
.publications .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  line-height: 1.6 !important;
}

.publications .links a.btn,
.publications .links a.btn.z-depth-0,
.publications .links a.btn.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 4px 13px !important;
  font-family: var(--font-sans);
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  border-radius: 999px;
  color: var(--ink-2) !important;
  background: var(--paper-2);
  background-image: none;
  border: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.publications .links a.btn i {
  font-size: 0.78em;
  color: var(--brand-2);
  transition: color 0.3s var(--ease);
}

.publications .links a.btn:hover {
  transform: translateY(-2px);
  color: #fffdf8 !important;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  border-color: transparent;
  box-shadow: var(--shadow-warm);
}

.publications .links a.btn:hover i { color: #fffdf8; }

[data-theme="dark"] .publications .links a.btn {
  color: var(--ink-2) !important;
  background: rgba(240, 233, 220, 0.05);
  border-color: var(--line);
}

[data-theme="dark"] .publications .links a.btn i { color: var(--brand-2); }

[data-theme="dark"] .publications .links a.btn:hover {
  color: #17150f !important;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}

[data-theme="dark"] .publications .links a.btn:hover i { color: #17150f; }

/* 浅色主题下屏蔽旧主题跟随系统的深色规则（按钮白字白边不可见） */
[data-theme="light"] .publications ol.bibliography li .links a.btn,
[data-theme="light"] .publications ol.bibliography li .links a.btn.z-depth-0 {
  color: var(--ink-2) !important;
  background: var(--paper-2);
  background-image: none;
  border: 1px solid var(--line);
}

[data-theme="light"] .publications ol.bibliography li .links a.btn i {
  color: var(--brand-2);
}

[data-theme="light"] .publications ol.bibliography li .links a.btn:hover {
  color: #fffdf8 !important;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  border-color: transparent;
}

[data-theme="light"] .publications ol.bibliography li .links a.btn:hover i {
  color: #fffdf8;
}

/* 标签：柔和纸片 */
.publications .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0 !important;
  padding: 0;
}

.publications .tags .tag,
.tag {
  --h: 12;
  display: inline-block;
  margin: 0 !important;
  padding: 2px 11px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: hsl(var(--h) 40% 33%);
  background: hsl(var(--h) 45% 94%);
  border: 1px solid hsl(var(--h) 38% 85%);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.publications .tags .tag:nth-child(4n + 1) { --h: 12; }
.publications .tags .tag:nth-child(4n + 2) { --h: 190; }
.publications .tags .tag:nth-child(4n + 3) { --h: 130; }
.publications .tags .tag:nth-child(4n + 4) { --h: 36; }

.publications .tags .tag:hover {
  transform: translateY(-1px);
  background: hsl(var(--h) 45% 89%);
  box-shadow: 0 6px 14px -8px rgba(60, 50, 35, 0.5);
  opacity: 1;
}

[data-theme="dark"] .publications .tags .tag {
  color: hsl(var(--h) 42% 74%);
  background: hsl(var(--h) 30% 20%);
  border-color: hsl(var(--h) 32% 30%);
  filter: none;
}

/* 备注 */
.publications .pub-notes,
.publications .pub-notes strong,
.publications .pub-notes i {
  display: inline-block;
  margin-top: 7px;
  font-size: 0.81rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--brand-2) !important;
  text-shadow: none;
}

/* 论文页返回按钮 */
.back-home-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1100;
}

.back-home-btn .home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2) !important;
  background: var(--glass) !important;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  background-image: none;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    color 0.35s var(--ease), background 0.35s var(--ease);
}

.back-home-btn .home-link:hover {
  transform: translateY(-3px);
  color: #fffdf8 !important;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3)) !important;
  box-shadow: var(--shadow-warm);
}

.back-home-btn .home-link i { transition: transform 0.35s var(--ease); }
.back-home-btn .home-link:hover i { transform: translateX(-3px); }

[data-theme="dark"] .back-home-btn .home-link:hover { color: #17150f !important; }

/* --------------------------- 8. 兴趣卡 / 时间轴 / 奖项 --------------------------- */
.interest-list {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.interest-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-width: 0;
  padding: 14px 20px 14px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease);
}

.interest-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-3));
}

.interest-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.interest-field {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.interest-tags {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.interest-tag {
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--chip-ink);
  background: var(--chip);
  border: 1px solid rgba(147, 37, 31, 0.18);
  transition: background 0.3s var(--ease);
}

.interest-item:hover .interest-tag { background: rgba(147, 37, 31, 0.16); }

/* 教育经历时间轴 */
.timeline {
  position: relative;
  margin: 4px 0 8px;
  padding: 0 0 0 28px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    rgba(147, 37, 31, 0.5),
    rgba(47, 98, 112, 0.3) 55%,
    rgba(47, 43, 38, 0.06)
  );
}

.timeline > li {
  position: relative;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.timeline > li:last-child { margin-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--brand-2);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.timeline > li:hover::before {
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(147, 37, 31, 0.12);
}

.timeline .tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}

.timeline .tl-time {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-2);
  background: var(--chip);
}

.timeline .tl-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.timeline .tl-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-3);
}

/* 奖项 / 服务 */
.award-list,
.service-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.award-list > li,
.service-list > li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 8px 14px 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--ink-2);
  border-left: 2px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.award-list > li:hover,
.service-list > li:hover {
  transform: translateX(3px);
  background: rgba(147, 37, 31, 0.05);
  border-left-color: var(--brand-2);
}

[data-theme="dark"] .award-list > li:hover,
[data-theme="dark"] .service-list > li:hover {
  background: rgba(224, 138, 120, 0.07);
}

.award-year {
  flex: 0 0 auto;
  padding: 1px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--brand-2);
  background: var(--chip);
  transform: translateY(2px);
}

.award-text { flex: 1 1 auto; }

/* 访客记录：恒定浅色纸卡，保证地球可见 */
.visitor-card {
  margin: 6px 0 0;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: #fdfaf4 !important;
  border: 1px solid rgba(147, 37, 31, 0.12) !important;
  box-shadow: var(--shadow-1);
  text-align: center;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease);
}

.visitor-card:hover { box-shadow: var(--shadow-2); }

.visitor-card img,
.visitor-card canvas {
  max-width: 100%;
  border-radius: 50%;
}

/* ------------------------------ 9. 控件 ------------------------------ */
.top-bar {
  position: fixed;
  top: 18px;
  right: 20px;
  left: auto;
  width: auto;
  padding: 0;
  text-align: right;
  z-index: 1100;
}

.top-bar .container { padding: 0 !important; }

.dark-mode-toggle-top button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.92rem;
  color: var(--ink-2);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease),
    color 0.35s var(--ease), background 0.35s var(--ease);
}

.dark-mode-toggle-top button:hover {
  transform: rotate(24deg);
  color: var(--brand-2);
  box-shadow: var(--shadow-warm);
}

/* 返回顶部 */
#back-to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--glass-border);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease-out),
    box-shadow 0.4s var(--ease), color 0.35s var(--ease);
}

#back-to-top-btn.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#back-to-top-btn:hover {
  color: var(--brand-2);
  box-shadow: var(--shadow-warm);
}

#back-to-top-btn i {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  transition: transform 0.35s var(--ease);
}

#back-to-top-btn:hover i { transform: translateY(-2px); }

/* 环形滚动进度 */
#back-to-top-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--brand-2) 0 calc(var(--p, 0) * 1%),
    rgba(120, 110, 95, 0.14) calc(var(--p, 0) * 1%) 100%
  );
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 2px), #000 calc(50% - 2px));
  mask: radial-gradient(circle, transparent calc(50% - 2px), #000 calc(50% - 2px));
  pointer-events: none;
}

/* BibTeX 弹窗 */
.bibtex-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 24, 18, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s var(--ease) both;
}

.bibtex-modal .bibtex-box {
  width: min(680px, 100%);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  animation: modalIn 0.4s var(--ease-out) both;
}

.bibtex-modal pre {
  flex: 1 1 auto;
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--radius-md);
  background: var(--paper-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.bibtex-modal .bibtex-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bibtex-modal .bibtex-actions button {
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

.bibtex-modal .bibtex-actions button:hover { transform: translateY(-2px); }

.bibtex-modal .bibtex-actions button.primary {
  color: #fffdf8;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: var(--shadow-warm);
}

/* 论文详情页容器 */
.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 104px 28px 96px;
}

/* ------------------------------ 10. 动效 ------------------------------ */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3vw, 3vh, 0) scale(1.07); }
}

@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-4vw, 4vh, 0) scale(1); }
}

@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3vw, -3vh, 0) scale(1.09); }
}

/* 滚动揭示 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ------------------------- 响应式 & 无障碍 ------------------------- */
@media (max-width: 980px) {
  .wrapper {
    flex-direction: column;
    gap: 24px;
    padding: 92px 20px 72px;
  }

  header {
    position: relative;
    top: 0;
    flex: 0 0 auto;
    width: 100%;
    padding: 28px 22px 24px;
  }

  header .image.avatar { width: 126px; height: 126px; }

  section { width: 100%; }

  .content { padding: 88px 20px 80px; }

  .publications .pub-row { gap: 16px; }

  .publications .col-sm-3.abbr { flex: 0 0 132px; max-width: 132px; }

  .publications ol.bibliography li .abbr img.teaser { width: 132px; height: 90px; }

  .top-bar { top: 14px; right: 14px; }
}

@media (max-width: 680px) {
  html { font-size: 15.5px; }

  .wrapper { padding: 80px 16px 60px; }

  h2 { font-size: 1.1rem; margin-top: 40px !important; }

  .publications .pub-row {
    flex-direction: column;
    align-items: stretch;
  }

  .publications .col-sm-3.abbr {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .publications ol.bibliography li .abbr img.teaser {
    width: 100%;
    height: 148px;
  }

  .publications ol.bibliography li .abbr abbr.badge { left: 10px; top: 10px; }

  .publications ol.bibliography li { padding: 14px !important; }

  .timeline { padding-left: 24px; }
  .timeline > li::before { left: -25px; }

  .award-list > li,
  .service-list > li { padding: 9px 12px; font-size: 0.86rem; }

  .top-bar { top: 12px; right: 12px; }
  .dark-mode-toggle-top button { width: 40px; height: 40px; }

  #back-to-top-btn { width: 44px; height: 44px; right: 14px; bottom: 14px; }
  .back-home-btn { left: 14px; bottom: 14px; }
  .back-home-btn .home-link { padding: 9px 15px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .js h2::after { transform: scaleX(1) !important; }

  .cursor-glow { display: none; }
}

@media print {
  .bg-decor,
  .bg-noise,
  .cursor-glow,
  .scroll-progress,
  .top-bar,
  #back-to-top-btn,
  .back-home-btn { display: none !important; }

  body { background: #fff; color: #000; }

  .wrapper { display: block; padding: 0; }

  header,
  .publications ol.bibliography li {
    position: static;
    box-shadow: none;
    background: #fff;
  }
}
