@charset "UTF-8";
/*******************************************************************************
 * Variables used throughout the theme.
 * To adjust anything, simply edit the variables below and rebuild the theme.
 ******************************************************************************/
/*******************************************************************************
 * Themes - 完整修复：底部透明化 + 主题图标颜色
 ******************************************************************************/
:root {
  --global-bg-color: #ffffff;
  --global-code-bg-color: rgba(181, 9, 172, 0.05);
  --global-text-color: #000000;
  --global-text-color-light: #828282;
  --global-theme-color: #0076df;
  --global-hover-color: #0076df;
  /* 亮色主题：footer 半透明白 */
  --global-footer-bg-color: rgba(255, 255, 255, 0.85);
  --global-footer-text-color: #828282;
  --global-footer-link-color: #0076df;
  --global-distill-app-color: #828282;
  --global-divider-color: rgba(0, 0, 0, 0.1);
  --global-callout-bg-color: #fff3cd;
  --global-callout-border-color: #ffc107;
  --theme-icon-color: #000000; /* 亮色下图标为黑色 */
}

html[data-theme=dark] {
  --global-bg-color: #1c1c1d;
  --global-code-bg-color: #2c3237;
  --global-text-color: #e8e8e8;
  --global-text-color-light: #e8e8e8;
  --global-theme-color: #2698ba;
  --global-hover-color: #2698ba;
  /* 暗色主题：footer 半透明深灰 */
  --global-footer-bg-color: rgba(10, 10, 15, 0.8);
  --global-footer-text-color: #e8e8e8;
  --global-footer-link-color: #2698ba;
  --global-distill-app-color: #e8e8e8;
  --global-divider-color: #424246;
  --global-callout-bg-color: #3d3d00;
  --global-callout-border-color: #ffc107;
  --theme-icon-color: #ffffff; /* 暗色下图标为白色 */
}

/* Footer 样式（适配 fixed-bottom） */
footer.fixed-bottom,
.footer,
.site-footer {
  background: var(--global-footer-bg-color);
  color: var(--global-footer-text-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  font-size: 14px;
  /* 确保宽度撑满 */
  width: 100%;
  box-sizing: border-box;
}

/* Footer 链接颜色 */
footer.fixed-bottom a,
.footer a,
.site-footer a {
  color: var(--global-footer-link-color);
}

/* ✨ 主题切换图标：关键修复部分 */
#light-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  line-height: 1;
}

#light-toggle .fas {
  /* 统一使用主题变量控制颜色 */
  color: var(--theme-icon-color) !important;
  font-size: 16px;
  /* 确保两个月亮/太阳尺寸一致，避免布局跳动 */
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}

/* 控制显隐：用 display 切换（无动画但稳定） */
:root .fa-sun,
html[data-theme=dark] .fa-moon {
  display: none !important;
}

:root .fa-moon,
html[data-theme=dark] .fa-sun {
  display: inline-block !important;
}

/******************************************************************************
 * Content
 ******************************************************************************/
body {
  padding-bottom: 70px;
  color: var(--global-text-color);
  background-color: var(--global-bg-color);
}
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  scroll-margin-top: 66px;
}

body.fixed-top-nav {
  padding-top: 56px;
}

body.sticky-bottom-footer {
  padding-bottom: 0;
}

.container {
  max-width: 1000px;
}

.profile img {
  width: 50%;
}

/******************************************************************************
 * Publications
 ******************************************************************************/
/*****************************************************************************
* Projects
*****************************************************************************/
/*******************************************************************************
 * Styles for the base elements of the theme.
 ******************************************************************************/
p,
h1,
h2,
h3,
h4,
h5,
h6,
em,
div,
li,
span,
strong {
  color: var(--global-text-color);
}

hr {
  border-top: 1px solid var(--global-divider-color);
}

a,
table.table a {
  color: var(--global-theme-color);
}
a:hover,
table.table a:hover {
  color: var(--global-theme-color);
  text-decoration: underline;
}
a:hover:after :not(.nav-item.dropdown),
table.table a:hover:after :not(.nav-item.dropdown) {
  width: 100%;
}

blockquote {
  background: var(--global-bg-color);
  border-left: 2px solid var(--global-theme-color);
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  font-size: 1.2rem;
}

.equation {
  margin-bottom: 1rem;
  text-align: center;
}

.caption {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.citation,
.citation-number {
  color: var(--global-theme-color);
}

.profile {
  margin-left: 1rem;
  width: 100%;
  margin-right: 0rem;
}
.profile .address {
  margin-bottom: 5px;
  margin-top: 5px;
  font-family: monospace;
}
.profile .address p {
  display: inline-block;
  margin: 0;
}

@media (min-width: 576px) {
  .profile {
    width: 30%;
  }
  .profile .address p {
    display: block;
  }
}
.post-description {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}
.post-description a {
  color: inherit;
}
.post-description a:hover {
  color: var(--global-theme-color);
  text-decoration: none;
}

.navbar {
  box-shadow: none;
  border-bottom: 1px solid var(--global-divider-color);
  background-color: var(--global-bg-color);
  opacity: 0.95;
}
@media (max-width: 767.98px) {
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar .navbar-toggler {
    margin-left: 0 !important;
  }
  .navbar .toggle-container {
    margin-left: auto !important; /* 确保主题按钮靠右 */
  }
}

.navbar .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--global-divider-color);
}
html[data-theme=dark] .navbar .dropdown-menu {
  background-color: rgba(25, 25, 30, 0.92);
}

.dropdown-item {
  color: var(--global-text-color);
}
.dropdown-item:hover {
  color: var(--global-hover-color);
  background-color: var(--global-bg-color);
}

.navbar.navbar-light a:hover {
  text-decoration: none;
}
.navbar.navbar-light .navbar-brand {
  color: var(--global-text-color);
}
.navbar.navbar-light .navbar-nav .nav-item .nav-link {
  color: var(--global-text-color);
}
.navbar.navbar-light .navbar-nav .nav-item .nav-link:hover {
  color: var(--global-hover-color);
}
.navbar.navbar-light .navbar-nav .nav-item.active > .nav-link {
  background-color: inherit;
  font-weight: bolder;
  color: var(--global-theme-color);
}
.navbar.navbar-light .navbar-nav .nav-item.active > .nav-link:hover {
  color: var(--global-hover-color);
}
.navbar.navbar-light .navbar-brand.social {
  padding-bottom: 0;
  padding-top: 0;
  font-size: 1.7rem;
}
.navbar.navbar-light .navbar-brand.social a i::before {
  color: var(--global-text-color);
  -webkit-transition: all 0.2s ease-in-out;
}
.navbar.navbar-light .navbar-brand.social a:hover i::before {
  color: var(--global-theme-color);
}

.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
.navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--global-text-color);
  border-radius: 1px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  position: relative;
}
.navbar-toggler .icon-bar:last-child {
  margin-bottom: 0;
}
.navbar-toggler.collapsed .icon-bar:nth-child(1) {
  transform: rotate(0);
}
.navbar-toggler.collapsed .icon-bar:nth-child(2) {
  opacity: 1;
}
.navbar-toggler.collapsed .icon-bar:nth-child(3) {
  transform: rotate(0);
}
.navbar-toggler:not(.collapsed) .icon-bar:nth-child(1) {
  transform: rotate(45deg) translateY(6px) translateX(1px);
}
.navbar-toggler:not(.collapsed) .icon-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggler:not(.collapsed) .icon-bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px) translateX(1px);
}

.news table td {
  font-size: 1rem;
  color: var(--global-text-color);
}

.news table th {
  color: var(--global-text-color);
}

.myicon {
  width: 30%;
  margin-right: 15px;
}

.social {
  text-align: center;
}
.social .contact-icons {
  font-size: 2rem;
}
.social .contact-icons a i::before {
  color: var(--global-text-color);
  -webkit-transition: all 0.2s ease-in-out;
}
.social .contact-icons a:hover i::before {
  color: var(--global-theme-color);
}
.social .contact-note {
  font-size: 0.8rem;
}

footer.fixed-bottom {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important; /* 👈 关键！替代 width:100%，避免滚动条影响 */
  z-index: 9999;
  background-color: var(--global-footer-bg-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
}
footer.fixed-bottom .container {
  color: var(--global-footer-text-color);
  padding-top: 9px;
  padding-bottom: 8px;
  width: 100% !important; /* 防止 container 缩小 */
  max-width: none !important; /* 覆盖 Bootstrap 默认 max-width */
  text-align: center; /* 如果希望文字居中（可选）*/
}
footer.fixed-bottom a {
  color: var(--global-footer-link-color);
}
footer.fixed-bottom a:hover {
  color: var(--global-theme-color);
  text-decoration: none;
}

.header-bar {
  border-bottom: 1px solid var(--global-divider-color);
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 5rem;
}
.header-bar h1 {
  color: var(--global-theme-color);
  font-size: 5rem;
}

.post-list {
  margin: 0;
  margin-bottom: 40px;
  padding: 0;
}
.post-list li {
  border-bottom: 1px solid var(--global-divider-color);
  list-style: none;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.post-list li .post-meta {
  color: var(--global-text-color-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}
.post-list li .post-tags {
  color: var(--global-text-color-light);
  font-size: 0.875rem;
  padding-top: 0.25rem;
}
.post-list li a {
  color: var(--global-text-color);
  text-decoration: none;
}
.post-list li a:hover {
  color: var(--global-theme-color);
}

.pagination .page-item .page-link {
  color: var(--global-text-color);
}
.pagination .page-item .page-link:hover {
  color: #000000;
}
.pagination .page-item.active .page-link {
  color: #ffffff;
  background-color: var(--global-theme-color);
}
.pagination .page-item.active .page-link:hover {
  background-color: var(--global-theme-color);
}

.distill a:hover {
  border-bottom-color: var(--global-theme-color);
  text-decoration: none;
}

.projects a {
  text-decoration: none;
}
.projects a:hover .card-title {
  color: var(--global-theme-color);
}
.projects .card img {
  width: 100%;
}
.projects .card .card-title {
  color: #000000;
}
.projects .card-item {
  width: auto;
  margin-bottom: 10px;
}
.projects .card-item .row {
  display: flex;
  align-items: center;
}
.projects .grid-item {
  width: 250px;
  margin-bottom: 10px;
}
.projects h2.category {
  color: var(--global-divider-color);
  border-bottom: 1px solid var(--global-divider-color);
  padding-top: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: right;
}

.publications {
  margin-top: 2rem;
}
.publications h1 {
  color: var(--global-theme-color);
  font-size: 2rem;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
}
.publications h2 {
  margin-bottom: 1rem;
}
.publications h2 span {
  font-size: 1.5rem;
}
.publications h2.year {
  color: var(--global-divider-color);
  border-top: 1px solid var(--global-divider-color);
  padding-top: 1rem;
  margin-top: 2rem;
  margin-bottom: -2rem;
  text-align: right;
}
.publications ol.bibliography {
  list-style: none;
  padding: 0;
  margin-top: 0;
}
.publications ol.bibliography li {
  margin-bottom: 1rem;
}
.publications ol.bibliography li .abbr {
  height: 2rem;
  margin-bottom: 0.5rem;
}
.publications ol.bibliography li .abbr abbr {
  display: inline-block;
  background-color: var(--global-theme-color);
  padding-left: 1rem;
  padding-right: 1rem;
}
.publications ol.bibliography li .abbr abbr a {
  color: white;
}
.publications ol.bibliography li .abbr abbr a:hover {
  text-decoration: none;
}
.publications ol.bibliography li .abbr .award {
  color: var(--global-theme-color) !important;
  border: 1px solid var(--global-theme-color);
}
.publications ol.bibliography li .title {
  font-weight: bolder;
}
.publications ol.bibliography li .author a {
  border-bottom: 1px dashed var(--global-theme-color);
}
.publications ol.bibliography li .author a:hover {
  border-bottom-style: solid;
  text-decoration: none;
}
.publications ol.bibliography li .author > em {
  border-bottom: 1px solid;
  font-style: normal;
}
.publications ol.bibliography li .links a.btn {
  color: var(--global-text-color);
  border: 1px solid var(--global-text-color);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.publications ol.bibliography li .links a.btn:hover {
  color: var(--global-theme-color);
  border-color: var(--global-theme-color);
}
.publications ol.bibliography li .hidden {
  font-size: 0.875rem;
  max-height: 0px;
  overflow: hidden;
  text-align: justify;
  -webkit-transition: 0.15s ease;
  -moz-transition: 0.15s ease;
  -ms-transition: 0.15s ease;
  -o-transition: 0.15s ease;
  transition: all 0.15s ease;
}
.publications ol.bibliography li .hidden p {
  line-height: 1.4em;
  margin: 10px;
}
.publications ol.bibliography li .hidden pre {
  font-size: 1em;
  line-height: 1.4em;
  padding: 10px;
}
.publications ol.bibliography li .hidden.open {
  max-height: 100em;
  -webkit-transition: 0.15s ease;
  -moz-transition: 0.15s ease;
  -ms-transition: 0.15s ease;
  -o-transition: 0.15s ease;
  transition: all 0.15s ease;
}
.publications ol.bibliography li div.abstract.hidden {
  border: dashed 1px var(--global-bg-color);
}
.publications ol.bibliography li div.abstract.hidden.open {
  border-color: var(--global-text-color);
}

figure.highlight {
  margin: 0 0 1rem;
}

pre {
  color: var(--global-theme-color);
  background-color: var(--global-code-bg-color);
  border-radius: 6px;
  padding: 6px 12px;
}
pre pre,
pre code {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

code {
  color: var(--global-theme-color);
  background-color: var(--global-code-bg-color);
  border-radius: 3px;
  padding: 3px 3px;
}

html.transition,
html.transition *,
html.transition *:before,
html.transition *:after {
  transition: all 750ms !important;
  transition-delay: 0 !important;
}

.callout {
  background: var(--global-callout-bg-color);
  border-left: 4px solid var(--global-callout-border-color);
  padding: 10px 15px;
  margin: 15px 0;
  color: var(--global-text-color);
}
.callout a {
  color: var(--global-theme-color);
}

.timeline {
  position: relative;
  margin: 0.5rem 0;
}
.timeline .timeline-item {
  position: relative;
  padding-bottom: 0.8rem;
  padding-left: 1.2rem;
}
.timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--global-theme-color);
}
.timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--global-theme-color);
  /* 👇 添加默认过渡，使缩放进出都平滑 */
  transition: transform 0.2s ease;
}
.timeline .timeline-item:hover::before {
  transform: scale(1.2);
}
.timeline .timeline-item .timeline-header {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.timeline .timeline-item .timeline-header .timeline-period {
  color: var(--global-text-color-light);
}
.timeline .timeline-item .timeline-header .timeline-role {
  font-weight: bold;
}
.timeline .timeline-item .timeline-desc {
  font-size: 0.9rem;
  color: var(--global-text-color-light);
}

.post .post-meta {
  color: var(--global-text-color-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}
.post .post-tags {
  color: var(--global-text-color-light);
  font-size: 0.875rem;
  padding-bottom: 1rem;
}
.post .post-tags a {
  color: var(--global-text-color-light);
  text-decoration: none;
}
.post .post-tags a:hover {
  color: var(--global-theme-color);
}
.post .post-content blockquote {
  border-left: 5px solid var(--global-theme-color);
  padding: 8px;
}

.post-tags {
  color: var(--global-text-color-light);
  font-size: 0.875rem;
  padding-top: 0.25rem;
}

/* 彻底消除左上角灰色条（覆盖所有可能来源） */
html,
body {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 修复 Safari/Chrome GPU 渲染残留 */
* {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 防止伪元素干扰 */
body::before,
body::after,
html::before,
html::after {
  content: none !important;
  display: none !important;
}

/* 紧凑容器，避免 li 自带边距 */
.toggle-container {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block; /* 防止 li 撑满整行 */
}

/* 按钮本体：小尺寸 + 圆形 + 无冗余样式 */
#light-toggle {
  background: none;
  border: none; /* 移除默认边框（“方框”主因）*/
  padding: 6px; /* 原始值常为 10px+，此处显著缩小 */
  width: 32px;
  height: 32px;
  border-radius: 50%; /* 圆形按钮更紧凑美观 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s; /* 微交互提升体验 */
}

/* 图标尺寸控制（Font Awesome 由 font-size 决定大小）*/
#light-toggle .fas {
  font-size: 16px; /* 原始常为 20px+，按需微调 */
  position: absolute; /* 使两个月亮/太阳图标重叠，避免宽度翻倍 */
  opacity: 1;
  transition: opacity 0.3s;
}

/* 可选：悬停微反馈 */
#light-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

/* 在全局 CSS 中添加 */
body {
  padding-bottom: 60px !important; /* ≥ footer 高度 */
}

/*******************************************************************************
 * Style overrides for distill blog posts.
 ******************************************************************************/
d-byline {
  border-top-color: var(--global-divider-color) !important;
}

d-byline h3 {
  color: var(--global-text-color) !important;
}

d-byline a,
d-article d-byline a {
  color: var(--global-text-color) !important;
}
d-byline a:hover,
d-article d-byline a:hover {
  color: var(--global-hover-color) !important;
}

d-article {
  border-top-color: var(--global-divider-color) !important;
}
d-article p,
d-article h1,
d-article h2,
d-article h3,
d-article h4,
d-article h5,
d-article h6,
d-article li,
d-article table {
  color: var(--global-text-color) !important;
}
d-article h1,
d-article h2,
d-article hr,
d-article table,
d-article table th,
d-article table td {
  border-bottom-color: var(--global-divider-color) !important;
}
d-article a {
  color: var(--global-theme-color) !important;
}
d-article a:hover {
  color: var(--global-theme-color) !important;
}
d-article b i {
  display: inline;
}
d-article details {
  color: var(--global-text-color);
  background-color: var(--global-code-bg-color);
  margin-top: 0;
  padding: 8px 12px;
  position: relative;
  border-radius: 6px;
  display: block;
  margin-bottom: 20px;
  grid-column: text;
  overflow: auto;
  max-width: 100%;
}
d-article details summary {
  color: var(--global-theme-color);
}
d-article details p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
d-article d-contents {
  align-self: start;
  grid-column: 1/4;
  grid-row: auto/span 4;
  justify-self: end;
  margin-top: 0em;
  padding-left: 2em;
  padding-right: 3em;
  border-right: 1px solid var(--global-divider-color);
  width: max(70%, 300px);
  margin-right: 0px;
  margin-top: 0em;
  display: grid;
  grid-template-columns: minmax(8px, 1fr) [toc] auto minmax(8px, 1fr) [toc-line] 1px minmax(32px, 2fr);
}
d-article d-contents nav {
  grid-column: toc;
}
d-article d-contents nav a {
  border-bottom: none !important;
}
d-article d-contents nav a:hover {
  border-bottom: 1px solid var(--global-text-color) !important;
}
d-article d-contents nav h3 {
  margin-top: 0;
  margin-bottom: 1em;
}
d-article d-contents nav div {
  display: block;
  outline: none;
  margin-bottom: 0.8em;
  color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
}
d-article d-contents nav ul {
  padding-left: 1em;
  margin-top: 0;
  margin-bottom: 6px;
  list-style-type: none;
}
d-article d-contents nav ul li {
  margin-bottom: 0.25em;
}
d-article d-contents .figcaption {
  line-height: 1.4em;
}
d-article d-contents toc-line {
  border-right: 1px solid var(--global-divider-color);
  grid-column: toc-line;
}
d-article d-footnote {
  scroll-margin-top: 66px;
}

d-appendix {
  border-top-color: var(--global-divider-color) !important;
  color: var(--global-distill-app-color) !important;
}
d-appendix h3,
d-appendix li,
d-appendix span {
  color: var(--global-distill-app-color) !important;
}
d-appendix a,
d-appendix a.footnote-backlink {
  color: var(--global-distill-app-color) !important;
}
d-appendix a:hover,
d-appendix a.footnote-backlink:hover {
  color: var(--global-hover-color) !important;
}

@media (max-width: 1024px) {
  d-article d-contents {
    display: block;
    grid-column-start: 2;
    grid-column-end: -2;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    padding-top: 0.5em;
    width: 100%;
    border: 1px solid var(--global-divider-color);
  }
  d-article d-contents nav {
    grid-column: none;
  }
}

/*# sourceMappingURL=main.css.map */