/* 安知鱼标签在 Butterfly 下的简易兼容样式（tip / image / folding / media） */
.tip {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid #49b1f5;
  background: rgba(73, 177, 245, 0.12);
  line-height: 1.6;
}
.tip.home,
.tip.info {
  border-left-color: #49b1f5;
  background: rgba(73, 177, 245, 0.12);
}
.tip.sync,
.tip.warning {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.15);
}
.tip.success {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.12);
}
.tip.error,
.tip.danger {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.12);
}
.tip p:last-child {
  margin-bottom: 0;
}

.img-wrap {
  margin: 1rem auto;
  text-align: center;
}
.img-wrap .img-bg {
  display: inline-block;
  max-width: 100%;
}
.img-wrap img.img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.img-wrap .image-caption {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9em;
  color: #858585;
}

details.folding-tag {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] details.folding-tag {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
details.folding-tag > summary {
  cursor: pointer;
  font-weight: 600;
}
details.folding-tag .content {
  margin-top: 0.6rem;
}

.video,
.audio {
  margin: 1rem 0;
}
.video video,
.audio audio {
  width: 100%;
  max-width: 100%;
}

/* Butterfly 兼容：音乐 / 关于 / 相册 / 短文 */
.bf-compat-tip { color: #858585; margin-bottom: 1rem; }
.bf-compat-more { margin-top: 1rem; }
.bf-about-hero { text-align: center; margin: 1rem 0 1.5rem; }
.bf-about-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bf-about-sub, .bf-about-desc { color: #858585; }
.bf-about-skills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }
.bf-chip { padding: .25rem .7rem; border-radius: 999px; background: rgba(73,177,245,.12); font-size: .9em; }
.bf-about-list { padding-left: 1.2rem; }
.bf-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; align-items: start; }
.bf-album-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  background: rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(7,17,27,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bf-album-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(7,17,27,.16); }
.bf-album-cover {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  vertical-align: top;
  filter: brightness(.82) saturate(1.08);
  transition: filter .25s ease;
}
.bf-album-card:hover .bf-album-cover { filter: brightness(.95) saturate(1.12); }
.bf-album-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  pointer-events: none;
}
.bf-album-category { font-size: .85rem; opacity: .9; margin-bottom: .25rem; }
.bf-album-heading { margin: 0; font-size: 1.15rem; color: #fff; line-height: 1.35; }
.bf-album-hero {
  margin-bottom: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  background: var(--card-bg, rgba(255,255,255,.58));
  border: 1px solid var(--dark-grey, rgba(0,0,0,.08));
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
.bf-album-hero-tips { font-size: .85rem; opacity: .7; margin-bottom: .35rem; }
.bf-album-hero-title { margin: 0 0 .4rem; font-size: 1.6rem; }
.bf-album-hero-desc { margin: 0; opacity: .8; }
.bf-album-hero-actions { margin-top: .9rem; }
.bf-album-back {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: #49b1f5;
  color: #fff !important;
  text-decoration: none !important;
}
.bf-photo-grid { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.bf-photo-item { display: block; border-radius: 12px; overflow: hidden; }
.bf-photo-grid img, .bf-photo-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.bf-album-timeline { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1rem; }
.bf-album-shot {
  padding: 1rem;
  border-radius: 14px;
  background: var(--card-bg, rgba(255,255,255,.58));
  border: 1px solid var(--dark-grey, rgba(0,0,0,.08));
}
.bf-album-shot-text { margin: 0 0 .75rem; }
.bf-album-shot-imgs {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.bf-album-shot-imgs a { display: block; width: 100%; }
.bf-album-shot-imgs img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.bf-album-shot-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; font-size: .9em; opacity: .75; }
#body-wrap.type-album #page,
#body-wrap.type-album_detail #page {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
#body-wrap.type-album #page .page-title,
#body-wrap.type-album_detail #page .page-title { display: none; }
@media screen and (max-width: 768px) {
  .bf-album-grid { grid-template-columns: 1fr; }
}
.bf-essay-head { margin-bottom: 1.2rem; }
.bf-essay-btn { display: inline-block; margin-top: .5rem; }
.bf-essay-item { padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
[data-theme="dark"] .bf-essay-item { border-bottom-color: rgba(255,255,255,.1); }
.bf-essay-media { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.bf-essay-media img { max-width: 180px; border-radius: 8px; }
.bf-essay-bili { position: relative; width: 100%; padding-top: 56%; }
.bf-essay-bili iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.bf-essay-item time { display: block; margin-top: .4rem; color: #858585; font-size: .85em; }

/* 页脚配色与主题浅色/深色底一致（覆盖默认主题蓝） */
#footer {
  background-color: var(--card-bg) !important;
  background-image: none !important;
  border-top: 1px solid var(--dark-grey, rgba(0, 0, 0, 0.08));
}
#footer > * {
  color: var(--font-color) !important;
}
#footer a {
  color: var(--font-color) !important;
}
#footer a:hover {
  color: var(--text-highlight-color, #49b1f5) !important;
}
#footer .footer-other {
  background-color: transparent !important;
}
[data-theme='dark'] #footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* 侧边栏「距离」倒计时卡片：把安知鱼变量映射到 Butterfly */
:root {
  --anzhiyu-main: #49b1f5;
  --anzhiyu-theme: #49b1f5;
  --anzhiyu-background: rgba(73, 177, 245, 0.12);
  --anzhiyu-card-border: rgba(0, 0, 0, 0.08);
  --anzhiyu-white: #fff;
  --anzhiyu-gray: #858585;
  --anzhiyu-shadow-blackdeep: 0 8px 24px rgba(7, 17, 27, 0.12);
}
[data-theme='dark'] {
  --anzhiyu-main: #49b1f5;
  --anzhiyu-theme: #49b1f5;
  --anzhiyu-background: rgba(255, 255, 255, 0.08);
  --anzhiyu-card-border: rgba(255, 255, 255, 0.12);
  --anzhiyu-gray: #b5b5b5;
  --anzhiyu-shadow-blackdeep: 0 8px 24px rgba(0, 0, 0, 0.35);
}
/* widget.yml 未填标题时隐藏空 headline */
#aside-content .card-widget.card-countdown > .item-headline {
  display: none;
}

/* 来访者欢迎卡片在 Butterfly 公告内的显示 */
#aside-content .card-announcement #welcome-info {
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* 安知鱼 introduction-card 介绍卡片 */
.introduction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  margin: 0 auto 1.2rem;
  border-radius: 15px;
  box-shadow: var(--anzhiyu-shadow-blackdeep);
  height: 520px;
  transition: all 0.3s ease 0s;
  cursor: pointer;
  overflow: hidden;
  background: var(--card-bg, #fff);
}

.introduction-card .img-alt {
  display: none;
}

.introduction-card:active {
  transform: scale(0.97);
}

.introduction-card-top {
  height: 80%;
  width: 100%;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  position: relative;
}

.introduction-card-top .int-card-info {
  position: absolute;
  padding: 20px;
  z-index: 1;
}

.introduction-card-top .int-card-info .int-tip {
  opacity: 0.8;
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
  color: var(--anzhiyu-white);
}

.introduction-card-top .int-card-info .int-cardTitle {
  font-size: 36px;
  color: var(--anzhiyu-white);
  font-weight: 700;
  line-height: 1.1;
}

.introduction-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  margin: 0 !important;
}

.introduction-card-bottom {
  height: 20%;
  display: flex;
  width: 100%;
  border-radius: 0 0 15px 15px;
  background-color: transparent;
  color: inherit;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.introduction-card:active .introduction-card-bottom {
  background-color: var(--anzhiyu-main);
  color: white;
  animation: bf-int-card-reset 3s 1s forwards;
}

.introduction-card:active .introduction-card-bottom .left .info .subTitle {
  color: white !important;
}

@keyframes bf-int-card-reset {
  0% {
    background-color: var(--anzhiyu-main);
    color: white;
  }
  100% {
    background-color: transparent;
    color: inherit;
  }
}

.introduction-card-bottom .left {
  width: 70%;
  display: flex;
  align-items: center;
}

.introduction-card-bottom .left .info {
  user-select: none;
}

.introduction-card-bottom .left .info .title {
  font-weight: 600;
  line-height: 26px;
}

.introduction-card-bottom .left .info .subTitle {
  line-height: 14px;
  font-size: 14px;
  color: var(--anzhiyu-gray);
  opacity: 0.8;
}

.introduction-card-bottom .left img {
  width: 2.875rem;
  height: 2.875rem;
  margin: 0 20px !important;
  border-radius: 12px !important;
  object-fit: cover;
}

.introduction-card-bottom .right {
  width: 30%;
  display: flex;
  align-items: center;
}

.introduction-card-bottom .right a {
  width: 100%;
  text-align: center;
  background: #efeef2;
  color: var(--anzhiyu-main) !important;
  border-radius: 50px;
  height: 35px;
  line-height: 35px;
  margin-right: 20px;
  text-decoration: none !important;
}

.introduction-card-bottom .right a:hover {
  background: var(--anzhiyu-main);
  color: var(--anzhiyu-white) !important;
}

[data-theme='dark'] .introduction-card-bottom .right a {
  background: rgba(255, 255, 255, 0.12);
}

@media screen and (max-width: 1200px) {
  .introduction-card {
    width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .introduction-card {
    width: 100%;
  }
}
