:root {
  --max-width: 700px;
  --primary-color: #007acc;
  --text-color: #111;
  --muted-color: #666;
  --border-color: #eee;
  --bg-color: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Book Antiqua", Palatino, "Noto Serif SC", "宋体", serif;
  line-height: 1.55;
}

header {
  padding: 60px 20px 30px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
}

header p {
  max-width: 900px;
  margin: 0.5rem auto 0;
  color: var(--muted-color);
  font-size: 1.1rem;
  line-height: 1.45;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

main {
  width: min(100%, calc(var(--max-width) + 40px));
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 40px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.25;
}

p,
li {
  overflow-wrap: anywhere;
}

ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 5px;
}

a {
  color: var(--primary-color);
  font-family: "Book Antiqua", Palatino, "Noto Serif SC", "宋体", serif;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #3a5fcd;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

footer {
  padding: 30px 20px;
  border-top: 1px solid var(--border-color);
  color: #999;
  font-size: 0.9rem;
  text-align: center;
}

.lang-switcher {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 0.9rem;
}

.container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.role-title {
  flex: 1;
  font-weight: bold;
}

.role-time {
  flex: 0 0 auto;
  color: var(--text-color);
  text-align: right;
}

@media (max-width: 600px) {
  header {
    padding: 52px 18px 22px;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    max-width: 350px;
    margin-top: 8px;
    font-size: 0.95rem;
  }

  nav {
    gap: 2px 18px;
    padding: 9px 14px;
  }

  nav a {
    min-height: 40px;
    font-size: 0.95rem;
  }

  main {
    margin: 28px auto;
    padding: 0 18px;
  }

  section {
    margin-bottom: 32px;
  }

  h2 {
    font-size: 1.4rem;
  }

  p,
  li {
    line-height: 1.65;
  }

  .lang-switcher {
    top: 14px;
    right: 16px;
  }

  .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .role-time {
    text-align: left;
  }
}

@media (max-width: 360px) {
  nav {
    gap: 0 14px;
  }

  main {
    padding: 0 16px;
  }
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.social-icon-1 {
    width: 16px;
    height: 16px;
    margin-right: 1px;
    margin-left: 1px;
}

.social-icon-2 {
    width: 20px;
    height: 16px;
    margin-right: 1px;
    margin-left: 1px;
}