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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #fefefe;
  background-color: #2c3e50;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #5dade2;
  text-decoration: underline;
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: #1a252f;
  padding: 30px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.lang-toggle-top .lang-active {
  color: #3498db;
  font-weight: 600;
}

.avatar-container {
  margin-bottom: 15px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  object-fit: cover;
}

.sidebar-name {
  font-size: 1.6em;
  font-weight: 700;
  color: #fefefe;
  margin-bottom: 5px;
}

.sidebar-title {
  font-size: 0.95em;
  font-weight: 400;
  color: #d0d0d0;
  margin-bottom: 10px;
}

.sidebar-affiliation {
  text-align: center;
  margin-bottom: 25px;
}

.sidebar-affiliation a {
  color: #3498db;
  font-size: 1em;
  font-weight: 500;
}

.sidebar-nav {
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 10px 15px;
  color: #d0d0d0;
  border-radius: 7px;
  transition: all 0.2s;
  font-weight: 500;
}

.sidebar-nav a:hover {
  background-color: rgba(52, 152, 219, 0.2);
  color: #fefefe;
  text-decoration: none;
}

.sidebar-contact {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85em;
  color: #95a5a6;
}

.sidebar-contact p {
  margin-bottom: 8px;
}

.sidebar-contact a {
  color: #3498db;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8em;
  color: #7f8c8d;
  text-align: center;
}

.main-wrapper {
  margin-left: 280px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lang-toggle-top {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
  font-size: 0.9em;
}

.lang-toggle-top a {
  color: #555;
  transition: color 0.2s;
}

.lang-toggle-top a:hover {
  color: #3498db;
}

.main-content {
  flex-grow: 1;
  padding: 40px 50px;
  background-color: #f5f5f5;
}

.page, .post {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 7px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-header, .post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.page-title, .post-title {
  font-size: 2em;
  color: #2c3e50;
  font-weight: 600;
}

.post-date {
  color: #888;
  margin-top: 10px;
  font-size: 0.9em;
}

h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  margin: 1.5em 0 0.5em;
  font-weight: 600;
}

h1 { font-size: 2em; }
h2 {
  font-size: 1.5em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}
h3 { font-size: 1.3em; }

p {
  margin-bottom: 1em;
  color: #222;
}

ul, ol {
  margin: 1em 0;
  padding-left: 25px;
  color: #222;
}

li {
  margin-bottom: 0.5em;
  color: #222;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  color: #1a1a1a;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

tr:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.notice {
  padding: 15px 20px;
  margin: 20px 0;
  border-left: 4px solid #3498db;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 0 7px 7px 0;
}

.notice--info {
  border-color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

code {
  background-color: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.9em;
  color: #e74c3c;
}

pre {
  background-color: #1a252f;
  padding: 15px;
  border-radius: 7px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: none;
  padding: 0;
  color: #fefefe;
}

.section {
  background-color: #ffffff;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.4em;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-top: 0;
}

.section-content p {
  margin-bottom: 1em;
  color: #1a1a1a;
}

.paper-list {
  list-style: none;
  padding: 0;
}

.paper-list li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

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

.venue-tag {
  display: inline-block;
  background-color: #e8f4fc;
  color: #2980b9;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  margin-left: 5px;
}

.news-list, .project-list, .award-list {
  list-style: none;
  padding: 0;
}

.news-list li, .project-list li, .award-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

.news-list li:last-child, .project-list li:last-child, .award-list li:last-child {
  border-bottom: none;
}

.student-table {
  margin-top: 15px;
}

.more-link {
  display: inline-block;
  margin-top: 10px;
  color: #3498db;
  font-weight: 500;
}

.contact-section {
  background-color: #f8f9fa;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  padding: 5px 0;
  color: #1a1a1a;
  font-weight: 500;
}

@media (max-width: 800px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: 20px;
  }

  .page, .post {
    padding: 20px;
  }

  .section {
    padding: 20px;
  }
}