:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-muted: #828282;
  --theme-color: #0076df;
  --divider-color: rgba(0, 0, 0, 0.1);
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  --nav-height: 64px;
  /* --font-sans: "Courier New", Courier, "Liberation Mono", monospace;
  --font-serif: "Roboto Slab", "Times New Roman", serif; */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--bg-color);
  font-weight: 300;
}

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

a {
  color: var(--theme-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 930px;
  margin: 0 auto;
  padding: 0 20px;
}

.fixed-top-nav {
  padding-top: var(--nav-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  background: var(--bg-color);
  border-bottom: 1px solid var(--divider-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

.nav-brand {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--theme-color);
  border-bottom-color: var(--theme-color);
}

.page {
  padding: 2.5rem 0 3rem;
}

.post-header {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  animation: fade-in 0.6s ease both;
}

.post-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 400;
}

.post-title .name-strong {
  font-weight: 700;
}

.post-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.post-role {
  margin: 0 0 0.25rem;
  color: var(--text-color);
  font-size: 1.05rem;
  font-weight: 400;
}

.post-desc a {
  color: inherit;
}

.post-desc a:hover {
  color: var(--theme-color);
}

.post-body {
  position: relative;
}

.profile-card {
  float: right;
  width: 270px;
  margin: 0 0 1.2rem 2rem;
  text-align: center;
  animation: fade-in 0.6s ease both;
  animation-delay: 0.1s;
}

.profile-card img {
  display: block;
  border-radius: 6px;
  box-shadow: var(--card-shadow);
}

.profile-caption {
  margin: 0.5rem 0 0;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.section {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--divider-color);
  animation: rise 0.6s ease both;
}

.section-clear {
  clear: both;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: lowercase;
}

.section p {
  margin: 0 0 1rem;
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list > li {
  margin-bottom: 1rem;
}

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

.detail-list {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.detail-list li {
  margin-bottom: 0.5rem;
}

.pubs-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.pub-item {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}

.pub-media {
  width: 240px;
  flex-shrink: 0;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #a87400;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.pub-thumb {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--divider-color);
  box-shadow: var(--card-shadow);
}

.pub-content {
  flex: 1;
  min-width: 0;
}

.pub-title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.pub-authors {
  margin: 0 0 0.3rem;
}

.pub-venue {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pub-notes {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.pub-notes li {
  margin-bottom: 0.45rem;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--text-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 0.85rem;
  text-decoration: none;
}

.pub-link:hover {
  color: var(--theme-color);
  border-color: var(--theme-color);
}

.pub-link.is-placeholder {
  cursor: default;
}

.pub-link.is-placeholder:hover {
  color: var(--text-color);
  border-color: var(--text-color);
}

.pub-footnote {
  margin: 1.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.news-table {
  display: grid;
  gap: 0.6rem;
}

.news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  padding: 0.05rem 0;
}

.news-row:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-muted);
  font-weight: 500;
}

.news-text {
  margin: 0;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.6rem;
  margin: 0.3rem 0 0.6rem;
}

.contact-icons a {
  color: var(--text-color);
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-icons a:hover {
  color: var(--theme-color);
  transform: translateY(-2px);
}

.contact-icons img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-block;
}

.contact-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--divider-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--divider-color);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-item-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.post-item-title a {
  color: var(--text-color);
  text-decoration: none;
}

.post-item-title a:hover {
  color: var(--theme-color);
}

.post-meta {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.post-excerpt {
  margin: 0 0 0.7rem;
}

.post-read-more {
  font-size: 0.9rem;
  color: var(--theme-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.post-read-more:hover {
  border-bottom-color: var(--theme-color);
}

@media (max-width: 900px) {
  .nav-container {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    row-gap: 0.6rem;
  }

  .fixed-top-nav {
    padding-top: 120px;
  }

  .pub-item {
    flex-direction: column;
  }

  .pub-media {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .profile-card {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 600px) {
  .post-title {
    font-size: 2.1rem;
  }

  .section {
    padding: 1.3rem 0;
  }

  .contact-icons {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-body > .section:nth-of-type(1) {
  animation-delay: 0.12s;
}

.post-body > .section:nth-of-type(2) {
  animation-delay: 0.2s;
}

.post-body > .section:nth-of-type(3) {
  animation-delay: 0.28s;
}

.post-body > .section:nth-of-type(4) {
  animation-delay: 0.36s;
}

.post-body > .section:nth-of-type(5) {
  animation-delay: 0.44s;
}

.post-body > .section:nth-of-type(6) {
  animation-delay: 0.52s;
}

.post-body > .section:nth-of-type(7) {
  animation-delay: 0.6s;
}

.post-body > .section:nth-of-type(8) {
  animation-delay: 0.68s;
}

.post-body > .section:nth-of-type(9) {
  animation-delay: 0.76s;
}

.post-body > .section:nth-of-type(10) {
  animation-delay: 0.84s;
}
