/* 刷新按钮样式 */
#refreshButton {
  padding: 6px 10px;
  font-size: 14px;
  height: 32px;
  cursor: pointer;
  color: var(--text) !important;
  transition: all 0.2s ease; /* 添加平滑过渡效果 */
}

/* 刷新列表按钮样式 */
#refreshListButton {
  padding: 6px 10px;
  font-size: 14px;
  height: 32px;
  cursor: pointer;
  color: var(--text) !important;
  transition: all 0.2s ease;
}

/* 刷新容器样式 */
.refresh-container {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  color: var(--text) !important;
}

/* 菜单栏刷新按钮样式 */
.menu-bar-refresh-btn {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text) !important;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

/* 菜单栏全屏按钮样式 */
.menu-bar-fullscreen-btn {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text) !important;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

/* 预览控制栏全屏按钮样式 */
.preview-controls-fullscreen-btn {
  padding: 1px 8px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

/* 统一按钮悬停效果 */
#refreshButton:hover,
#refreshListButton:hover,
.menu-bar-refresh-btn:hover,
.menu-bar-fullscreen-btn:hover,
.preview-controls-fullscreen-btn:hover {
  background-color: var(--text) !important;
  color: var(--bg) !important;
}

/* 按钮标签文字样式（共用） */
.btn-label {
  display: inline;
  margin-left: .3em;
}

/* 手机竖屏（宽度小于等于768px）时隐藏按钮文字，只显示图标 */
@media (max-width: 672px) {
  .menu-bar-refresh-btn .btn-label,
  .menu-bar-fullscreen-btn .btn-label {
    display: none;
  }
  
  /* 预览控制栏全屏按钮本来就没有文字，无需处理 */
  .preview-controls-fullscreen-btn .btn-label {
    display: none;
  }
}

/* 隐藏元素的样式 */
.breadcrumb:nth-of-type(2)[style*="display: none"],
.breadcrumb:nth-of-type(1)[style*="display: none"],
#zip-button[style*="display: none"],
#select-button[style*="display: none"],
#search-button[style*="display: none"] {
  display: none !important;
}