/* 共享CSS样式 - 猿变实验室 */

/* CSS变量定义 */
:root {
  --primary-color: #eab90e;
  --primary-light: #ffd700;
  --secondary-color: #b38900;
  --accent-color: #f2c94c;
  --highlight-color: #f59e0b;
  --dark-bg: #2d3748;
  --light-bg: #fefaf0;
  --card-bg: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --border-color: #e2e8f0;
  --bg-gradient: linear-gradient(135deg, #eab90e, #ffd700);
  --ai-bg: #0f172a;
  --ai-text: #e2e8f0;
  --glow-effect: 0 0 15px rgba(234, 185, 14, 0.5);
}

/* 基础样式 */
body {
  color: var(--text-primary);
  background: var(--light-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section, footer {
  padding: 20px 0;
  position: relative;
}

/* 为白色背景的section添加底部阴影，增强区域感 */
section[style*="background: #ffffff"] {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#cta-section, #footer {
  margin-bottom: 0;
}

/* 标题样式 */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
}

h2 {
  color: var(--text-primary);
  position: relative;
}

/* 为h2标题添加装饰线条 */
.text-center h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 文本样式 */
p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 强调文本 */
.text-center p.lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* 增强标题区域的间距 */
.text-center {
  margin-bottom: 3rem;
}

/* 导航栏样式 */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

/* 桌面设备导航栏样式 */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }
}

/* 导航链接基础样式 */
.nav-link {
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
}

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

/* 移动设备响应式样式 */
@media (max-width: 991px) {
  /* 导航菜单样式 */
  .navbar-nav {
    margin: 0;
  }
  
  .nav-item {
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 15px !important;
  }
  
  /* 按钮样式 */
  .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    margin: 10px 0;
    display: block;
    width: 100%;
  }
  
  /* 登录容器样式 */
  .nav-login-container {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }
  
  #login-status {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  #login-status .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  #logout-btn {
    width: 100%;
    margin: 10px 0;
  }
  
  #login-btn {
    width: 100%;
    margin: 10px 0;
  }
}

/* 登录容器桌面样式 */
.nav-login-container {
  display: flex;
  align-items: center;
}

/* 按钮样式增强 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(234, 185, 14, 0.25);
}

.btn-primary:hover {
  background-color: #d3a30c;
  border-color: #d3a30c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 185, 14, 0.4);
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.2);
}

.btn-white {
  background-color: white;
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  border-color: white;
  color: white;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
footer p {
  color: rgb(155,172,197);
}