/* 使用手册页面样式 */

/* 主横幅区域 */
.manual-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 50%, #636e72 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.manual-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 177, 153, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.manual-hero .hero-background {
  position: relative;
  z-index: 2;
}

.manual-hero .hero-content {
  text-align: center;
  color: white;
}

.manual-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ffa500, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.manual-hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.9);
}

/* 手册布局 */
.manual-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* 侧边栏 */
.manual-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.sidebar-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sidebar-content h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.8rem;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 1.2rem 1.8rem;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  border-left: 4px solid transparent;
}

.sidebar-nav .nav-item:hover {
  background: #f8f9fa;
  color: #ffa500;
  transform: translateX(5px);
  border-left: 4px solid #ffa500;
}

.sidebar-nav .nav-item:hover {
  background: #f8f9fa;
  color: #ffa500;
  transform: translateX(5px);
}

.sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, #ffa500 0%, #ff6b6b 100%);
  color: white;
  font-weight: 600;
}

.sidebar-nav .nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* 主要内容区域 */
.manual-main {
  flex: 1;
  min-width: 0;
}

.content-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* 手册章节 */
.manual-section {
  display: block;
  padding: 3rem 2rem;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
  scroll-margin-top: 120px; /* 为固定导航栏留出空间 */
}

.manual-section:last-child {
  border-bottom: none;
}

.manual-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(135deg, #ffa500 0%, #ff6b6b 100%);
  opacity: 0.3;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 1rem;
}

.section-header h2 i {
  color: #ffa500;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 功能网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* 功能卡片 */
.feature-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ffa500 0%, #ff6b6b 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card .feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffa500 0%, #ff6b6b 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card > p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* 功能步骤 */
.feature-steps {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.feature-steps h4 {
  color: #333;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-steps ol,
.feature-steps ul {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-steps li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.feature-steps ol li {
  list-style-type: decimal;
}

.feature-steps ul li {
  list-style-type: disc;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .manual-layout {
    flex-direction: column;
    padding: 1rem;
  }
  
  .manual-sidebar {
    width: 100%;
    position: static;
  }
  
  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
  }
  
  .sidebar-nav ul {
    display: flex;
    gap: 1rem;
    min-width: max-content;
  }
  
  .sidebar-nav .nav-item {
    white-space: nowrap;
    border-radius: 25px;
    border: none;
    background: #f8f9fa;
  }
}

@media (max-width: 768px) {
  .manual-hero h1 {
    font-size: 2.2rem;
  }
  
  .manual-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .manual-section {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* 滚动动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.3s;
}
