/**
 * 平头哥AI - 网站页面专用样式
 * 不包含聊天页面的样式
 */

/* 定义网站通用变量 */
:root {
  --primary-color: #FF9B11;
  --primary-hover: #FF8C00;
  --accent-color: #0A1B3F;
  --text-color: #2F3542;
  --text-light: #747D8C;
  --bg-color: #FFF9E6;
  --bg-light: rgba(255, 254, 254, 0.7);
  --border-radius: 30px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 导航栏磨砂玻璃效果 */
.navbar {
  background: rgba(255, 155, 17, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.8rem 1rem;
}

/* 滚动后的导航栏样式 */
.navbar-scrolled {
  padding: 0.5rem 1rem;
  background: rgba(255, 155, 17, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.7rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
  transform: translateY(-2px);
}

.navbar-brand {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* 打字机效果 */
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

#typewriter {
  display: block;
  position: relative;
  min-height: 1.6em;
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
}

#typewriter::after {
  content: '|';
  position: relative;
  display: inline;
  color: var(--accent-color);
  font-weight: bold;
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
}

/* 打字完成后隐藏光标 */
#typewriter.typing-completed::after {
  display: none;
  animation: none;
}

/* 文本高亮效果 */
.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* 文本颜色样式 */
.text-primary {
  color: var(--primary-color) !important;
}

/* 确保页面可滚动 */
html, body {
  overflow-y: auto !important;
  overflow-x: hidden;
  width: 100%;
  height: auto;
  min-height: 100vh;
}

/* 容器样式调整，确保内容可滚动 */
.container-fluid {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

/* 页面主体内容区域 */
.main-content {
  position: relative;
  overflow: visible;
}

/* 确保页脚正确显示在内容底部 */
.footer-section {
  position: relative;
  overflow: visible;
}

/* 确保各部分内容不被限制高度 */
section {
  overflow: visible !important;
  height: auto !important;
}

/* 添加一些辅助样式 */
.rounded-btn {
  border-radius: var(--border-radius);
}

.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* 适应较小屏幕 */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto !important;
  }
} 