/* 恢复 Twikoo 预览按钮显示 */
#twikoo .tk-comments .el-button.tk-preview {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#twikoo .tk-comments .el-button.tk-preview:hover {
  opacity: 0.85 !important;
}

#twikoo .tk-comments .el-button.tk-preview {
    position: absolute;
    top: -40px;
    right: 107px;
    opacity: 0.3;
}

#twikoo .tk-comments .el-button--primary {
    color: var(--anzhiyu-card-bg);
    box-shadow: var(--anzhiyu-shadow-black);
    width: 6.25rem;
    position: absolute;
    top: -41px;
    right: 0px;
    height: 32px;
    margin-left: 0.5rem !important;
    border-color: var(--anzhiyu-fontcolor);
    border-radius: 12px;
    transition: 0.3s;
}

#twikoo .tk-comments .tk-meta-input {
    position: relative;
    margin-top: 8px;
    width: calc(100% - 165px);
}
/* 侧边栏头像卡片 */
#aside-content>.card-widget.card-info::before {
  background: url('https://bu.dusays.com/2026/05/25/6a13b08d17b73.gif');
  border: 0;
  position: absolute;
  background-size: 100% 100%;
  -webkit-animation: Gradient 10s ease infinite;
  -moz-animation: Gradient 10s ease infinite;
  animation: Gradient 10s ease infinite !important;
}

[data-theme="dark"] {
  --global-bg: #101524;
  --anzhiyu-background: #101524;
  --anzhiyu-meta-theme-color: #101524;
  --anzhiyu-secondbg: #202535;
  --anzhiyu-card-bg: #1b1f2b;
  --anzhiyu-maskbg: rgba(16, 21, 36, 0.68);
  --anzhiyu-maskbgdeep: rgba(16, 21, 36, 0.88);
}

[data-theme="dark"] body,
[data-theme="dark"] #web_bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(66, 90, 239, 0.2), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(242, 185, 75, 0.14), transparent 24%),
    linear-gradient(135deg, #101524 0%, #151827 45%, #1a1322 100%) !important;
  background-attachment: fixed;
}

[data-theme="dark"] #universe {
  opacity: 0.72;
  mix-blend-mode: screen;
}

.card-working .item-content {
  padding-top: 0.25rem;
}

.working-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.working-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--font-color);
  text-decoration: none !important;
}

.working-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--anzhiyu-main);
  box-shadow: 0 0 0 4px var(--anzhiyu-main-op);
}

.working-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.working-text b {
  font-size: 0.95rem;
}

.working-text em {
  margin-top: 0.12rem;
  color: var(--anzhiyu-secondtext);
  font-size: 0.82rem;
  font-style: normal;
}

.working-item:hover .working-text b {
  color: var(--anzhiyu-main);
}

/* 文章页顶部统一显示清晰封面图 */
#page-header.post-bg::before {
  display: none !important;
}

#page-header.post-bg #post-top-cover {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: none;
  z-index: 0;
}

#page-header.post-bg #post-top-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: none !important;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.42)) !important;
}

#page-header.post-bg #post-top-bg {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  animation: none !important;
  opacity: 1 !important;
}

#page-header.post-bg #post-info {
  z-index: 3;
}

.card-weather {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    var(--anzhiyu-card-bg);
}

.weather-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.weather-card-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 224, 139, 0.92), transparent 32%),
    linear-gradient(135deg, #2f7df4 0%, #22bfd2 52%, #ffb35c 100%);
  color: #fff;
  min-height: 136px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(47, 125, 244, 0.22);
}

.weather-card-glow {
  position: absolute;
  right: -36px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.weather-card-glow::after {
  position: absolute;
  right: 30px;
  top: 72px;
  width: 86px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.weather-card-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.weather-card-rain3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.weather-card-body.is-rainy .weather-card-rain3d {
  opacity: 0.82;
}

.weather-card-body.is-rainy:not(.has-rain3d) .weather-card-rain {
  opacity: 1;
}

.weather-card-rain span {
  position: absolute;
  top: -34px;
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
  transform: rotate(15deg);
  animation: weatherRainDrop 1.15s linear infinite;
}

.weather-card-rain span:nth-child(1) {
  left: 8%;
  animation-delay: -0.2s;
  animation-duration: 1.05s;
}

.weather-card-rain span:nth-child(2) {
  left: 17%;
  animation-delay: -0.7s;
  animation-duration: 1.25s;
}

.weather-card-rain span:nth-child(3) {
  left: 26%;
  animation-delay: -0.35s;
  animation-duration: 0.95s;
}

.weather-card-rain span:nth-child(4) {
  left: 35%;
  animation-delay: -0.9s;
  animation-duration: 1.18s;
}

.weather-card-rain span:nth-child(5) {
  left: 44%;
  animation-delay: -0.48s;
  animation-duration: 1.08s;
}

.weather-card-rain span:nth-child(6) {
  left: 53%;
  animation-delay: -0.78s;
  animation-duration: 1.3s;
}

.weather-card-rain span:nth-child(7) {
  left: 62%;
  animation-delay: -0.1s;
  animation-duration: 1.02s;
}

.weather-card-rain span:nth-child(8) {
  left: 71%;
  animation-delay: -0.58s;
  animation-duration: 1.2s;
}

.weather-card-rain span:nth-child(9) {
  left: 80%;
  animation-delay: -0.82s;
  animation-duration: 1.12s;
}

.weather-card-rain span:nth-child(10) {
  left: 89%;
  animation-delay: -0.28s;
  animation-duration: 1.24s;
}

.weather-card-rain span:nth-child(11) {
  left: 14%;
  animation-delay: -1s;
  animation-duration: 1.36s;
}

.weather-card-rain span:nth-child(12) {
  left: 76%;
  animation-delay: -1.15s;
  animation-duration: 1.32s;
}

@keyframes weatherRainDrop {
  0% {
    transform: translate3d(0, -34px, 0) rotate(15deg);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(-28px, 176px, 0) rotate(15deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weather-card-rain span {
    animation: none;
  }
}

.weather-card-head,
.weather-card-main {
  position: relative;
  z-index: 1;
}

.weather-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.weather-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.weather-card-city {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 9px;
  white-space: nowrap;
}

.weather-card-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.weather-card-temp {
  display: flex;
  align-items: flex-start;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 6px 18px rgba(23, 39, 75, 0.18);
  white-space: nowrap;
}

.weather-card-unit {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-left: 3px;
}

.weather-card-status {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
  text-align: right;
}

.weather-card-status span {
  max-width: 88px;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.weather-card-status small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  line-height: 1.2;
}

.weather-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weather-card-item {
  min-width: 0;
  border: 1px solid rgba(47, 125, 244, 0.1);
  border-radius: 10px;
  background: rgba(47, 125, 244, 0.07);
  padding: 9px 6px;
  text-align: center;
}

.weather-card-label {
  display: block;
  color: var(--anzhiyu-secondtext);
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.weather-card-item span:last-child {
  display: block;
  color: var(--anzhiyu-fontcolor);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

[data-theme="dark"] .card-weather {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(29, 34, 49, 0.92), rgba(26, 30, 42, 0.84)),
    var(--anzhiyu-card-bg);
}

[data-theme="dark"] .weather-card-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}
