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

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.manual-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.search-box {
  padding: 16px 20px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: background 0.3s;
}

.search-box input::placeholder {
  color: #888;
}

.search-box input:focus {
  background: rgba(255,255,255,0.15);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.3s;
  cursor: pointer;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.sidebar-nav .nav-item.active {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 24px 40px;
  max-width: calc(100% - 280px);
  width: calc(100% - 280px);
}

.content-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.content-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 15s linear infinite;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.content-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.content-header .subtitle {
  font-size: 16px;
  opacity: 0.9;
  position: relative;
}

.menu-toggle {
  display: none;
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

/* 章节样式 */
.chapter {
  margin-bottom: 48px;
  animation: fadeInUp 0.5s ease;
}

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

@keyframes highlight {
  0%, 100% { background: transparent; }
  50% { background: rgba(102, 126, 234, 0.1); }
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chapter-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chapter-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
}

/* 内容卡片 */
.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.content-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card h3 i {
  color: #667eea;
}

.intro-text {
  color: #666;
  margin-bottom: 20px;
}

/* 欢迎卡片 */
.welcome-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: none;
}

.welcome-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-icon i {
  font-size: 36px;
  color: #fff;
}

.welcome-text h3 {
  color: #2e7d32;
  margin-bottom: 8px;
}

.welcome-text p {
  color: #388e3c;
}

/* 步骤列表 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.step-content p {
  color: #666;
  font-size: 14px;
}

/* 登录演示 */
.login-demo {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.demo-form {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: 24px;
  border-radius: 12px;
  width: 240px;
}

.demo-input {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 14px;
}

.demo-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.demo-tips {
  flex: 1;
  min-width: 200px;
}

.demo-tips p {
  color: #666;
  margin-bottom: 12px;
}

.demo-tips ul {
  list-style: none;
  color: #666;
}

.demo-tips li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.demo-tips li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
}

/* 提示卡片 */
.tip-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-left: 4px solid #ff9800;
}

.tip-icon {
  width: 50px;
  height: 50px;
  background: #ff9800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-icon i {
  color: #fff;
  font-size: 24px;
}

.tip-content h4 {
  color: #e65100;
  margin-bottom: 4px;
}

.tip-content p {
  color: #f57c00;
  font-size: 14px;
}

/* 角色卡片网格 */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.role-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.role-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.role-icon i {
  font-size: 28px;
  color: #fff;
}

.role-admin .role-icon { background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%); }
.role-finance .role-icon { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.role-viewer .role-icon { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
.role-advisor .role-icon { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }

.role-card h4 {
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.role-tag {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.role-perms {
  list-style: none;
  text-align: left;
}

.role-perms li {
  padding: 6px 0;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-perms li .fa-check { color: #4caf50; }
.role-perms li .fa-times { color: #f44336; }

/* 权限表格 */
.table-wrapper {
  overflow-x: auto;
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.perm-table th,
.perm-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.perm-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a2e;
}

.perm-table th:first-child,
.perm-table td:first-child {
  text-align: left;
}

.perm-table tbody tr:hover {
  background: #f8f9fa;
}

.perm-table .yes { color: #4caf50; }
.perm-table .no { color: #f44336; }

/* 导航演示 */
.nav-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.nav-item-demo {
  padding: 10px 16px;
  background: #f0f2f5;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item-demo.admin-only {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.note {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 模块卡片 */
.module-card {
  border-left: 4px solid #667eea;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-icon i {
  font-size: 24px;
  color: #fff;
}

.home-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.finance-icon { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
.perf-icon { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.order-icon { background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%); }
.doc-icon { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }
.talent-icon { background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); }
.admin-icon { background: linear-gradient(135deg, #607d8b 0%, #455a64 100%); }

.module-title h3 {
  margin-bottom: 4px;
}

.module-title p {
  font-size: 14px;
  color: #888;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item > i {
  width: 36px;
  height: 36px;
  background: #f0f2f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  flex-shrink: 0;
}

.feature-item strong {
  display: block;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: #666;
}

.highlight-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-box i {
  color: #1976d2;
  font-size: 20px;
  flex-shrink: 0;
}

.highlight-box p {
  font-size: 14px;
  color: #1565c0;
}

.client-types {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.client-types p {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-tag {
  padding: 4px 12px;
  background: #f0f2f5;
  border-radius: 16px;
  font-size: 12px;
  color: #666;
}

.admin-module {
  border-left-color: #607d8b;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* 操作指南步骤 */
.guide-steps {
  position: relative;
}

.guide-step {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-dot {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  background: #e0e0e0;
  margin-top: 8px;
}

.guide-step:last-child .step-line {
  display: none;
}

.guide-step .step-content h4 {
  color: #1a1a2e;
  font-size: 15px;
  margin-bottom: 6px;
}

.guide-step .step-content p {
  font-size: 14px;
  color: #666;
}

.guide-simple {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.guide-simple p {
  margin-bottom: 12px;
}

/* 学习路径 */
.learning-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.path-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8f9fa;
  padding: 16px 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
}

.path-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.path-content h4 {
  color: #1a1a2e;
  margin-bottom: 4px;
}

.path-content p {
  font-size: 13px;
  color: #888;
}

.path-arrow {
  color: #667eea;
  font-size: 20px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question > .fa-question-circle {
  color: #667eea;
}

.faq-question span {
  flex: 1;
  font-weight: 500;
  color: #1a1a2e;
}

.faq-arrow {
  color: #888;
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px 52px;
  color: #666;
  font-size: 14px;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.faq-answer ul {
  margin-top: 8px;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 6px;
}

/* 联系卡片 */
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  text-align: left;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 28px;
  color: #fff;
}

.contact-content h3 {
  color: #2e7d32;
  margin-bottom: 8px;
}

.contact-content p {
  color: #388e3c;
  font-size: 14px;
}

/* 页脚 */
.manual-footer {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 14px;
}

.manual-footer p {
  margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
    max-width: 100%;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content-header {
    padding: 60px 20px 30px;
  }

  .content-header h1 {
    font-size: 24px;
  }

  .chapter-header h2 {
    font-size: 20px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .login-demo {
    flex-direction: column;
  }

  .demo-form {
    width: 100%;
  }

  .perm-table {
    font-size: 12px;
  }

  .perm-table th,
  .perm-table td {
    padding: 8px 10px;
  }

  .welcome-card {
    flex-direction: column;
    text-align: center;
  }

  .tip-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
