/* 现代化重置和变量 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  
  --bg-primary: rgba(255, 255, 255, 0.75);
  --bg-secondary: rgba(248, 250, 252, 0.75);
  --bg-sidebar: rgba(15, 23, 42, 0.75);
  --bg-dark: rgba(30, 41, 59, 0.75);
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #334155;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius: 8px;
  --radius-lg: 12px;
  
  --transition: all 0.2s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-size: 14px;
}

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

/* 现代化导航栏 */
.navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(45%);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  font-size: 14px;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(45%);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(45%);
}



/* 在 index.css 的导航栏部分添加以下样式 */

/* 导航栏隐藏/显示控制 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(248, 250, 252, 0.75);
    color: var(--primary);
}

/* 导航栏隐藏状态 */
.navbar.hidden {
    transform: translateY(-100%);
}

.navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(45%);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* 显示隐藏按钮的容器 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 隐藏按钮样式 */
.hide-nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hide-nav-btn:hover {
    background: rgba(248, 250, 252, 0.75);
    color: var(--primary);
}

/* 显示导航栏的浮动按钮 */
.show-nav-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.show-nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.show-nav-btn.visible {
    display: flex;
}

/* 移动端导航栏控制 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(45%);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: var(--radius);
        margin-bottom: 4px;
    }
    
    .user-info {
        width: 100%;
        text-align: left;
        margin: 0 0 16px 0;
        border-radius: var(--radius);
    }
    
    .hide-nav-btn {
        display: none;
    }
}

/* 主内容区域 */
.main-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* 现代化英雄区域 */
.hero {
  text-align: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 250, 252, 0.75) 100%);
  backdrop-filter: blur(45%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  line-height: 1.1;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

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

/* 特性网格 */
.features {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(45%);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 60px;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(45%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(45%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
  stroke: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 认证页面布局 */
.auth-container {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(45%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  margin-top: 80px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 32px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.auth-tabs {
  display: flex;
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(45%);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  border-radius: 6px;
  font-size: 14px;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(45%);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 现代化输入框和表单 */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(45%);
  color: var(--text-primary);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* 密码强度指示器 */
.password-strength {
  margin-top: 8px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: var(--transition);
  border-radius: 2px;
}

.strength-weak { background: var(--danger); width: 33%; }
.strength-medium { background: var(--warning); width: 66%; }
.strength-strong { background: var(--success); width: 100%; }

/* 现代化按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  line-height: 1;
}

.btn-primary {
  background: rgba(37, 99, 235, 0.75);
  backdrop-filter: blur(45%);
  color: white;
}

.btn-primary:hover {
  background: rgba(29, 78, 216, 0.75);
  backdrop-filter: blur(45%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(248, 250, 252, 0.75);
  backdrop-filter: blur(45%);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(241, 245, 249, 0.75);
  backdrop-filter: blur(45%);
  transform: translateY(-1px);
}

.btn-success {
  background: rgba(16, 185, 129, 0.75);
  backdrop-filter: blur(45%);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.auth-links {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* 页脚 */
.footer {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(45%);
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-top: 100px;
}

.footer p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-card {
    padding: 32px 24px;
    margin-top: 60px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .container {
    padding: 0 16px;
  }
}