:root {
  --text: #222;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #ddd;
  --bg: #fff;
  --bg-hover: #f5f5f5;
  --accent: #2c5282;
  --accent-hover: #1a365d;
  --radius: 0px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:hover {
  color: var(--accent-hover);
}

.site-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 24px 0;
}

/* Header */
header {
  padding: 28px 0 0;
  margin-bottom: 0;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  padding: 4px 10px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Intro */
.intro {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}

.intro-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.intro-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.intro-text h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.intro-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 12px;
}

.intro-links {
  display: flex;
  gap: 14px;
}

.intro-links a {
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
}

.intro-links a:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

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

.section-compact {
  padding: 18px 0;
}

.section-compact .section-header {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.header-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.see-all {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
}

.see-all:hover {
  color: var(--text);
}

/* Project list */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
}

.project-item:hover {
  opacity: 0.75;
}

.project-year {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 40px;
  font-variant-numeric: tabular-nums;
}

.project-title {
  font-size: 14px;
  flex: 1;
  line-height: 1.5;
}

.project-venue {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  text-align: right;
}

.award {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 500;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 4px 0;
  color: var(--text);
}

.post-item:hover {
  opacity: 0.75;
}

.post-date {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 72px;
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-size: 14px;
  flex: 1;
  line-height: 1.5;
}

/* Reading list */
.reading-list {
  display: flex;
  flex-direction: column;
}

.reading-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.reading-icon {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.reading-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.reading-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.reading-author {
  font-size: 13px;
  color: var(--text-muted);
}

.reading-status {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.status-reading {
  color: var(--text-secondary);
}

.status-done {
  color: var(--text-muted);
}

.status-want {
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 28px 0;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Page-level styles */
.page-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.page-title::after {
  display: none;
}

.page-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.page-section {
  padding-top: 36px;
}

/* Project rows (projects.html detail page) */
.projects-detail-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.project-row .project-image {
  flex: 0 0 180px;
}

.project-row .project-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.project-row .project-content {
  flex: 1;
}

.project-row .project-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.5;
}

.project-authors {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.contrib-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.conference {
  font-size: 13px;
  color: var(--text-muted);
}

.project-abstract {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
  display: none;
}

.project-links {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.project-links a {
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.project-links a:hover {
  color: var(--text);
}

.abs-toggle {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.abs-toggle:hover {
  color: var(--text);
}

/* Blog cards (blog.html) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card .blog-image {
  flex: 0 0 150px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .blog-content {
  flex: 1;
}

.blog-card .blog-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.blog-card .blog-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}

.blog-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.read-more {
  font-size: 13px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

/* About page */
.about-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 110px;
}

.about-image img {
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.about-text h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.education-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}

.edu-logo {
  flex: 0 0 36px;
}

.edu-logo img {
  width: 100%;
  height: auto;
}

.edu-details h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.edu-details p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2px;
}

.edu-date {
  color: var(--text-muted);
  font-size: 12px;
}

/* Reading page */
.reading-host {
  color: var(--text-secondary);
  font-style: italic;
}

.reading-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  margin: 1.2rem 0 0.4rem;
}

.reading-page-list {
  display: flex;
  flex-direction: column;
}

.reading-page-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.reading-page-item:last-child {
  border-bottom: none;
}

.reading-page-item .reading-icon {
  font-size: 16px;
}

.reading-page-item .reading-info {
  flex: 1;
}

.reading-page-item .reading-title {
  font-size: 14px;
}

.reading-page-item .reading-author {
  font-size: 13px;
}

.reading-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 4px;
}

.reading-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Research flow */
.research-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-card {
  padding: 0 0 0 12px;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.flow-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 14px;
  background: #93c5fd;
  border-radius: 1px;
}

.flow-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.flow-title-text {
  display: block;
}

.flow-venue {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.01em;
}

.flow-authors {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 5px;
}

.flow-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.flow-links a {
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.flow-links a:hover {
  color: var(--text);
}

.gh-star-link .fa-star {
  font-size: 11px;
}

.video-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--text);
  text-decoration: none;
}

.video-preview:hover {
  opacity: 0.82;
}

.video-thumb {
  position: relative;
  flex: 0 0 128px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-hover);
}

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

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.video-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.video-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .site-wrapper {
    padding: 28px 16px 0;
  }

  header {
    padding: 16px 0 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 60px 24px 24px;
    gap: 4px;
    border-left: 1px solid var(--border);
    transition: right 0.2s ease;
    z-index: 100;
  }

  .nav-menu.active {
    right: 0;
  }

  .intro-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .intro-avatar {
    width: 60px;
    height: 60px;
  }

  .project-item {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .project-year {
    width: auto;
  }

  .project-venue {
    width: 100%;
    text-align: left;
    padding-left: 52px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    width: 72px;
  }

  .project-row {
    flex-direction: column;
  }

  .project-row .project-image {
    flex: none;
    width: 100%;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-card .blog-image {
    flex: none;
    width: 100%;
    height: 150px;
  }

  .flow-card {
    padding: 0 0 0 12px !important;
  }

  .video-preview {
    align-items: flex-start;
  }

  .video-thumb {
    flex-basis: 112px;
  }
}
