/* ============================================================
   Base Styles
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2c3e50;
  --accent-color: #2980b9;
  --accent-hover: #1a5276;
  --text-color: #333;
  --text-light: #555;
  --bg-color: #fff;
  --sidebar-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --font-main: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  --sidebar-width: 240px;
  --content-max: 800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.7;
}

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

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

/* ============================================================
   Layout
   ============================================================ */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  background: var(--primary-color);
  color: #fff;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-right: 2.5rem;
  white-space: nowrap;
}

.site-title:hover {
  color: #dce9f5;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Main Content Area
   ============================================================ */
.main-container {
  display: flex;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  gap: 3rem;
  flex: 1;
  width: 100%;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-inner {
  position: sticky;
  top: 80px;
}

.profile-photo-placeholder {
  width: 180px;
  height: 240px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c8d6e5, #a0b8cc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 3.5rem;
  color: #fff;
  overflow: hidden;
}

.profile-photo {
  width: 180px;
  max-width: 100%;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-name {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.4rem;
}

.profile-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.profile-links {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.profile-links li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-light);
}

.profile-links li .icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-light);
  margin-top: 3px;
}

.profile-links a {
  color: var(--accent-color);
}

/* ============================================================
   Content Area
   ============================================================ */
.content {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max);
}

.content h1 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-color);
}

.content h2 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.content ul li {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ============================================================
   Publications
   ============================================================ */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.pub-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.pub-authors strong {
  color: #000;
  font-weight: 700;
}

.pub-venue {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pub-venue em {
  font-style: italic;
  color: #444;
}

.pub-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.badge-award {
  background: #fef9e7;
  color: #b7950b;
  border: 1px solid #f9e79f;
}

.badge-under-revision {
  background: #eaf4fb;
  color: #1a5276;
  border: 1px solid #aed6f1;
}

.badge-submitted {
  background: #eafaf1;
  color: #1e8449;
  border: 1px solid #a9dfbf;
}

.pub-links {
  margin-top: 0.5rem;
}

.pub-links a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 3px;
  padding: 0.15rem 0.6rem;
  margin-right: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.pub-links a:hover {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Education / Awards Combined
   ============================================================ */
.edu-item {
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent-color);
}

.edu-degree {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.edu-school {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.2rem;
}

.edu-date {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.edu-detail {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.edu-detail ul {
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

.edu-detail li {
  margin-bottom: 0.3rem;
}

.award-section {
  margin-top: 1.5rem;
}

.award-item-edu {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.award-year-edu {
  font-weight: 700;
  color: var(--accent-color);
  min-width: 45px;
}

/* ============================================================
   Research Interests Tags
   ============================================================ */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 2rem;
}

.interest-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: #f0f4f8;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.25rem 0.8rem;
}

/* ============================================================
   News List
   ============================================================ */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.news-date {
  font-weight: 700;
  color: var(--primary-color);
  min-width: 80px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #888;
  margin-top: 4rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 850px) {
  .main-container {
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-inner {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
  }

  .content h1 {
    font-size: 1.6rem;
  }
}
