/* ============================================
   Mujoo 毛线风格字体 & 悬停点亮特效
   ============================================ */

/* 导入圆润可爱的字体 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=M+PLUS+Rounded+1c:wght@400;500;700;800;900&display=swap');

/* ---- 毛线字体基础样式 ---- */
.felt-font,
nav, nav *,
header, header *,
footer, footer * {
  font-family: 'M PLUS Rounded 1c', 'Nunito', 'Rounded Mplus 1c', sans-serif !important;
}

/* 导航栏文字 - 毛线风格 */
nav a, nav button,
header a, header button {
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.3),
    0 -1px 0 rgba(0,0,0,0.1),
    1px 0 2px rgba(0,0,0,0.05);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 毛线纹理效果 - 通过文字阴影模拟 */
nav a, header a,
footer a {
  background-image: none !important;
  -webkit-text-stroke: 0.3px rgba(255,255,255,0.15);
  paint-order: stroke fill;
}

/* ---- 鼠标悬停点亮特效 ---- */

/* 导航栏链接悬停 */
nav a:hover,
header a:hover {
  color: #FFE4B5 !important;
  text-shadow:
    0 0 8px rgba(255,228,181,0.8),
    0 0 16px rgba(255,228,181,0.5),
    0 0 24px rgba(255,228,181,0.3),
    0 0 32px rgba(255,200,100,0.2),
    0 1px 0 rgba(255,255,255,0.4) !important;
  transform: scale(1.08) !important;
  filter: brightness(1.3) !important;
  -webkit-text-stroke: 0.5px rgba(255,228,181,0.3);
}

/* 导航栏链接悬停 - 底部发光条 */
nav a::after,
header a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,228,181,0.8),
    rgba(255,200,100,0.9),
    rgba(255,228,181,0.8),
    transparent);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(-50%);
}

nav a:hover::after,
header a:hover::after {
  width: 100%;
}

/* 导航栏按钮悬停 */
nav button:hover,
header button:hover {
  text-shadow:
    0 0 6px rgba(255,228,181,0.6),
    0 0 12px rgba(255,228,181,0.3) !important;
  filter: brightness(1.2) !important;
}

/* Footer 链接悬停点亮 */
footer a:hover,
footer a:hover span {
  color: #7FDBDA !important;
  text-shadow:
    0 0 8px rgba(127,219,218,0.8),
    0 0 16px rgba(127,219,218,0.5),
    0 0 24px rgba(127,219,218,0.3),
    0 0 32px rgba(100,200,200,0.2) !important;
  transform: scale(1.05) !important;
  filter: brightness(1.3) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Footer 文字基础样式 */
footer, footer * {
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
  font-weight: 600 !important;
}

footer a {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent,
    rgba(127,219,218,0.8),
    rgba(127,219,218,0.8),
    transparent);
  border-radius: 1px;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

footer a:hover::after {
  width: 80%;
}

/* ---- 页面标题毛线风格 ---- */
h1, h2, h3 {
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.05),
    0 1px 0 rgba(255,255,255,0.2);
}

/* ---- 按钮毛线风格 ---- */
button {
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}

button:hover {
  text-shadow: 0 0 6px rgba(255,255,255,0.4) !important;
}

/* ---- 全局文字毛线风格 ---- */
body, p, span, div, li, td, th, label, input, textarea, select {
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
}

/* ---- 活跃导航项高亮 ---- */
nav a[aria-current="page"],
nav a.active {
  color: #FFE4B5 !important;
  text-shadow:
    0 0 6px rgba(255,228,181,0.6),
    0 0 12px rgba(255,228,181,0.3) !important;
}

/* ---- 语言切换按钮样式 ---- */
/* =============================================
 * Module: Language Switcher Dropdown
 * File:   felt-font-effects.css (lang section)
 * Desc:   Semi-transparent dropdown menu for language selection
 *         Positioned inline in the nav bar, after the user button
 * ============================================= */

#mujoo-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  z-index: 100;
}

/* Trigger button — shows current language */
#mujoo-lang-switcher .lang-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  height: 32px;
}

#mujoo-lang-switcher .lang-trigger:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,228,181,0.4);
  color: #fff;
}

#mujoo-lang-switcher .lang-trigger .lang-flag {
  font-size: 14px;
  line-height: 1;
}

#mujoo-lang-switcher .lang-trigger .lang-arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

#mujoo-lang-switcher .lang-trigger[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
#mujoo-lang-switcher .lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  padding: 6px;
  background: rgba(30, 60, 80, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

#mujoo-lang-switcher .lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Each language item */
#mujoo-lang-switcher .lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  text-align: left;
}

#mujoo-lang-switcher .lang-item:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

#mujoo-lang-switcher .lang-item.active {
  background: rgba(255,228,181,0.2);
  color: #FFE4B5;
}

#mujoo-lang-switcher .lang-item .lang-flag {
  font-size: 16px;
  line-height: 1;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  #mujoo-lang-switcher {
    margin-left: 4px;
  }
  #mujoo-lang-switcher .lang-trigger {
    padding: 4px 8px;
    height: 28px;
    font-size: 11px;
  }
  #mujoo-lang-switcher .lang-trigger .lang-label {
    display: none;
  }
  #mujoo-lang-switcher .lang-trigger .lang-arrow {
    display: none;
  }
  #mujoo-lang-switcher .lang-dropdown {
    right: -10px;
  }
}

@media (max-width: 640px) {
  #mujoo-lang-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    margin-left: 0;
  }
}
@keyframes feltGlow {
  0%, 100% { text-shadow: 0 0 4px rgba(255,228,181,0.3); }
  50% { text-shadow: 0 0 12px rgba(255,228,181,0.6), 0 0 20px rgba(255,200,100,0.3); }
}

@keyframes feltPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* 当前活跃页面的导航项呼吸发光 */
nav a[aria-current="page"],
nav a.active {
  animation: feltGlow 3s ease-in-out infinite;
}
