@font-face {
  font-family: FoxTermFont;
  src: url("./fonts/FoxTerm.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.fox-logo-icon {
  font-family: FoxTermFont !important;
}
.fox-logo-icon::before {
  content: "\e000";
}
.is-cn,
.is-intl {
  display: none !important;
}
.glow-effect {
  box-shadow: 0 0 70px -10px rgba(255, 104, 0, 0.28);
}
.orange-gradient-text {
  background: linear-gradient(135deg, #ff8a00 0, #ff3d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-dd {
  position: relative;
}
.lang-dd summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    background 0.2s,
    color 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.lang-dd summary::-webkit-details-marker {
  display: none;
}
.lang-dd summary::marker {
  content: "";
  display: none;
}
.lang-dd summary:hover,
.lang-dd[open] summary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lang-dd-globe {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.8;
}
.lang-dd-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #a1a1aa;
  transition: transform 0.2s;
}
.lang-dd[open] .lang-dd-caret {
  transform: rotate(180deg);
}
.lang-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 70;
}
.lang-dd-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-dd-item {
  display: block;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #d4d4d8;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
a.lang-dd-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.lang-dd-active {
  color: #fb923c;
  font-weight: 600;
  background: rgba(255, 104, 0, 0.08);
}
.bg-code-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='140' viewBox='0 0 160 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Etext %7B font-family: monospace, Courier, 'Courier New'; font-size: 13px; font-weight: bold; fill: %23ff6800; text-anchor: middle; %7D%3C/style%3E%3C!-- F: 01000110 --%3E%3Ctext x='10' y='20'%3E0%3C/text%3E%3Ctext x='30' y='20'%3E1%3C/text%3E%3Ctext x='50' y='20'%3E0%3C/text%3E%3Ctext x='70' y='20'%3E0%3C/text%3E%3Ctext x='90' y='20'%3E0%3C/text%3E%3Ctext x='110' y='20'%3E1%3C/text%3E%3Ctext x='130' y='20'%3E1%3C/text%3E%3Ctext x='150' y='20'%3E0%3C/text%3E%3C!-- o: 01101111 --%3E%3Ctext x='10' y='40'%3E0%3C/text%3E%3Ctext x='30' y='40'%3E1%3C/text%3E%3Ctext x='50' y='40'%3E1%3C/text%3E%3Ctext x='70' y='40'%3E0%3C/text%3E%3Ctext x='90' y='40'%3E1%3C/text%3E%3Ctext x='110' y='40'%3E1%3C/text%3E%3Ctext x='130' y='40'%3E1%3C/text%3E%3Ctext x='150' y='40'%3E1%3C/text%3E%3C!-- x: 01111000 --%3E%3Ctext x='10' y='60'%3E0%3C/text%3E%3Ctext x='30' y='60'%3E1%3C/text%3E%3Ctext x='50' y='60'%3E1%3C/text%3E%3Ctext x='70' y='60'%3E1%3C/text%3E%3Ctext x='90' y='60'%3E1%3C/text%3E%3Ctext x='110' y='60'%3E0%3C/text%3E%3Ctext x='130' y='60'%3E0%3C/text%3E%3Ctext x='150' y='60'%3E0%3C/text%3E%3C!-- T: 01010100 --%3E%3Ctext x='10' y='80'%3E0%3C/text%3E%3Ctext x='30' y='80'%3E1%3C/text%3E%3Ctext x='50' y='80'%3E0%3C/text%3E%3Ctext x='70' y='80'%3E1%3C/text%3E%3Ctext x='90' y='80'%3E0%3C/text%3E%3Ctext x='110' y='80'%3E1%3C/text%3E%3Ctext x='130' y='80'%3E0%3C/text%3E%3Ctext x='150' y='80'%3E0%3C/text%3E%3C!-- e: 01100101 --%3E%3Ctext x='10' y='100'%3E0%3C/text%3E%3Ctext x='30' y='100'%3E1%3C/text%3E%3Ctext x='50' y='100'%3E1%3C/text%3E%3Ctext x='70' y='100'%3E0%3C/text%3E%3Ctext x='90' y='100'%3E0%3C/text%3E%3Ctext x='110' y='100'%3E1%3C/text%3E%3Ctext x='130' y='100'%3E0%3C/text%3E%3Ctext x='150' y='100'%3E1%3C/text%3E%3C!-- r: 01110010 --%3E%3Ctext x='10' y='120'%3E0%3C/text%3E%3Ctext x='30' y='120'%3E1%3C/text%3E%3Ctext x='50' y='120'%3E1%3C/text%3E%3Ctext x='70' y='120'%3E1%3C/text%3E%3Ctext x='90' y='120'%3E0%3C/text%3E%3Ctext x='110' y='120'%3E0%3C/text%3E%3Ctext x='130' y='120'%3E1%3C/text%3E%3Ctext x='150' y='120'%3E0%3C/text%3E%3C!-- m: 01101101 --%3E%3Ctext x='10' y='140'%3E0%3C/text%3E%3Ctext x='30' y='140'%3E1%3C/text%3E%3Ctext x='50' y='140'%3E1%3C/text%3E%3Ctext x='70' y='140'%3E0%3C/text%3E%3Ctext x='90' y='140'%3E1%3C/text%3E%3Ctext x='110' y='140'%3E1%3C/text%3E%3Ctext x='130' y='140'%3E0%3C/text%3E%3Ctext x='150' y='140'%3E1%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}
.lang-prompt {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(580px, calc(100vw - 32px));
}
.lang-prompt[hidden] {
  display: none !important;
}
.lang-prompt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: 0.35s ease-out lang-prompt-in;
}
.lang-prompt-logo {
  flex-shrink: 0;
  font-size: 26px;
  line-height: 1;
}
.lang-prompt-msg {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #d4d4d8;
}
.lang-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lang-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
}
.lang-prompt-btn-primary {
  background: #ff5e00;
  color: #fff;
  border: 1px solid rgba(255, 94, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 94, 0, 0.25);
}
.lang-prompt-btn-primary:hover {
  background: #e03e00;
  box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
}
.lang-prompt-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lang-prompt-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lang-prompt-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #a1a1aa;
  background: 0 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}
.lang-prompt-close svg {
  width: 14px;
  height: 14px;
}
.lang-prompt-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
@keyframes lang-prompt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body {
  cursor: default;
}
.cursor-pointer,
[role="button"],
a[href],
button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
}
.ft-panel {
  display: none;
}
.ft-panel-active {
  display: block;
}
.ft-bar {
  display: none;
}
.ft-bar-active {
  display: flex;
}
.ft-tab {
  padding: 7px 13px;
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.ft-tab-active {
  background: #09090b;
  border-color: #27272a;
  color: #ff8000;
  font-weight: 700;
}
.ft-tab-idle {
  color: #71717a;
}
.ft-tab-idle:hover {
  color: #a1a1aa;
}
@media (max-width: 640px) {
  .lang-prompt-card {
    flex-wrap: wrap;
    gap: 10px;
  }
  .lang-prompt-msg {
    flex-basis: calc(100% - 46px);
  }
  .lang-prompt-actions {
    width: 100%;
  }
  .lang-prompt-btn {
    flex: 1;
  }
  .lang-prompt-close {
    margin-left: auto;
  }
  .ft-tab {
    padding: 6px 9px;
    font-size: 10px;
  }
}
.ft-skeleton {
  background: linear-gradient(110deg, #18181b 30%, #27272a 45%, #18181b 60%);
  background-size: 200% 100%;
  animation: 1.8s ease-in-out infinite ft-shimmer;
}
@keyframes ft-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
