/**
 * common.css - 公共样式
 * 说明：包含顶部导航栏、底部区域、悬浮导航、搜索头部、推荐卡片、标签、分页、吸顶搜索框等公共组件样式
 * 适用：所有页面
 * 依赖：base.css, layout.css
 */

/* ========== 顶部导航栏样式 ========== */
/* ========== 吸附参数修改位置 ========== */
/*
 * 顶部导航栏吸顶参数说明（所有页面共用）
 * 
 * 修改位置:
 *   CSS: styles/common.css（第10-28行）
 *   JS:  scripts/advanced-search.js（initSearchHeader函数阴影效果）
 * 
 * ========== 吸附参数说明 ==========
 * 参数名          | 值    | 说明
 * ----------------|-------|----------------------------------
 * position        | sticky| 吸顶方式：sticky（粘性定位）
 * top             | 0     | 吸顶距离视口顶部距离
 * z-index         | 100   | 层级（需大于吸顶搜索框的99）
 * height          | 60px  | 导航栏高度（影响所有吸顶元素的top值）
 * box-shadow      | ...   | 吸顶后显示的阴影效果
 * 
 * 联动参数（需同步修改）:
 *   - 吸顶搜索框 top: 60px（= 导航栏高度）
 *   - H5筛选栏 top: 60px（= 导航栏高度）
 * ========== 吸附参数说明结束 ==========
 */

/* ========== 头部导航容器 ========== */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* 导航栏滚动后阴影效果（联动JS SHADOW_THRESHOLD: 50px） */
.header.scrolled {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ========== LOGO区域 ========== */
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--primary-color);
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-credential {
  height: 28px;
  width: auto;
  display: block;
}

/* H5端专用logo（PC端隐藏） */
.logo-img-h5 {
  display: none;
}

/* ========== 主导航菜单 ========== */
.main-nav {
  display: flex;
  gap: 32px;
}

.nav-item {
  position: relative;
  cursor: pointer;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--text-primary);
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* 下拉箭头 */
.arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* ========== 下拉菜单 ========== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  padding: 12px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  z-index: 10;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-grid {
  display: grid;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-item:hover {
  background: var(--bg-secondary);
}



.menu-text {
  flex: 1;
  font-size: 14px;
}

.menu-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: #ef4444;
  color: white;
  border-radius: 10px;
}

/* ========== 右侧按钮区 ========== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* H5端导航栏居中标题（PC端隐藏） */
.h5-header-title {
  display: none;
}

/* ========== 登录/注册按钮 ========== */
.login-before {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login,
.btn-register {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-login {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-login:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-register {
  background: var(--primary-color);
  color: white;
}

.btn-register:hover {
  background: var(--primary-hover);
}

/* ========== 曲司令（会员入口）按钮 ========== */
.ep-user-hd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.ep-user-hd:hover .ep-user-avatar-text {
  color: var(--primary-color);
  font-weight: bold;
}

.ep-user-avatar-text {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: normal;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  transition: color 0.2s, font-weight 0.2s;
}

.ep-user-hd .arrow-icon {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-primary);
  transition: border-color 0.2s;
}

.ep-user-hd:hover .arrow-icon {
  border-top-color: var(--primary-color);
}

/* ========== 曲司令下拉菜单 ========== */
.user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1000;
  overflow: hidden;
}

.ep-user-hd:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f3f4f6;
}

.dropdown-item.logout {
  color: #ef4444;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ========== VIP服务按钮 ========== */
.btn-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn-vip img {
  height: auto;
  width: auto;
  max-width: none;
  vertical-align: middle;
  display: block;
}

.btn-vip:hover {
  opacity: 0.85;
}

/* ========== 顶部导航VIP按钮 ========== */
.header-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* ========== 卡片按钮 ========== */
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: #606266;
  background: white;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.card-btn:hover {
  border-color: #409eff;
  color: #409eff;
}

.card-btn svg {
  width: 14px;
  height: 14px;
}


/* ========== 底部区域样式 ========== */

/* ========== 底部容器 ========== */
.footer {
  background: #1a1a2e;
  color: white;
  padding: 32px 20px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== 顶部信息区 ========== */
.footer-info {
  text-align: left;
  margin-bottom: 32px;
}

.footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.footer-links-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-links-text span {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links-text a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.footer-links-text a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== 底部举报信息 ========== */
.footer-report {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-report p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}


/* ========== 悬浮导航样式 ========== */

/* 浮动导航容器 */
.float-nav {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 导航项 */
.float-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  padding: 10px 8px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.float-nav-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.float-nav-item:active {
  transform: scale(0.95);
}

/* 图标 */
.float-nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-nav-icon svg {
  width: 20px;
  height: 20px;
}

/* 文字 */
.float-nav-text {
  font-size: 11px;
  color: #374151;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* 二维码弹出层 */
.qrcode-popup {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  pointer-events: none;
}

.qrcode-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.qrcode-popup::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #ffffff;
}

.qrcode-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.qrcode-image {
  width: 140px;
  height: 140px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qrcode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qrcode-desc {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}


/* ========== 公共组件样式（被多个页面共享） ========== */

/* ========== 搜索头部区域 ========== */
.search-header-section {
  background: #2563eb;
  padding: 20px 0 24px;
  position: sticky;
  top: 60px;
  z-index: 99;
}

.search-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-bar-wrapper {
  margin-bottom: 16px;
}

.search-input-box {
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input-box .search-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
}

.search-input-box .search-input::placeholder {
  color: var(--text-light);
}

.search-submit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #fbbf24 100%);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.search-submit-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
}

/* 搜索分类标签 */
.search-category-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.category-tab {
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: all 0.2s;
}

.category-tab:hover {
  color: white;
}

.category-tab.active {
  color: white;
  font-weight: 500;
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
}

/* ========== 通用标签样式 ========== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 2px;
}

.tag.status {
  background: #dcfce7;
  color: #16a34a;
}

.tag.stock {
  background: #dbeafe;
  color: var(--primary-color);
}

.tag.stock.terminated {
  background: #fee2e2;
  color: #dc2626;
}

.tag.tax {
  background: #fef3c7;
  color: var(--accent-hover);
}

.tag.foreign {
  background: #f3e8ff;
  color: #7c3aed;
}

.tag.gazelle {
  background: #fce7f3;
  color: #db2777;
}

/* ========== 推荐卡片样式 ========== */
.recommend-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.recommend-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.recommend-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* ========== 首页区块标题样式 ========== */
.enterprise-header,
.hot-header,
.person-header {
  background: transparent;
}

.recommend-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.recommend-badge.brand {
  background: #7c3aed;
}

.recommend-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.recommend-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.recommend-info strong {
  color: var(--primary-color);
}

.recommend-sub {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== 企业名称基础样式 ========== */
.company-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.company-name:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* 首页热榜列表中的企业名称 */
.rank-item .company-name {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* ========== 分页组件样式 ========== */
.pagination-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.page-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-ellipsis {
  padding: 0 8px;
  color: var(--text-light);
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-input {
  width: 48px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
}

.page-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.pagination-tip {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.pagination-tip a {
  color: var(--accent-color);
  text-decoration: none;
}

.pagination-tip a:hover {
  text-decoration: underline;
}

/* ========== 吸顶搜索框样式 ========== */
/* ========== 吸附参数修改位置 ========== */
/*
 * 吸顶搜索框参数说明
 * 
 * 修改位置:
 *   CSS: styles/common.css（第948-982行）
 *   JS:  scripts/main.js（initStickySearchHeader函数）
 * 
 * ========== 吸附参数说明 ==========
 * 参数名              | 值      | 说明
 * --------------------|---------|----------------------------------
 * position            | fixed   | 固定定位方式
 * top                 | 60px    | 距离视口顶部（需与导航栏高度一致）
 * z-index             | 99      | 层级（需小于导航栏的100）
 * transform           | translateY(-100%) | 隐藏状态：向上偏移自身高度
 * opacity             | 0       | 隐藏状态：完全透明
 * visibility          | hidden  | 隐藏状态：不可见
 * transition          | 0.3s    | 显示/隐藏过渡动画时长
 * box-shadow          | ...     | 显示时的阴影效果
 * 
 * 联动参数（需同步修改）:
 *   - 导航栏 height: 60px
 *   - H5筛选栏 top: 60px
 *   - JS NAV_BAR_HEIGHT: 60
 *   - JS STICKY_TOP: 60
 * ========== 吸附参数说明结束 ==========
 */

/* 吸顶搜索框基础样式 */
.sticky-search-header {
  position: fixed !important;
  top: 60px !important;
  left: 0;
  right: 0;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sticky-search-header.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* VIP/高级搜索页面始终显示的搜索框 */
.sticky-search-header.always-show {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
  /* 顶部导航 */
  .header-container {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .main-nav {
    display: none;
  }

  /* H5端头部只保留左侧LOGO */
  .header-actions {
    display: none;
  }

  .logo-credential {
    display: none;
  }

  .header-left {
    gap: 0;
  }

  /* H5端隐藏PC端logo，显示H5 logo */
  .logo-img {
    display: none;
  }

  .logo-img-h5 {
    display: block !important;
    height: 32px;
    width: auto;
  }

  /* H5端导航栏标题居中显示 */
  .h5-header-title {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
  }

  /* H5端导航栏底色与搜索区域使用同一纯色 */
  .header {
    background: #2563eb;
    border-bottom: none;
    box-shadow: none;
    width: 100%;
  }

  /* H5页面隐藏悬浮导航 */
  .float-nav {
    display: none;
  }

  /* H5页面隐藏底部友链 */
  .footer-links-text {
    display: none;
  }

  /* H5端footer底部留出吸底导航栏的空间 */
  .footer {
    padding-bottom: 70px;
  }

  .footer-copyright-row {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  /* 搜索头部响应式 */
  .search-header-section {
    padding: 16px 0;
    width: 100%;
  }

  .search-header-container {
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .search-category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .search-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    padding: 10px 14px;
    white-space: nowrap;
    font-size: 13px;
  }

  .search-input-box .search-input {
    height: 40px;
    font-size: 14px;
  }

  .search-submit-btn {
    padding: 0 20px;
    font-size: 14px;
  }

  /* 推荐卡片响应式 */
  .recommend-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Toast 提示 ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast-error {
  background: rgba(239, 68, 68, 0.9);
}

.toast-success {
  background: rgba(16, 185, 129, 0.9);
}

/* ========== H5吸底导航栏 ========== */
.h5-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* ========== H5登录按钮 ========== */
.h5-auth-bar {
  display: none;
  position: fixed;
  bottom: 62px;
  right: 12px;
  z-index: 1000;
}

.h5-auth-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: #f3f4f6;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.3s;
}

.h5-auth-btn:hover {
  background: #e5e7eb;
}

.h5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.h5-nav-item span {
  font-size: 11px;
  line-height: 1;
}

.h5-nav-item.active {
  color: var(--primary-color);
}

.h5-nav-item:not(.active):hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .h5-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  
  .h5-auth-bar {
    display: flex;
  }
}
