/* 信息技术科工作看板：科技动态增强层 */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 218, 239, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 218, 239, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(56deg) translateY(-10%);
  animation: grid-flow 24s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, rgba(54, 222, 240, .05) 42%, transparent 60%);
  background-size: 240% 100%;
  animation: ambient-sweep 12s ease-in-out infinite;
}

.topbar, .module-nav, .toolbar, .duty-credit, .stats-chart, .stats-detail {
  position: relative;
  overflow: hidden;
}

.topbar::after, .module-nav::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 28%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #6df4fb, transparent);
  box-shadow: 0 0 14px #4ce8f2;
  animation: scan-line 7s linear infinite;
}

.tech-beacon {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-left: auto;
  margin-right: 20px;
  padding: 9px 13px;
  border-left: 1px solid rgba(103, 230, 245, .16);
  border-right: 1px solid rgba(103, 230, 245, .16);
}

.tech-beacon > span {
  align-self: center;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #55efc4;
  box-shadow: 0 0 12px #55efc4;
  animation: signal-pulse 1.8s ease-in-out infinite;
}

.tech-beacon i {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#70f5fb, #2397e5);
  box-shadow: 0 0 8px rgba(89, 231, 244, .6);
  animation: signal-bars 1.4s ease-in-out infinite;
}

.tech-beacon i:nth-of-type(1) { height: 9px; }
.tech-beacon i:nth-of-type(2) { height: 17px; animation-delay: .18s; }
.tech-beacon i:nth-of-type(3) { height: 12px; animation-delay: .36s; }
.tech-beacon i:nth-of-type(4) { height: 21px; animation-delay: .54s; }
.tech-beacon i:nth-of-type(5) { height: 14px; animation-delay: .72s; }
.tech-beacon em {
  align-self: center;
  margin-left: 6px;
  color: #6ddce8;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 1.4px;
}

.glass { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.task-card:hover, .record-card:hover, .summary-card:hover, .duty-credit-item:hover {
  border-color: rgba(91, 231, 245, .3);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26), 0 0 24px rgba(53, 217, 237, .08);
}
.brand-icon i, .module-nav button.active b { animation: soft-glow 2.4s ease-in-out infinite; }
.sync > span.online { animation: signal-pulse 1.8s ease-in-out infinite; }
.bar-track i, .duty-credit-item b { position: relative; overflow: hidden; }
.bar-track i::after, .duty-credit-item b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: translateX(-120%);
  animation: bar-shine 3.4s ease-in-out infinite;
}

.credit-field {
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(126, 213, 238, .13);
  border-radius: 14px;
}
.credit-field legend { color: #86aab7; font-size: 12px; }
.credit-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.credit-options label { position: relative; cursor: pointer; }
.credit-options input { position: absolute; opacity: 0; }
.credit-options span {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(126, 213, 238, .13);
  border-radius: 12px;
  color: #9dbac5;
  background: rgba(3, 25, 36, .7);
  transition: .2s ease;
}
.credit-options b { grid-row: 1 / 3; color: #dffbff; font-size: 20px; }
.credit-options small { color: #7197a5; font-size: 11px; }
.credit-options input:checked + span {
  border-color: #53e6f0;
  background: linear-gradient(135deg, rgba(31, 151, 174, .35), rgba(26, 89, 124, .28));
  box-shadow: 0 0 22px rgba(64, 218, 235, .15), inset 0 0 18px rgba(84, 229, 239, .06);
  transform: translateY(-1px);
}

@keyframes grid-flow { to { background-position: 84px 84px; } }
@keyframes ambient-sweep { 0%, 25% { background-position: 130% 0; } 70%, 100% { background-position: -80% 0; } }
@keyframes scan-line { 0% { left: -30%; } 70%, 100% { left: 115%; } }
@keyframes signal-pulse { 0%, 100% { opacity: .55; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.16); } }
@keyframes signal-bars { 0%, 100% { transform: scaleY(.52); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes soft-glow { 0%, 100% { filter: brightness(.9); } 50% { filter: brightness(1.35); box-shadow: 0 0 20px rgba(78, 231, 242, .32); } }
@keyframes bar-shine { 0%, 45% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }

@media (max-width: 900px) { .tech-beacon { display: none; } }
@media (max-width: 560px) {
  .credit-options { grid-template-columns: 1fr; }
  .credit-options span { padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .topbar::after, .module-nav::after, .tech-beacon span, .tech-beacon i,
  .brand-icon i, .module-nav button.active b, .sync > span.online, .bar-track i::after, .duty-credit-item b::after {
    animation: none !important;
  }
}
