:root {
  --main-color: #003366;
  --sub-color: #0056b3;
  --green: #10a37f;
  --orange: #b36b00;
  --bg-color: #f4f7f6;
  --text-color: #333;
  --muted-color: #666;
  --border-color: #e5e8eb;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.card {
  width: 100%;
  max-width: 700px;
  background: #fff;
  padding: 42px;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.language-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}

.language-links a {
  color: var(--sub-color);
  text-decoration: none;
  font-weight: 600;
}

.language-links a:hover {
  text-decoration: underline;
}

.language-links .active-lang {
  color: var(--main-color);
  font-weight: 700;
  text-decoration: underline;
}

.profile-img {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
}

h1 {
  margin: 8px 0 6px;
  font-size: 30px;
  color: var(--main-color);
  letter-spacing: 0.3px;
}

.title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #444;
}

.affiliation {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-color);
}

.section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.section-title {
  display: block;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.section p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-color);
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-color);
}

.highlight-box {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  border-left: 5px solid var(--sub-color);
  background: #f0f7ff;
  line-height: 1.5;
}

.highlight-box strong {
  font-size: 15px;
}

.highlight-box a {
  display: inline-block;
  margin-top: 5px;
  color: var(--sub-color);
  font-weight: 600;
  text-decoration: none;
}

.highlight-box a:hover {
  text-decoration: underline;
}

.ai-box {
  border-left-color: var(--green);
  background: #f0fff4;
}

.ai-box a {
  color: var(--green);
}

.calc-box {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.calc-box a {
  color: var(--orange);
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: #f0f4f8;
  transform: translateY(-1px);
}

.btn:focus {
  outline: 3px solid rgba(0, 86, 179, 0.25);
  outline-offset: 2px;
}

.qr-box {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.qr-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #fff;
}

.qr-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-color);
}

@media (max-width: 520px) {
  body {
    padding: 24px 14px;
  }

  .card {
    padding: 30px 22px;
  }

  .language-links {
    justify-content: center;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 26px;
  }

  .profile-img {
    width: 125px;
    height: 125px;
  }

  .link-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .qr-img {
    width: 120px;
    height: 120px;
  }
}
