/* 動畫、縮小轉換 */
.header-bar {
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 第二個陰影 */
}

.logo-title img {
  transition: all 0.3s ease;
}

.header-bar.shrink {
  padding-top: 6px;
  padding-left: 16px;
  font-size: 0.9em;
}

.header-bar.shrink .logo-title img {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.header-bar.shrink .logo-title span {
  font-size: 20px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.lang-options a:hover {
  text-decoration: underline;
}

.lang-options a.active-lang {
  font-weight: bold;
  color: #007acc;
}

/* shrink 時隱藏選單（動畫） */
.header-bar.shrink .nav-links,
.header-bar.shrink .lang-options {
  opacity: 0;
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.nav-links,
.lang-options {
  transition: opacity 0.3s ease;
}

/* hover 回復 */
.header-bar.shrink:hover .nav-links,
.header-bar.shrink:hover .lang-options {
  opacity: 1;
  visibility: visible;
  height: auto;
}

.zhuyin-mode .header-bar.shrink logo-title {
  width: 20%;
}