:root {
  --font-heading: 'EB Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg: #faf9f5;
  --bg-alt: #f2f0ea;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #8888a0;
  --accent: #b31b1b;
  --accent-hover: #8b1515;
  --link: #1a5276;
  --link-hover: #0e3650;
  --border: #e0dcd4;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 56px;
}

[data-theme="dark"] {
  --bg: #0c0c14;
  --bg-alt: #12121e;
  --surface: #1a1a28;
  --text: #e8e6e1;
  --text-secondary: #a0a0b4;
  --text-muted: #6a6a80;
  --accent: #ff6b6b;
  --accent-hover: #ff4f4f;
  --link: #6ab0de;
  --link-hover: #8ec8ed;
  --border: #2a2a3a;
  --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1), visibility 1s;
  overflow: hidden;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#cosmosCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loader-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* --- Text --- */
.loader-text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  text-transform: uppercase;
}
.loader-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charReveal 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.loader-char:nth-child(1)  { animation-delay: 0.6s; }
.loader-char:nth-child(2)  { animation-delay: 0.65s; }
.loader-char:nth-child(3)  { animation-delay: 0.70s; }
.loader-char:nth-child(4)  { animation-delay: 0.75s; }
.loader-char:nth-child(5)  { animation-delay: 0.80s; }
.loader-char:nth-child(6)  { animation-delay: 0.85s; }
.loader-char:nth-child(7)  { animation-delay: 0.90s; }
.loader-char:nth-child(8)  { animation-delay: 0.95s; }
.loader-char:nth-child(9)  { animation-delay: 1.00s; }
.loader-char:nth-child(10) { animation-delay: 1.05s; }
.loader-char:nth-child(11) { animation-delay: 1.10s; }
.loader-char:nth-child(12) { animation-delay: 1.15s; }
.loader-char:nth-child(13) { animation-delay: 1.20s; }
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}
.loader-sub {
  margin-top: 16px;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.loader-skip {
  margin-top: 40px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  opacity: 0;
  animation: fadeIn 0.6s ease 2s forwards, skipPulse 3.5s ease-in-out 2.6s infinite;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes skipPulse {
  0%,100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

/* ===== WECHAT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 24px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--accent); }
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.modal-qr {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.modal-hint {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== SCROLL REVEAL TEXT ===== */
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}
.reveal-text.revealed {
  animation: textRevealIn 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes textRevealIn {
  0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.about-card {
  opacity: 0;
  transform: translateX(24px);
  transition: none;
}
.about-card.revealed {
  animation: slideInRight 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}

.contact-card {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}
.contact-card.revealed {
  animation: cardPopIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes cardPopIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--link-hover); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(250,249,245,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}
[data-theme="dark"] .nav { background: rgba(12,12,20,0.88); }
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
[data-theme="dark"] .hero-orb { opacity: 0.1; }
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #667eea, transparent 70%);
  top: -100px; right: -80px;
  animation: orbFloat1 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f093fb, transparent 70%);
  bottom: -80px; left: -60px;
  animation: orbFloat2 25s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #4facfe, transparent 70%);
  top: 40%; left: 40%;
  animation: orbFloat3 18s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,30px); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-40px); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(20px,-30px); } 66% { transform: translate(-25px,15px); } }

#pretextCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}
[data-theme="dark"] #pretextCanvas { opacity: 0.1; }

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  position: relative;
  z-index: 2;
}
.hero-info { flex: 1; }
.hero-greeting {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-chinese {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.hero-rule {
  width: 40px; height: 3px;
  background: var(--accent);
  margin-bottom: 12px;
  border-radius: 2px;
}
.hero-role {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.hero-affiliation {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero-quote {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.hero-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179,27,27,0.1);
}
[data-theme="dark"] .hero-link:hover { box-shadow: 0 4px 12px rgba(255,107,107,0.15); }
.wechat-btn {
  cursor: pointer;
  background: none;
  font-family: var(--font-body);
}
.wechat-btn:hover {
  border-color: #07c160;
  color: #07c160;
}
[data-theme="dark"] .wechat-btn:hover { box-shadow: 0 4px 12px rgba(7,193,96,0.15); }

.hero-avatar { flex-shrink: 0; }
.avatar-frame {
  width: 180px; height: 180px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition);
}
.avatar-frame:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SECTIONS ===== */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  display: block;
  width: 32px; height: 2.5px;
  background: var(--accent);
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.pub-note { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--text-muted); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: start;
}
.bio p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}
.bio strong { color: var(--text); font-weight: 600; }
.bio a { border-bottom: 1px solid transparent; }
.bio a:hover { border-bottom-color: var(--link-hover); }
.bio-zh {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
}

/* ===== COLLABORATION ===== */
.collab-section {
  background: var(--bg-alt);
}
.collab-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 28px;
  width: 100%;
}
.collab-slogan strong {
  color: var(--accent);
}
.collab-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}
.collab-spotlight,
.collab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.collab-spotlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(179, 27, 27, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1)),
    var(--surface);
}
[data-theme="dark"] .collab-spotlight {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 107, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(26, 26, 40, 0.96), rgba(26, 26, 40, 1)),
    var(--surface);
}
.collab-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.collab-spotlight h3,
.collab-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 12px;
}
.collab-spotlight > p,
.collab-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.collab-spotlight strong,
.collab-card strong {
  color: var(--text);
  font-weight: 600;
}
.collab-spotlight-zh {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.collab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.collab-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(179, 27, 27, 0.08);
  border: 1px solid rgba(179, 27, 27, 0.14);
  color: var(--text);
  font-size: 0.77rem;
  font-weight: 600;
}
[data-theme="dark"] .collab-tags span {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.22);
}
.collab-side {
  display: grid;
  gap: 20px;
}
.collab-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.collab-card ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
}
.collab-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.collab-contact-card {
  background:
    linear-gradient(180deg, rgba(26, 82, 118, 0.06), transparent 72%),
    var(--surface);
}
[data-theme="dark"] .collab-contact-card {
  background:
    linear-gradient(180deg, rgba(106, 176, 222, 0.08), transparent 72%),
    var(--surface);
}
.collab-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.collab-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: pointer;
}
.collab-cta-email {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}
.collab-cta-email:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179,27,27,0.2);
}
.collab-cta-wechat {
  background: none;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.collab-cta-wechat:hover {
  border-color: #07c160;
  color: #07c160;
  transform: translateY(-1px);
}
.collab-contact-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-sidebar { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.interest-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-tags li {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.interest-tags li:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
[data-theme="dark"] .interest-tags li { background: var(--bg); }

/* ===== NEWS ===== */
.news-timeline { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 72px auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.news-item.visible { opacity: 1; transform: translateY(0); }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.news-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.badge-conf { background: rgba(179,27,27,0.1); color: var(--accent); }
.badge-journal { background: rgba(26,82,118,0.1); color: var(--link); }
[data-theme="dark"] .badge-conf { background: rgba(255,107,107,0.15); }
[data-theme="dark"] .badge-journal { background: rgba(106,176,222,0.15); }
.news-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.news-item p strong { color: var(--text); }

/* ===== PUBLICATIONS ===== */
.pub-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pub-filter {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 18px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.pub-filter:hover { border-color: var(--text-secondary); color: var(--text); }
.pub-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
}
.pub-card.visible { opacity: 1; transform: translateY(0); }
.pub-card.hidden { display: none; }
.pub-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pub-card.visible:hover { transform: translateY(-3px); }
.pub-card[data-url] { cursor: pointer; }

/* --- Banners --- */
.pub-banner {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
  background: var(--bg-alt);
}
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pub-card:hover .banner-img {
  transform: scale(1.06);
}
.pub-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}


.pub-venue-badge {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.oral-badge {
  display: inline-block;
  background: #e67e22;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  margin-left: 4px;
}

.pub-body { padding: 14px 16px 16px; }
.pub-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}
.pub-authors {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.pub-authors strong {
  color: var(--accent);
  font-weight: 600;
}
.pub-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-link {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.pub-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.contact-card svg { color: var(--accent); margin-bottom: 10px; }
.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-card p, .contact-card a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { font-size: 0.78rem; color: var(--text-muted); }
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-item {
    grid-template-columns: 72px auto;
    gap: 6px 12px;
  }
  .news-item p {
    grid-column: 1 / -1;
  }
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 28px;
  }
  .hero-rule { margin-left: auto; margin-right: auto; }
  .hero-links { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .collab-layout { grid-template-columns: 1fr; }
  .collab-spotlight-zh { font-size: 0.86rem; }
  .pub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 12px;
  }
  .nav-hamburger { display: flex; }
  .avatar-frame { width: 130px; height: 130px; }
  .about-grid { gap: 20px; }
  .collab-spotlight,
  .collab-card {
    padding: 20px;
  }
  .collab-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .collab-cta-btn {
    width: 100%;
  }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .news-item p {
    grid-column: auto;
  }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 36px 0; }
  .hero-name { font-size: 1.8rem; }
  .pub-title { font-size: 0.92rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-info > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.hero-info > *:nth-child(1) { animation-delay: 0.05s; }
.hero-info > *:nth-child(2) { animation-delay: 0.12s; }
.hero-info > *:nth-child(3) { animation-delay: 0.16s; }
.hero-info > *:nth-child(4) { animation-delay: 0.2s; }
.hero-info > *:nth-child(5) { animation-delay: 0.24s; }
.hero-info > *:nth-child(6) { animation-delay: 0.28s; }
.hero-info > *:nth-child(7) { animation-delay: 0.32s; }
.hero-info > *:nth-child(8) { animation-delay: 0.36s; }
.hero-avatar {
  opacity: 0;
  animation: fadeInUp 0.5s ease 0.3s forwards;
}

@media print {
  .nav, .theme-toggle, .nav-hamburger, #pretextCanvas, .hero-bg { display: none !important; }
  .hero { min-height: auto; padding-top: 20px; }
  .section { padding: 20px 0; }
  body { font-size: 11pt; }
  a { color: var(--text) !important; }
  .pub-card, .news-item { opacity: 1 !important; transform: none !important; }
}
