.tuanda-office-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #25344b;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  transition: opacity .22s ease;
}
.tuanda-office-loading[hidden] { display: none; }
.tuanda-office-loading.is-leaving { opacity: 0; pointer-events: none; }
.tuanda-office-loading__content { text-align: center; padding: 24px; animation: tuanda-office-enter .45s cubic-bezier(.2, .7, .3, 1) both; }
.tuanda-office-loading__brand { display: flex; justify-content: center; margin: 0; font-size: clamp(36px, 6vw, 48px); font-weight: 750; letter-spacing: -1.8px; line-height: 1.3; animation: tuanda-office-breathe 3.2s ease-in-out infinite; }
.tuanda-office-loading__brand span {
  color: #3378f6;
  background: linear-gradient(110deg, #2468ed 20%, #74b5ff 45%, #2468ed 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tuanda-office-shimmer 3.2s ease-in-out infinite;
}
.tuanda-office-loading__track { position: relative; width: 176px; height: 5px; margin: 26px auto 22px; overflow: hidden; border-radius: 999px; background: #e7efff; box-shadow: 0 0 14px #4387ff0d; }
.tuanda-office-loading__track::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 48px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #63a3ff, #2468ef);
  box-shadow: 0 0 8px #3478ff55;
  will-change: transform;
  animation: tuanda-office-flow 1.2s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.tuanda-office-loading__message { margin: 0; color: #61718a; font-size: 14px; line-height: 1.7; }
.tuanda-office-loading__retry { margin-top: 18px; padding: 8px 16px; border: 1px solid #d7e3f7; border-radius: 5px; background: #fff; color: #2468ed; cursor: pointer; }
@keyframes tuanda-office-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tuanda-office-breathe { 0%, 100% { opacity: .94; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-1px); } }
@keyframes tuanda-office-shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes tuanda-office-flow {
  from { transform: translateX(0); }
  to { transform: translateX(128px); }
}
@media (prefers-reduced-motion: reduce) {
  .tuanda-office-loading, .tuanda-office-loading__content, .tuanda-office-loading__brand,
  .tuanda-office-loading__brand span { animation: none; transition: none; }
  /* Keep a gentle activity signal while suppressing decorative motion. */
  .tuanda-office-loading__track::before { animation-duration: 2.4s; }
}
