/* Flos 网站导航样式文件 */

/* 容器样式 */
.flos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.flos-header {
  position: relative;
  z-index: 1000;
}

/* 顶部栏样式 - 恢复到原始风格 */
.flos-top-bar {
  background-color: #000;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
}

.flos-top-bar .flos-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flos-top-bar-left p {
  margin: 0;
  font-weight: 700;
}

.flos-top-bar-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.flos-top-bar-right > div {
  display: flex;
  align-items: center;
  padding: 0 15px;
  position: relative;
}

.flos-top-bar-right > div:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background-color: #fff;
}

/* 调整第一个和最后一个元素的内边距 */
.flos-top-bar-right > div:first-child {
  padding-left: 0;
}

.flos-top-bar-right > div:last-child {
  padding-right: 0;
}

/* 社交媒体链接 */
.flos-social-links {
  display: flex;
  gap: 10px;
}

.flos-social-links a {
  display: inline-block;
}

.flos-social-links img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.flos-social-links a:hover img {
  opacity: 0.8;
}

/* 联系信息 */
.flos-contact-info {
  display: flex;
  gap: 20px;
}

.flos-contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.flos-contact-item img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.flos-contact-item:hover {
  color: #ccc;
}

/* 语言选择器 - 确保不受其他CSS影响 */
.flos-language-selector {
  position: relative !important;
  display: inline-block !important;
  z-index: 1005 !important;
  flex-shrink: 0 !important;
}

.flos-lang-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: none !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 8px 16px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  width: auto !important;
  min-width: auto !important;
}

.flos-lang-trigger::before {
  content: none !important;
}

.flos-lang-trigger:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.flos-lang-logo {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  object-fit: cover !important;
}

.flos-lang-trigger:hover .flos-lang-logo {
  transform: scale(1.1) !important;
}

.flos-lang-text {
  display: inline-block !important;
  max-width: 100px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.flos-lang-chevron {
  font-size: 14px !important;
  transition: transform 0.3s ease !important;
  font-weight: bold !important;
  margin-left: auto !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.flos-language-selector.active .flos-lang-chevron {
  transform: rotate(180deg) !important;
}

.flos-lang-options {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  margin-top: 8px !important;
  background-color: #fff !important;
  border: 2px solid rgba(52, 152, 219, 0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  min-width: 240px !important;
  max-width: 300px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s ease !important;
  z-index: 1001 !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: block !important;
}

.flos-language-selector.active .flos-lang-options {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.flos-lang-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 20px !important;
  color: #2c3e50 !important;
  transition: all 0.3s ease !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  width: 100% !important;
  text-align: left !important;
}

.flos-lang-item:hover {
  background-color: #f8f9fa !important;
  color: #3498db !important;
  transform: translateX(5px) !important;
}

.flos-lang-item img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 2px solid #e0e0e0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

.flos-lang-item:hover img {
  border-color: #3498db !important;
  transform: scale(1.1) !important;
}

/* 确保语言选择器不受其他样式影响 */
.flos-language-selector * {
  box-sizing: border-box !important;
}

/* 覆盖可能的冲突样式 */
body .flos-language-selector {
  all: unset !important;
  position: relative !important;
  display: inline-block !important;
  z-index: 1005 !important;
  flex-shrink: 0 !important;
}

body .flos-lang-trigger {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: none !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 8px 16px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  width: auto !important;
  min-width: auto !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

/* 用户菜单 */
.flos-user-menu {
  display: flex;
  gap: 15px;
}

.flos-user-item {
  color: #fff;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.flos-user-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* 主导航样式 */
.flos-main-nav {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 60px;
}

.flos-main-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  min-height: 50px;
}

.flos-main-nav .flos-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo 样式 - 调整为更大气 */
.flos-logo {
  flex-shrink: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  height: 100%;
}

.flos-logo-img {
  height: 35px !important;
  width: auto !important;
  transition: all 0.3s ease;
  max-height: none !important;
  object-fit: contain !important;
  max-width: 300px !important;
}

.flos-main-nav.sticky .flos-logo-img {
  height: 30px !important;
}

/* 桌面导航样式 */
.flos-desktop-nav {
  flex-grow: 1;
  margin: 0 60px;
}

.flos-nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.flos-nav-item {
  position: relative;
}

.flos-nav-link {
  display: block;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-decoration: none;
  max-width: 120px;
  overflow-wrap: break-word;
  text-align: center;
}

.flos-nav-link:hover {
  color: #3498db;
}

.flos-nav-item.current-menu-item .flos-nav-link {
  color: #3498db;
  font-weight: 700;
  position: relative;
}

.flos-nav-item.current-menu-item .flos-nav-link::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3498db;
}

/* 下拉菜单样式 */
.flos-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  padding: 10px 0;
}

.flos-nav-item:hover > .flos-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.flos-submenu-item {
  position: relative;
}

.flos-submenu-link {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  transition: all 0.3s ease;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-decoration: none;
  max-width: 200px;
  overflow-wrap: break-word;
  text-align: left;
}

.flos-submenu-link:hover {
  background-color: #f8f9fa;
  color: #3498db;
  padding-left: 25px;
}

/* 二级下拉菜单 */
.flos-submenu .flos-submenu {
  top: 0;
  left: 100%;
  margin-left: 10px;
  transform: translateX(0) translateY(-10px);
}

.flos-submenu .flos-submenu::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.05);
}

.flos-submenu-item:hover > .flos-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}

/* 搜索功能样式 */
.flos-search {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

/* 搜索表单样式 */
.flos-search-form {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

.flos-search-form.active {
  width: 350px;
  opacity: 1;
  visibility: visible;
}

/* 搜索输入框样式 */
.flos-search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.3s ease;
}

.flos-search-input:focus {
  color: #2c3e50;
}

.flos-search-input::placeholder {
  color: #999;
  transition: all 0.3s ease;
}

.flos-search-input:focus::placeholder {
  color: #bdc3c7;
}

/* 搜索提交按钮样式 */
.flos-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #3498db;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin-left: 10px;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.flos-search-btn:hover {
  background-color: #2980b9;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.flos-search-btn:active {
  transform: scale(0.95);
}

.flos-search-btn svg {
  width: 28px;
  height: 28px;
  color: #fff;
  transition: all 0.3s ease;
}

/* 搜索切换按钮样式 */
.flos-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.flos-search-toggle:hover {
  background-color: #3498db;
  border-color: #3498db;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
}

.flos-search-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.flos-search-toggle svg {
  width: 28px;
  height: 28px;
  color: #555;
  transition: all 0.3s ease;
}

/* 搜索切换按钮激活状态 */
.flos-search-toggle.active {
  background-color: #3498db;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

.flos-search-toggle.active svg {
  color: #fff;
}

/* 当搜索表单激活时，隐藏搜索切换按钮 */
.flos-search-form.active + .flos-search-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* 移动端菜单按钮 */
.flos-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.flos-mobile-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.flos-mobile-menu-icon {
  width: 32px;
  height: 32px;
  color: #333;
  transition: all 0.3s ease;
}

/* 移动端菜单按钮激活状态 */
.flos-mobile-menu-btn.active .flos-mobile-menu-icon {
  color: #3498db;
  transform: rotate(90deg);
}

/* 移动端导航样式 */
.flos-mobile-nav {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.flos-mobile-nav.active {
  left: 0;
}

.flos-mobile-nav-inner {
  padding: 20px;
}

.flos-mobile-nav-menu {
  list-style: none;
}

.flos-mobile-nav-item {
  margin-bottom: 10px;
}

.flos-mobile-nav-link {
  display: block;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  background-color: #f5f5f5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.flos-mobile-nav-link:hover {
  background-color: #eee;
  color: #000;
}

.flos-mobile-nav-item.current-menu-item .flos-mobile-nav-link {
  background-color: #000;
  color: #fff;
}

/* 移动端下拉菜单 */
.flos-mobile-submenu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #3498db;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  position: relative;
}

.flos-mobile-submenu-btn:hover {
  background-color: #2980b9;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.flos-mobile-submenu-btn.active {
  background-color: #2980b9;
}

/* 书本图标样式 */
.flos-mobile-submenu-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 未展开状态 - 显示书本未打开图标 */
.flos-mobile-submenu-icon-closed {
  opacity: 1;
  visibility: visible;
}

/* 展开状态 - 显示书本打开图标 */
.flos-mobile-submenu-icon-open {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) rotate(180deg);
}

/* 激活状态切换图标 */
.flos-mobile-submenu-btn.active .flos-mobile-submenu-icon-closed {
  opacity: 0;
  visibility: hidden;
}

.flos-mobile-submenu-btn.active .flos-mobile-submenu-icon-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

/* 确保导航项是flex布局，让子菜单按钮能正确对齐 */
.flos-mobile-nav-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

/* 确保导航链接能占据剩余空间 */
.flos-mobile-nav-link {
  flex-grow: 1;
  display: block;
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  background-color: #f5f5f5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.flos-mobile-submenu {
  margin-left: 15px;
  margin-top: 5px;
  list-style: none;
  transition: all 0.3s ease;
  padding-left: 0;
  width: calc(100% - 15px);
}

.flos-mobile-submenu-item {
  margin-bottom: 5px;
}

.flos-mobile-submenu-link {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flos-mobile-submenu-link:hover {
  background-color: #f0f0f0;
  color: #000;
}

/* 三级子菜单样式 */
.flos-mobile-submenu .flos-mobile-submenu {
  margin-left: 10px;
  width: calc(100% - 10px);
}

.flos-mobile-submenu .flos-mobile-submenu-link {
  background-color: #f5f5f5;
  font-size: 13px;
  padding: 8px 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .flos-top-bar-right {
    gap: 15px;
  }
  
  .flos-contact-info {
    gap: 15px;
  }
  
  .flos-nav-menu {
    gap: 30px;
  }
  
  .flos-desktop-nav {
    margin: 0 30px;
  }
}

@media (max-width: 992px) {
  .flos-top-bar {
    padding: 8px 0;
  }
  
  .flos-top-bar .flos-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .flos-top-bar-left,
  .flos-top-bar-right {
    width: 100%;
    justify-content: center;
  }
  
  .flos-desktop-nav {
    display: none;
  }
  
  .flos-mobile-menu-btn {
    display: flex;
    margin-right: 0;
  }
  
  /* 在移动端隐藏搜索功能 */
  .flos-search {
    display: none;
  }
  
  /* 调整导航栏高度 */
  .flos-main-nav {
    padding: 15px 0;
    min-height: 50px;
  }
  
  .flos-main-nav.sticky {
    padding: 10px 0;
    min-height: 45px;
  }
}

/* 优化移动端顶部栏，参考大企业做法 */
@media (max-width: 768px) {
  /* 在平板和手机上简化顶部栏 */
  .flos-top-bar {
    padding: 6px 0;
    font-size: 12px;
  }
  
  /* 隐藏欢迎信息，简化顶部栏 */
  .flos-top-bar-left {
    display: none;
  }
  
  /* 调整顶部栏容器为单行布局 */
  .flos-top-bar .flos-container {
    flex-direction: row;
    gap: 15px;
    align-items: center;
  }
  
  /* 调整右侧元素为单行显示 */
  .flos-top-bar-right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 15px;
  }
  
  /* 调整社交媒体链接大小 */
  .flos-social-links {
    gap: 8px;
    flex: none;
  }
  
  .flos-social-links img {
    width: 14px;
    height: 14px;
  }
  
  /* 简化联系信息，只显示图标 */
  .flos-contact-info {
    gap: 10px;
    flex: none;
  }
  
  .flos-contact-item span {
    display: none;
  }
  
  .flos-contact-item img {
    width: 14px;
    height: 14px;
  }
  
  /* 调整语言选择器大小 */
  .flos-language-selector {
    flex: none;
  }
  
  .flos-lang-trigger {
    padding: 3px 8px;
    font-size: 12px;
  }
  
  .flos-lang-logo {
    width: 14px;
    height: 14px;
  }
  
  /* 调整用户菜单大小 */
  .flos-user-menu {
    flex: none;
    gap: 10px;
  }
  
  .flos-user-item {
    font-size: 12px;
    padding: 3px 8px;
  }
}



@media (max-width: 576px) {
  .flos-container {
    padding: 0 15px;
  }
  
  /* 进一步简化顶部栏，只保留最必要的元素 */
  .flos-top-bar {
    padding: 4px 0;
  }
  
  .flos-top-bar .flos-container {
    gap: 10px;
  }
  
  .flos-top-bar-right {
    gap: 10px;
  }
  
  /* 调整社交媒体链接大小 */
  .flos-social-links img {
    width: 12px;
    height: 12px;
  }
  
  /* 调整联系信息图标大小 */
  .flos-contact-item img {
    width: 12px;
    height: 12px;
  }
  
  /* 调整语言选择器大小 */
  .flos-lang-trigger {
    padding: 2px 6px;
    font-size: 11px;
  }
  
  .flos-lang-logo {
    width: 12px;
    height: 12px;
  }
  
  /* 调整用户菜单大小 */
  .flos-user-item {
    font-size: 11px;
    padding: 2px 6px;
  }
  
  /* 保持LOGO大小一致 */
  .flos-logo-img {
    height: 15px;
  }
  
  .flos-main-nav.sticky .flos-logo-img {
    height: 12.5px;
  }
  
  /* 调整搜索功能在移动端的显示 */
  .flos-search-form.active {
    width: 250px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 通用动画类 */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
  animation: slideIn 0.6s ease-out forwards;
}

.zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
}

/* 过渡效果 */
.transition-all {
  transition: all 0.3s ease;
}

.transition-opacity {
  transition: opacity 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 显示类 */
.block {
  display: block !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 选择文本样式 */
::selection {
  background-color: #000;
  color: #fff;
}

::-moz-selection {
  background-color: #000;
  color: #fff;
}

/* 图片样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 按钮基础样式 */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}

/* 表单元素样式 */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 加载动画 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 遮罩层样式 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}