.joe_footer_fish {
  --tank-depth: 78px;
  position: relative;
  height: calc(65px + var(--tank-depth));
  overflow: hidden;
  pointer-events: none;
}

.joe_footer_fish::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--tank-depth);
  background:
    radial-gradient(ellipse at 23% 0, rgba(163, 227, 226, .35), transparent 53%),
    radial-gradient(ellipse at 78% 0, rgba(116, 210, 209, .32), transparent 49%),
    linear-gradient(180deg, rgba(72, 174, 191, .26), transparent 17%, rgba(49, 132, 151, .12) 87%, rgba(66, 121, 108, .28));
}

.joe_footer_fish .fish-school {
  position: absolute;
  top: 0;
  bottom: var(--tank-depth);
  inset-inline: 0;
}

.joe_footer_fish .fish-school > i {
  --back: #245e68;
  --flank: #62aab1;
  --belly: #d5ece3;
  --arc: -49px;
  --swim-depth: 28px;
  --tail-tempo: .22s;
  --size: 36px;
  --delay: 0s;
  --swim-duration: 7.2s;
  --direction: 1;
  --jump: 0;
  --second-landing: calc((.5 + .36 * var(--direction)) * (100% - var(--size)) + var(--size) * .5);
  position: absolute;
  inset: 0;
  animation: joe-fish-direction calc(var(--swim-duration) * 2) steps(1, end) var(--delay) infinite;
}

.joe_footer_fish .fish-school > i:first-child {
  --swim-depth: 13px;
  --swim-duration: 11s;
  animation-name: joe-fish-direction, joe-fish-jump-cycle;
  animation-duration: calc(var(--swim-duration) * 2), calc(var(--swim-duration) * 3);
}

.joe_footer_fish .fish-school > i:nth-child(2) {
  --back: #874d3b;
  --flank: #db9059;
  --belly: #ffe0ad;
  --swim-depth: 11px;
  --size: 30px;
  --delay: -.55s;
  --swim-duration: 8.5s;
}

.joe_footer_fish .fish-school > i:nth-child(3) {
  --back: #3c6374;
  --flank: #84aab9;
  --belly: #deeff3;
  --swim-depth: 39px;
  --size: 25px;
  --delay: -1.3s;
  --swim-duration: 9.4s;
}

.joe_footer_fish .fish-school > i:nth-child(4) {
  --back: #5a5b7e;
  --flank: #a194ba;
  --belly: #e8dae8;
  --swim-depth: 57px;
  --tail-tempo: .34s;
  --size: 32px;
  --delay: -2.4s;
  --swim-duration: 12.5s;
}

.joe_footer_fish .fish-school > i:nth-child(5) {
  --back: #526b43;
  --flank: #8faf68;
  --belly: #e7e9b6;
  --swim-depth: 31px;
  --size: 21px;
  --delay: -3.4s;
  --swim-duration: 8.8s;
}

.joe_footer_fish .fish-school > i:nth-child(6) {
  --back: #875d42;
  --flank: #d1a158;
  --belly: #f5e3b7;
  --swim-depth: 48px;
  --tail-tempo: .29s;
  --size: 27px;
  --delay: -4.1s;
  --swim-duration: 10.8s;
}

.joe_footer_fish .fish,
.joe_footer_fish i::after,
.joe_footer_fish i b {
  position: absolute;
  bottom: -4px;
  opacity: 0;
  animation-duration: var(--swim-duration);
  animation-delay: var(--delay);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.joe_footer_fish .fish {
  width: var(--size);
  height: calc(var(--size) * .5);
  filter: drop-shadow(0 1px 1px rgba(19, 57, 71, .32));
  animation-name: joe-fish-leap;
}

.joe_footer_fish .fish-body {
  position: absolute;
  inset: 13% 0 14% 23%;
  border-radius: 72% 42% 51% 63% / 67% 56% 58% 53%;
  background:
    radial-gradient(circle at 82% 36%, #fff 0 3%, transparent 4%),
    radial-gradient(circle at 80% 42%, #172d35 0 8%, #c2aa72 9% 11%, transparent 12%),
    radial-gradient(ellipse at 91% 49%, transparent 49%, rgba(29, 49, 56, .35) 52%, transparent 56%) 67% 62% / 27% 100% no-repeat,
    repeating-radial-gradient(ellipse at 0 50%, transparent 0 2px, rgba(255, 255, 255, .16) 2.5px 3px, transparent 3.5px 5px) 20% 50% / 50% 69% no-repeat,
    linear-gradient(165deg, var(--back) 12%, var(--flank) 49%, var(--belly) 84%);
}

.joe_footer_fish .fish::before,
.joe_footer_fish .fish::after,
.joe_footer_fish .fish-body::after {
  content: "";
  position: absolute;
  background: linear-gradient(155deg, var(--back), var(--flank));
}

.joe_footer_fish .fish::before {
  inset: 2% 70% 7% 0;
  clip-path: polygon(0 1%, 49% 16%, 100% 47%, 100% 59%, 55% 75%, 0 100%, 22% 55%);
  transform-origin: 95% 52%;
  animation: joe-fish-tail var(--tail-tempo) ease-in-out infinite alternate;
}

.joe_footer_fish .fish::after {
  inset: 0 30% 55% 37%;
  z-index: -1;
  clip-path: polygon(1% 100%, 45% 8%, 74% 0, 100% 100%);
}

.joe_footer_fish .fish-body::after {
  inset: 58% 35% -15% 43%;
  clip-path: polygon(100% 0, 72% 66%, 0 100%, 21% 32%);
  opacity: .8;
}

.joe_footer_fish .fish-school > i::after {
  content: "";
  width: 22px;
  height: 6px;
  border: 1px solid #70b9ca;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(112, 185, 202, .22);
  animation-name: joe-fish-ripple;
}

.joe_footer_fish .fish-school > i b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #82c9da;
  box-shadow: -7px 4px #9fced7, 7px 2px #82c9da, 13px 6px #abd9e0;
  animation-name: joe-fish-splash;
}

/* Mirror each pass around the midpoint so the fish turn at the edge they just reached. */
@keyframes joe-fish-direction {
  0% { --direction: 1; }
  50%, 100% { --direction: -1; }
}

/* One leap every three crossings. The other crossings stay below the surface. */
@keyframes joe-fish-jump-cycle {
  0% { --jump: 1; }
  33.3333%, 100% { --jump: 0; }
}

@keyframes joe-fish-leap {
  0% {
    left: calc((.5 - .5 * var(--direction)) * (100% - var(--size)));
    transform: translateY(var(--swim-depth)) scaleX(var(--direction));
    opacity: .78;
  }
  55% {
    transform: translateY(calc(var(--swim-depth) * (1 - var(--jump)) + 7px * var(--jump))) rotate(calc(-20deg * var(--direction) * var(--jump))) scaleX(var(--direction));
  }
  64% {
    transform: translateY(calc(var(--swim-depth) * (1 - var(--jump)) + var(--arc) * var(--jump))) scaleX(var(--direction));
    opacity: calc(.78 + .22 * var(--jump));
  }
  71% {
    left: calc((.5 + .36 * var(--direction)) * (100% - var(--size)));
    transform: translateY(calc(var(--swim-depth) * (1 - var(--jump)))) rotate(calc(39deg * var(--direction) * var(--jump))) scaleX(var(--direction));
  }
  79% {
    transform: translateY(calc(var(--swim-depth) * (1 - var(--jump)) + 17px * var(--jump))) rotate(calc(6deg * var(--direction) * var(--jump))) scaleX(var(--direction));
  }
  100% {
    left: calc((.5 + .5 * var(--direction)) * (100% - var(--size)));
    transform: translateY(var(--swim-depth)) scaleX(var(--direction));
    opacity: .78;
  }
}

@keyframes joe-fish-tail {
  from { transform: scaleX(.68) rotate(-10deg); }
  to { transform: scaleX(1.08) rotate(9deg); }
}

@keyframes joe-fish-ripple {
  0%, 70% { left: calc(var(--second-landing) - 11px); opacity: 0; transform: scale(.35); }
  73% { opacity: calc(.8 * var(--jump)); }
  84%, 100% { left: calc(var(--second-landing) - 11px); opacity: 0; transform: scale(1.9); }
}

@keyframes joe-fish-splash {
  0%, 70% { left: var(--second-landing); opacity: 0; transform: translateY(0) scale(.6); }
  72% { opacity: calc(.9 * var(--jump)); }
  76% { opacity: calc(.65 * var(--jump)); transform: translateY(-13px) scale(1.25); }
  81%, 100% { left: var(--second-landing); opacity: 0; transform: translateY(-1px) scale(1.5); }
}

.joe_footer_fish .tank-plant {
  position: absolute;
  left: 9%;
  bottom: 0;
  width: 35px;
  height: 34px;
  opacity: .55;
  background: linear-gradient(155deg, #94bd81, #3f806b);
  clip-path: polygon(47% 100%, 20% 73%, 10% 44%, 14% 16%, 28% 40%, 32% 65%, 49% 89%, 45% 55%, 52% 26%, 65% 0, 61% 38%, 54% 67%, 56% 90%, 70% 67%, 91% 39%, 85% 65%, 70% 87%, 62% 100%);
  transform-origin: bottom center;
  animation: joe-tank-sway 4.8s ease-in-out infinite alternate;
}

.joe_footer_fish .tank-plant-right {
  left: auto;
  right: 13%;
  width: 43px;
  height: 42px;
  animation-delay: -2s;
}

.joe_footer_fish .tank-bubbles {
  --bubble-tempo: 5s;
  --bubble-phase: 0s;
  position: absolute;
  z-index: 2;
  bottom: 0;
  height: var(--tank-depth);
  left: 17%;
  overflow: hidden;
  width: 32px;
}

.joe_footer_fish .tank-bubbles-center {
  --bubble-tempo: 6.3s;
  --bubble-phase: -.9s;
  left: 48%;
}

.joe_footer_fish .tank-bubbles-right {
  --bubble-tempo: 5.7s;
  --bubble-phase: -2.4s;
  left: 79%;
}

.joe_footer_fish .tank-bubbles i {
  --bubble-offset: 0s;
  position: absolute;
  bottom: 3px;
  left: 12px;
  width: 8px;
  height: 8px;
  border: 1px solid #4d9baa;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #efffff 0 12%, transparent 28%), rgba(128, 211, 224, .24);
  animation: joe-tank-bubble var(--bubble-tempo) linear calc(var(--bubble-phase) + var(--bubble-offset)) infinite;
}

.joe_footer_fish .tank-bubbles i:nth-child(2) {
  --bubble-offset: -1.8s;
  left: 20px;
  width: 5px;
  height: 5px;
}

.joe_footer_fish .tank-bubbles i:nth-child(3) {
  --bubble-offset: -3.6s;
  left: 6px;
  width: 6px;
  height: 6px;
}

@keyframes joe-tank-sway {
  from { transform: skewX(-7deg); }
  to { transform: skewX(9deg); }
}

@keyframes joe-tank-bubble {
  0% { opacity: 0; transform: translate(0, 0) scale(.65); }
  20% { opacity: .8; }
  50% { transform: translate(4px, calc(var(--tank-depth) * -.45)) scale(1); }
  85% { opacity: .6; }
  100% { opacity: 0; transform: translate(-4px, calc(13px - var(--tank-depth))) scale(1.15); }
}

@media (max-width: 640px) {
  .joe_footer_fish { height: calc(49px + var(--tank-depth)); }
  .joe_footer_fish .fish-school { transform: scaleY(.83); transform-origin: bottom; }
  .joe_footer_fish .fish-school > i { --arc: -41px; }
}

@media (prefers-reduced-motion: reduce) {
  .joe_footer_fish { --tank-depth: 19px; height: var(--tank-depth); }
  .joe_footer_fish .fish-school,
  .joe_footer_fish .tank-plant { display: none; }
  .joe_footer_fish .tank-bubbles i { animation: none; opacity: .7; }
  .joe_footer_fish .tank-bubbles i:nth-child(2) { bottom: 9px; }
}

/* ============ 页脚版式（两行：版权+图标 / 备案运行） ============ */
.joe_footer .joe_container.joe_footer__inner {
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 18px;
}

.joe_footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--minor);
}

.joe_footer__main a {
  color: var(--minor);
  transition: color .35s;
}

.joe_footer__main a:hover {
  color: var(--theme);
}

.joe_footer__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.joe_footer__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--classC);
  color: var(--minor);
  transition: all .35s;
}

.joe_footer__icons a:hover {
  color: #fff;
  background: var(--theme);
  border-color: var(--theme);
  transform: translateY(-2px);
}

.joe_footer__icons svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.joe_footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  padding-top: 6px;
  font-size: 12px;
  color: var(--minor);
}

.joe_footer__meta a {
  color: var(--minor);
  transition: color .35s;
}

.joe_footer__meta a:hover {
  color: var(--theme);
}

.joe_footer__meta strong {
  color: var(--theme);
  font-weight: 600;
}

.joe_footer__meta .run {
  margin: 0;
}

.joe_footer__beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.joe_footer__beian-icon {
  flex: none;
  width: 15px;
  height: 16px;
  border-radius: 2px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .joe_footer__main {
    flex-direction: column;
    gap: 10px;
  }
}
