/* ===== 极简Portfolio风格样式 ===== */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  padding-top: 0 !important; /* 确保body没有多余的顶部间距 */
}

/* 导航栏样式 */
.navbar.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1030 !important;
}

.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(103, 126, 234, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333 !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
  color: #667eea !important;
}

/* 授权管理页面样式 */
.test-results-area {
  min-height: 100px;
}

.navbar-brand .bi-award {
  font-size: 1.5rem;
  color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text {
  color: #333;
  margin-right: 0.2rem;
}

.brand-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.nav-link {
  color: #666 !important;
  font-weight: 500;
  margin: 0 0.3rem;
  padding: 0.6rem 1.2rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #667eea !important;
  background: rgba(103, 126, 234, 0.1);
  transform: translateY(-1px);
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:before {
  width: 80%;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .nav-item {
    margin: 0.2rem 0;
  }
  
  .nav-link {
    margin: 0 0.5rem;
  }
}

/* 主内容区域 */
.main-content {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  margin-top: 80px; /* 为固定导航栏预留空间 */
}

.hero-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* 头像区域 */
.profile-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.profile-avatar i {
  font-size: 3rem;
  color: white;
}

/* 标题样式 */
.hero-title {
  font-size: 3rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 1rem;
}

.hero-title .text-primary {
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* 一言区域样式 */
.hitokoto-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

.hitokoto-text {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.8rem;
  min-height: 1.6rem;
  font-weight: 300;
}

.hitokoto-author {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  font-weight: 400;
}

/* 按钮样式 */
.action-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
  background: transparent;
  color: #667eea;
  border-color: #667eea;
}

.btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* 统计区域 */
.stats-section {
  border-top: 1px solid #e9ecef;
  padding-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 页脚样式 */
footer {
  background: transparent !important;
  border-top: 1px solid #e9ecef;
  margin-top: 4rem;
  padding: 2rem 0;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* 页面动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .action-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .main-content {
    padding: 2rem 0;
  }
}

/* 滚动优化 */
html {
  scroll-behavior: smooth;
}

/* 加载状态 */
.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 表单样式 */
.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.form-col-2 {
  flex: 2;
}

.form-col-3 {
  flex: 3;
}