:root {
  --mw-primary: #1565c0;
  --mw-primary-dark: #0d417b;
  --mw-primary-accent: #2962ff;
  --mw-muted: rgba(0, 0, 0, 0.54);
  --mw-text: #2b2b2b;
  --mw-section-alt: #f7f7f7;
  --mw-container: 1290px;
}

.dark {
  --mw-muted: rgba(255, 255, 255, 0.6);
  --mw-text: #f8f8f2;
  --mw-section-alt: #23252f;
}

html {
  font-family: "Platypi", serif;
  scroll-padding-top: 70px;
}

@media (min-width: 58em) {
  html {
    font-size: 21px;
  }
}

body {
  color: var(--mw-text);
  background: #fff;
}

.dark body {
  background: #23252f;
  color: var(--mw-text);
}

#site-header {
  font-family: "Platypi", serif;
}

.prose {
  font-family: "Platypi", serif;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: "Sedan SC", serif;
}

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

a:hover,
a:focus {
  color: var(--mw-primary-dark);
  text-decoration: underline;
}

.dark a {
  color: #bbdefb;
}

.dark a:hover,
.dark a:focus {
  color: #e3f2fd;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sedan SC", serif;
  font-weight: 500;
}

#page-bg {
  display: none;
}

.page-header {
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);
}

.dark .page-header {
  background: #282a36;
  box-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.11);
}

#site-header .navbar {
  max-width: var(--mw-container);
  margin: 0 auto;
  padding: 0.25rem 15px;
}

#site-header .navbar-brand {
  font-weight: 700;
  color: #000;
  font-size: 1.35rem;
  line-height: 1.2;
  white-space: nowrap;
}

.dark #site-header .navbar-brand {
  color: #fff;
}

#site-header .navbar-nav .nav-link {
  color: #34495e;
  font-size: 0.75rem;
  padding: 0.25rem 0.0rem;
}

.dark #site-header .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#site-header .navbar-nav .nav-link.active {
  color: var(--mw-primary-accent);
  font-weight: 700;
}

.dark #site-header .navbar-nav .nav-link.active {
  color: #bbdefb;
}

#site-header button[data-search-toggle] {
  color: #34495e;
}

.dark #site-header button[data-search-toggle] {
  color: rgba(255, 255, 255, 0.85);
}

#site-header .theme-toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

#site-header .theme-toggle svg {
  width: 18px;
  height: 18px;
}

#site-header .theme-toggle:hover {
  background: rgba(21, 101, 192, 0.08);
}

.dark #site-header .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark #site-header .theme-toggle:hover {
  background: rgba(187, 222, 251, 0.12);
}

@media (min-width: 1024px) {
  #site-header .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    row-gap: 0;
  }

  #site-header .navbar > .order-0 {
    grid-column: 1;
    grid-row: 1;
  }

  #site-header #nav-menu {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-content: flex-start;
    padding-left: 1rem;
    align-self: center;
    flex-wrap: nowrap;
    min-width: 0;
  }

  #site-header .navbar > .order-1 {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    gap: 0.4rem;
  }

  #site-header #nav-menu > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.2rem !important;
  }
}

#site-header.header {
  padding-block: 0.4rem;
}

#site-header [data-hb-language-chooser] {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

#site-header [data-hb-language-chooser] span {
  display: none;
}

#site-header [data-hb-language-chooser] svg {
  width: 18px;
  height: 18px;
}

#site-header [data-hb-language-chooser]:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--mw-primary);
}

.dark #site-header [data-hb-language-chooser] {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark #site-header [data-hb-language-chooser]:hover {
  background: rgba(187, 222, 251, 0.12);
}
.page-body > section.hbb-section {
  position: relative;
  padding: 110px 0;
}

.dark .page-body > section.hbb-section {
  background: #272935;
}

.page-body > section.hbb-section:first-of-type {
  padding-top: 50px;
}

.page-body > section.hbb-section:nth-of-type(even) {
  background: var(--mw-section-alt);
}

.dark .page-body > section.hbb-section:nth-of-type(even) {
  background: var(--mw-section-alt);
}

.page-body > section.hbb-section .home-section-bg {
  display: none;
}

@media (max-width: 768px) {
  .page-body > section.hbb-section {
    padding: 60px 0;
  }

  .page-body > section.hbb-section:first-of-type {
    padding-top: 40px;
  }
}

.blox-resume-biography-3 .resume-biography {
  padding: 0 15px;
}

.blox-resume-biography-3 .resume-biography .max-w-7xl {
  max-width: var(--mw-container);
}

.blox-resume-biography-3 .avatar-wrapper {
  width: 270px !important;
  height: 270px !important;
  margin: 0 auto !important;
  display: block !important;
}

.blox-resume-biography-3 .avatar {
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  display: block !important;
}

.blox-resume-biography-3 h1 {
  color: #000;
  font-size: 2.5rem;
  font-weight: 600;
}

.dark .blox-resume-biography-3 h1 {
  color: #fff;
}

.blox-resume-biography-3 .text-primary-600 {
  color: var(--mw-primary) !important;
}

/* 确保左侧列内容完全居中对齐 */
.blox-resume-biography-3 .md\:col-span-4 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: flex-start !important;
}

/* 调整名字和身份信息的居中 */
.blox-resume-biography-3 .space-y-3 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 确保社交图标容器也居中 */
.blox-resume-biography-3 .flex.flex-wrap.justify-center {
  justify-content: center !important;
  width: 100% !important;
  display: flex !important;
}

.blox-resume-biography-3 .flex.items-center.gap-4.mb-8 .flex-shrink-0 {
  display: none;
}

.blox-resume-biography-3 .flex.items-center.gap-4.mb-8 {
  gap: 0;
}

.blox-resume-biography-3 .flex.flex-wrap.justify-center.gap-4 a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  padding: 0.25rem;
  color: #34495e;
  transform: none !important;
}

.blox-resume-biography-3 .flex.flex-wrap.justify-center.gap-4 a:hover {
  color: var(--mw-primary);
}

.dark .blox-resume-biography-3 .flex.flex-wrap.justify-center.gap-4 a {
  color: rgba(255, 255, 255, 0.85);
}

.dark .blox-resume-biography-3 .flex.flex-wrap.justify-center.gap-4 a:hover {
  color: #bbdefb;
}

.blox-resume-biography-3 .flex.flex-wrap.justify-center.gap-4 a svg {
  width: 2rem;
  height: 2rem;
}

.blox-resume-biography-3 a[href$="resume.pdf"] {
  background: transparent !important;
  background-image: none !important;
  color: var(--mw-primary) !important;
  border: 1px solid var(--mw-primary);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  box-shadow: none !important;
  font-weight: 600;
}

.blox-resume-biography-3 a[href$="resume.pdf"]:hover {
  background: var(--mw-primary) !important;
  color: #fff !important;
  text-decoration: none;
}

.dark .blox-resume-biography-3 a[href$="resume.pdf"] {
  border-color: #bbdefb;
  color: #bbdefb !important;
}

.dark .blox-resume-biography-3 a[href$="resume.pdf"]:hover {
  background: #bbdefb !important;
  color: #1b1d26 !important;
}

.blox-resume-biography-3 .grid > .group {
  background: linear-gradient(180deg, #ffffff 0%, #f9f5ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 8px 18px rgba(60, 72, 120, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  min-height: 110px;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.blox-resume-biography-3 .grid > .group:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(60, 72, 120, 0.14);
  border-color: rgba(99, 102, 241, 0.22);
}

.dark .blox-resume-biography-3 .grid > .group {
  background: linear-gradient(180deg, #2a2d3a 0%, #242633 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.dark .blox-resume-biography-3 .grid > .group:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
}
.blox-resume-biography-3 .grid > .group .flex {
  align-items: center;
  gap: 0.75rem;
}

.blox-resume-biography-3 .grid > .group .flex-shrink-0 {
  display: flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.2);
  color: #4f46e5;
}

.blox-resume-biography-3 .grid > .group .flex-shrink-0 svg {
  width: 20px;
  height: 20px;
  color: #4f46e5;
}

.dark .blox-resume-biography-3 .grid > .group .flex-shrink-0 {
  background: linear-gradient(135deg, #3a3f5c, #2f3551);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  color: #c7d2fe;
}

.dark .blox-resume-biography-3 .grid > .group .flex-shrink-0 svg {
  color: #c7d2fe;
}

.blox-resume-biography-3 .grid > .group p.text-xl {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.dark .blox-resume-biography-3 .grid > .group p.text-xl {
  color: #f8f8f2;
}

.blox-resume-biography-3 .grid > .group p.text-gray-500 {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  color: var(--mw-muted) !important;
}

.blox-resume-biography-3 .grid > .group p.text-gray-700 {
  font-size: 0.9rem;
  color: rgba(43, 43, 43, 0.7);
}

.dark .blox-resume-biography-3 .grid > .group p.text-gray-700 {
  color: rgba(248, 248, 242, 0.7);
}

.blox-resume-biography-3 .flex.flex-wrap.gap-3 {
  gap: 0.6rem 0.75rem;
}

.blox-resume-biography-3 .flex.flex-wrap.gap-3 span {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: #2b2b2b;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 8px 16px rgba(42, 52, 86, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.blox-resume-biography-3 .flex.flex-wrap.gap-3 span:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(42, 52, 86, 0.14);
  border-color: rgba(99, 102, 241, 0.3);
}

.dark .blox-resume-biography-3 .flex.flex-wrap.gap-3 span {
  background: linear-gradient(180deg, #2c2f3e 0%, #262836 100%);
  border: 1px solid rgba(147, 162, 255, 0.25);
  color: #f8f8f2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.dark .blox-resume-biography-3 .flex.flex-wrap.gap-3 span:hover {
  border-color: rgba(187, 222, 251, 0.4);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

.blox-markdown > div.flex {
  max-width: var(--mw-container);
  margin: 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 15px;
  gap: 2rem;
}

.blox-markdown > div.flex > .mb-6 {
  font-size: 2rem;
  margin: 0;
  text-align: left;
  color: #000;
}

.dark .blox-markdown > div.flex > .mb-6 {
  color: #fff;
}

.blox-markdown > div.flex > .prose {
  max-width: none;
}

@media (min-width: 992px) {
  .blox-markdown > div.flex {
    flex-direction: row;
  }

  .blox-markdown > div.flex > .mb-6 {
    width: 30%;
  }

  .blox-markdown > div.flex > .prose {
    width: 70%;
  }
}

@media (max-width: 991px) {
  .blox-markdown > div.flex {
    flex-direction: column;
  }
}

.blox-collection > div.flex {
  max-width: var(--mw-container);
  margin: 0 auto;
  align-items: flex-start;
  padding: 0 15px;
  gap: 0.5rem;
}

.blox-collection > div.flex .mb-6 {
  margin: 0;
  font-size: 2rem;
  color: #000;
}

.dark .blox-collection > div.flex .mb-6 {
  color: #fff;
}

.blox-collection > div.flex + div.flex {
  max-width: var(--mw-container);
  margin: 0 auto;
  padding: 0 15px;
  align-items: stretch;
}

.blox-collection .container {
  max-width: none;
  margin-top: 0 !important;
  padding: 0;
}

@media (min-width: 992px) {
  .blox-collection {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: 3rem;
  }

  .blox-collection > .home-section-bg {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  .blox-collection > div:nth-of-type(2) {
    grid-column: 1;
  }

  .blox-collection > div:nth-of-type(3) {
    grid-column: 2;
  }
}

.pub-list-item {
  font-size: 1rem;
  line-height: 1.6;
}

.pub-icon {
  color: var(--mw-muted);
  font-size: 0.81em;
  margin-right: 0.35rem;
}

.hb-attachment-link {
  border: 1px solid var(--mw-primary);
  color: var(--mw-primary);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.hb-attachment-link:hover {
  background: var(--mw-primary);
  color: #fff;
  text-decoration: none;
}

.dark .hb-attachment-link {
  border-color: #bbdefb;
  color: #bbdefb;
}

.dark .hb-attachment-link:hover {
  background: #bbdefb;
  color: #1b1d26;
}

/* 页脚备案信息样式 */
.site-footer p.text-center.mt-2 a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer p.text-center.mt-2 a:hover {
  color: var(--mw-primary);
  text-decoration: underline;
}

.dark .site-footer p.text-center.mt-2 {
  color: #999 !important;
}

.dark .site-footer p.text-center.mt-2 a {
  color: #999;
}

.dark .site-footer p.text-center.mt-2 a:hover {
  color: #bbdefb;
}

.site-footer p.powered-by.text-sm {
  display: none;
}
