:root {
  --bg: #f8f7f4;
  --card: #ffffff;
  --text: #1e1e1e;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --accent: #244a96;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  font-size: 17px;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1280px;
  margin: 36px auto;
  padding: 0 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

h1 {
  margin: 14px 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.intro > p {
  margin: 0 0 14px;
  max-width: 78ch;
}

.profile-research {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 250px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: Arial, sans-serif;
  color: #222;
  text-align: center;
}

.topic-line {
  margin: 0;
  color: #2f2f2f;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}

.topic-line i {
  width: 18px;
  margin-right: 6px;
  color: #111;
  font-size: 0.9rem;
  text-align: center;
}

.icons {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  gap: 18px;
  font-size: 1.35rem;
}

.icons a {
  color: #222;
}

.icons a:hover {
  color: var(--accent);
  text-decoration: none;
}

.research {
  margin-top: 18px;
}

.research-heading {
  margin: 0 0 12px;
  font-family: Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.research-heading i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.paper-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.paper-thumb {
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d2d2d2;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #666;
  overflow: hidden;
}

.paper-thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.paper-title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.35;
}

.paper-meta {
  margin: 2px 0 0;
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.25;
}

.venue-oral {
  color: #d7263d;
  font-weight: 700;
}

.paper-authors {
  margin: 0 0 8px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.25;
}

.paper-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.paper-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e7e7e7;
  color: #333;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 0.9rem;
}

.paper-links a:hover {
  text-decoration: none;
  background: #dddddd;
}

@media (max-width: 640px) {
  .page {
    margin: 24px auto;
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }

  .profile {
    align-items: flex-start;
    text-align: left;
  }

  .avatar {
    width: 160px;
  }

  .paper-card {
    grid-template-columns: 1fr;
  }

  .paper-thumb {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
}
