:root {
  --page-bg: #f6f8fb;
  --text: #263746;
  --muted: #64748b;
  --line: #dfe6ef;
  --accent: #0f7f8c;
  --accent-strong: #0b6872;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.1);
}

html {
  background: var(--page-bg);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 127, 140, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0, var(--page-bg) 24rem);
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 230, 239, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 18px rgba(15, 23, 42, 0.05);
}

.navbar .site-name {
  color: var(--text);
  letter-spacing: 0;
}

.nav-links a.router-link-active,
.nav-links a:hover,
a,
p a code {
  color: var(--accent);
}

@media (min-width: 719px) {
  .nav-item > a:not(.external).router-link-active,
  .nav-item > a:not(.external):hover {
    border-bottom-color: var(--accent);
  }
}

.theme-default-content:not(.custom) {
  max-width: 860px;
  padding-top: 3rem;
}

.theme-container.home-page .page {
  color: var(--text);
  font-size: 15px;
}

.theme-container.home-page .page .theme-default-content:not(.custom) > h2 {
  margin-top: 0;
  border-bottom: 0;
  color: var(--text);
  font-size: 1.35rem;
  padding-top: 2.5rem;
  position: relative;
}

.theme-container.home-page .page .theme-default-content:not(.custom) > h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.profile {
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin: 1.2rem 0 2rem;
  border: 1px solid rgba(223, 230, 239, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile .image {
  max-width: 136px;
  flex: 0 0 136px;
}

.profile .image img {
  display: block;
  width: 136px;
  height: 136px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.profile .info {
  padding-left: 0;
  min-width: 0;
}

.profile .info .name {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text);
}

.profile .info .bio {
  color: var(--muted);
  margin: 0.35rem 0 0.6rem;
}

.profile .info .contact {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.profile .info .contact .email,
.profile .info .contact .qq {
  word-break: break-word;
}

.md-card {
  overflow: hidden;
  border: 1px solid rgba(223, 230, 239, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.md-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 127, 140, 0.28);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.md-card .card-image {
  background: #f8fafc;
}

.md-card .card-image img {
  border: 0;
  border-radius: 6px;
}

.md-card .card-content {
  padding: 1rem 1.1rem;
}

.md-card .card-content strong,
.md-card .card-content h2 {
  color: var(--text);
}

.page-edit {
  color: var(--muted);
}

.visitor-counter {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(223, 230, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.visitor-counter img {
  display: block;
  max-height: 20px;
  width: auto;
}

.visitor-counter.is-hidden {
  display: none;
}

@media (max-width: 719px) {
  .theme-default-content:not(.custom) {
    padding-top: 2rem;
  }

  .profile {
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem;
  }

  .profile .image {
    max-width: 96px;
    flex-basis: 96px;
  }

  .profile .image img {
    width: 96px;
    height: 96px;
  }

  .profile .info .name {
    font-size: 1.65rem;
  }
}

@media (max-width: 419px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .profile .info .contact {
    justify-content: center;
  }

  .md-card {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .visitor-counter {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
