/* Header右上角功能区样式 */
.header-actions {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1100;
}

/* 项目提交按钮 */
.btn-submit-project {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(250, 140, 50, 0.3);
}

.btn-submit-project:hover {
  background: #e17a28;
  box-shadow: 0 4px 12px rgba(250, 140, 50, 0.4);
  transform: translateY(-1px);
}

.btn-submit-project svg {
  width: 16px;
  height: 16px;
}

/* 语言切换下拉菜单 */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.lang-dropdown-trigger:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-dropdown-trigger svg {
  transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-dropdown-trigger svg {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 1200;
  min-width: 100px;
  margin-top: 4px;
}

.lang-dropdown.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: white;
  color: #333;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-option:hover {
  background: #f8f9fa;
}

.lang-option.active {
  background: var(--primary-color);
  color: white;
}

/* 社交媒体图标样式 */
.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 0;
  margin-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-media-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-media-icons a:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 不同平台的悬停颜色 */
.social-media-icons a:nth-child(1):hover { /* LinkedIn */
  background: #0077B5;
}

.social-media-icons a:nth-child(2):hover { /* X/Twitter */
  background: #000000;
}

.social-media-icons a:nth-child(3):hover { /* Discord */
  background: #5865F2;
}

.social-media-icons a:nth-child(4):hover { /* 微信 */
  background: #07C160;
}

.social-media-icons a:nth-child(5):hover { /* 小红书 */
  background: #FF2442;
}

.social-media-icons svg {
  width: 20px;
  height: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .header-actions {
    top: 16px;
    right: 16px;
    scale: 0.9;
  }

  .btn-submit-project {
    padding: 6px 12px;
    font-size: 13px;
  }

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

  .lang-dropdown-trigger {
    padding: 6px 10px;
    font-size: 13px;
  }

  .social-media-icons {
    gap: 8px;
  }

  .social-media-icons a {
    width: 32px;
    height: 32px;
  }

  .social-media-icons svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    scale: 0.8;
    gap: 8px;
  }

  .btn-submit-project {
    padding: 5px 10px;
    font-size: 12px;
  }

  .social-media-icons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .social-media-icons a {
    width: 28px;
    height: 28px;
  }

  .social-media-icons svg {
    width: 16px;
    height: 16px;
  }
}