/* 轻骑兵学习中心样式文件 */
/* 基于APICloud样式结构定制 */

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1D2129;
  background-color: #ffffff;
}

/* 导航栏样式 */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 60px;
}

#navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

/* Logo样式 */
#navbar .logo {
  display: flex;
  align-items: center;
}

#navbar .logo img {
  height: 50px;
  width: auto;
}

/* 桌面导航 */
#navbar .desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

#navbar .nav-link {
  position: relative;
  color: #1D2129;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

#navbar .nav-link:hover {
  color: #10B981;
}

#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #10B981;
  transition: width 0.3s ease;
}

#navbar .nav-link:hover::after {
  width: 100%;
}

#navbar .nav-link.active {
  color: #10B981;
}

#navbar .nav-link.active::after {
  width: 100%;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

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

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #1D2129;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #F7F7F7;
  color: #10B981;
}

.dropdown-content .dropdown-header {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #10B981;
  background-color: rgba(16, 185, 129, 0.1);
  margin: 4px 0;
}

/* 移动端菜单 */
#mobileMenu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 49;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

#mobileMenu.active {
  display: block;
}

#mobileMenu .container {
  padding: 20px;
}

#mobileMenu .nav-link {
  display: block;
  padding: 12px 0;
  color: #1D2129;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #F7F7F7;
}

#mobileMenu .nav-link:last-child {
  border-bottom: none;
}

/* 移动端菜单按钮 */
#menuBtn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: #1D2129;
  cursor: pointer;
}

/* 主内容区域 */
.main-content {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* 英雄区域 */
.hero-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  color: white;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #10B981;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  border-color: rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #10B981;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background-color: #059669;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* 角色卡片区域 */
.roles-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1D2129;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 30px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.role-card {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.role-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #10B981;
}

.role-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.role-card:nth-child(1) .role-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.role-card:nth-child(2) .role-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.role-card:nth-child(3) .role-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.role-card:nth-child(4) .role-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.role-title {
  font-size: 20px;
  font-weight: 700;
  color: #1D2129;
  margin-bottom: 10px;
}

.role-description {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.role-features {
  list-style: none;
  margin-bottom: 25px;
}

.role-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

.role-features li i {
  color: #10B981;
  margin-top: 2px;
  flex-shrink: 0;
}

.role-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #10B981;
  text-decoration: none;
  transition: all 0.3s ease;
}

.role-cta:hover {
  transform: translateX(5px);
}

/* 资源卡片样式 */
.resources-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.resource-card {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #10B981;
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.resource-type {
  padding: 6px 12px;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.resource-date {
  font-size: 12px;
  color: #94a3b8;
}

.resource-title {
  font-size: 16px;
  font-weight: 700;
  color: #1D2129;
  margin-bottom: 10px;
  line-height: 1.4;
}

.resource-description {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #10B981;
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-link:hover {
  transform: translateX(5px);
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background-color: #f8fafc;
  color: #1D2129;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

.data-table tr:hover {
  background-color: #f8fafc;
}

.data-table a {
  color: #10B981;
  text-decoration: none;
  transition: color 0.3s ease;
}

.data-table a:hover {
  text-decoration: underline;
}

/* 页脚样式 */
.footer {
  background-color: #0f172a;
  color: white;
  padding: 60px 0 30px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #10B981;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  #navbar .desktop-nav {
    display: none;
  }
  
  #menuBtn {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .roles-section {
    padding: 60px 0;
  }
  
  .resources-section {
    padding: 60px 0;
  }
  
  .role-card {
    padding: 20px;
  }
  
  .resource-card {
    padding: 20px;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* 搜索框样式 */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1D2129;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-button:hover {
  color: #10B981;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  border-top-color: #10B981;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 错误提示 */
.error-message {
  padding: 12px 16px;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #dc2626;
  font-size: 14px;
  margin: 10px 0;
}

/* 成功提示 */
.success-message {
  padding: 12px 16px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  color: #059669;
  font-size: 14px;
  margin: 10px 0;
}

/* 卡片悬停效果增强 */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 渐变文本 */
.gradient-text {
  background: linear-gradient(90deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 骨架屏效果 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #006400;
    --secondary-color: #00008b;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #f5f5f5;
  }
  
  .roles-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  }
  
  .role-card {
    background-color: #2d2d2d;
  }
  
  .resource-card {
    background-color: #2d2d2d;
  }
  
  .section-title {
    color: #f5f5f5;
  }
  
  .role-title {
    color: #f5f5f5;
  }
  
  .resource-title {
    color: #f5f5f5;
  }
}

/* 打印样式 */
@media print {
  #navbar,
  #mobileMenu,
  .footer {
    display: none;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}