/**
 * PC教程网站 - 主样式表
 * 
 * 配色方案:
 * - 主色: #2563EB (蓝色)
 * - 强调色: #F97316 (橙色)
 * - 成功色: #22C55E (绿色)
 * - 错误色: #EF4444 (红色)
 * - 背景色: #F8FAFC
 * - 文字色: #1E293B
 */

/* ========================================
   基础重置和变量
   ======================================== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --success: #22C55E;
  --error: #EF4444;
  --warning: #F59E0B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

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

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-gray);
}

/* ========================================
   头部导航
   ======================================== */
.header {
  background: var(--bg-white);
  box-shadow: 0 1px 3px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo i {
  font-size: 26px;
}

.logo img {
  height: 36px;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* 下拉菜单 */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  border: 1px solid var(--border);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
}

/* 搜索框 */
.header-search {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  background: var(--bg-light);
}

.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg-white);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 13px;
}

.header-search button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* 用户区域 */
.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  font-size: 16px;
  color: var(--text-gray);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  border: 1px solid var(--border);
}

.user-avatar:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.user-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
}

.user-dropdown-item i {
  width: 18px;
  color: var(--text-gray);
  font-size: 15px;
}

.user-dropdown-item:hover i {
  color: var(--primary);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: white;
  font-size: 12px;
  border-radius: 10px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-gray);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* 移动端菜单面板 */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.mobile-menu-panel.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-panel.active .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu-panel.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-gray);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.mobile-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 16px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.mobile-nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 500;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  color: var(--text-gray);
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
  color: var(--primary);
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.mobile-menu-btn-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.mobile-menu-btn-link:hover {
  background: var(--border);
  color: var(--text-dark);
}

.mobile-menu-btn-link.highlight {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: white;
}

.mobile-menu-btn-link.highlight:hover {
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* 搜索框 */
.hero-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  height: 56px;
  padding: 0 140px 0 24px;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  outline: none;
}

.hero-search button {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 40px;
  padding: 0 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: var(--primary-dark);
}

/* 快捷入口 */
.hero-shortcuts {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.shortcut-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: white;
  font-size: 14px;
  transition: background 0.2s;
}

.shortcut-item:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* ========================================
   分类卡片
   ======================================== */
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.category-card:nth-child(1) .category-icon { background: #EEF2FF; color: #4F46E5; }
.category-card:nth-child(2) .category-icon { background: #FEF3C7; color: #D97706; }
.category-card:nth-child(3) .category-icon { background: #DCFCE7; color: #16A34A; }
.category-card:nth-child(4) .category-icon { background: #FEE2E2; color: #DC2626; }
.category-card:nth-child(5) .category-icon { background: #DBEAFE; color: #2563EB; }
.category-card:nth-child(6) .category-icon { background: #F3E8FF; color: #9333EA; }

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.category-count {
  font-size: 13px;
  color: var(--text-gray);
}

/* ========================================
   内容卡片
   ======================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.content-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.3s;
  color: var(--text-dark);
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow);
  color: var(--primary);
}

.card-image {
  aspect-ratio: 16/9;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.content-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  border-radius: 4px;
}

.card-badge.video {
  background: #EF4444;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.content-card:hover .card-title,
a.content-card:hover .card-title {
  color: var(--primary) !important;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-gray);
}

.card-meta i {
  margin-right: 4px;
}

/* ========================================
   故障代码查询
   ======================================== */
.error-search-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.error-search-box {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.error-search-box input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.error-search-box input:focus {
  border-color: var(--primary);
}

.error-search-box button {
  height: 48px;
  padding: 0 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.error-search-box button:hover {
  background: var(--primary-dark);
}

.error-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.error-tag {
  padding: 6px 14px;
  background: var(--bg-light);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.error-tag:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* 故障代码列表 */
.error-list {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
}

.error-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.error-item:last-child {
  border-bottom: none;
}

.error-item:hover {
  background: var(--bg-light);
}

.error-code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--error);
  min-width: 140px;
}

.error-name {
  flex: 1;
  font-size: 15px;
  color: var(--text-dark);
}

.error-category {
  padding: 4px 10px;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 常见问题列表项样式 */
.faq-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.2s;
}

.faq-list-item:hover {
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateX(4px);
}

.faq-list-item .faq-tag {
  min-width: 80px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  flex-shrink: 0;
}

.faq-list-item .faq-tag.install {
  background: #FEE2E2;
  color: #DC2626;
}

.faq-list-item .faq-tag.start {
  background: #FEF3C7;
  color: #D97706;
}

.faq-list-item .faq-tag.activate {
  background: #DBEAFE;
  color: #2563EB;
}

.faq-list-item .faq-tag.compatibility {
  background: #DCFCE7;
  color: #16A34A;
}

.faq-list-item .faq-tag.runtime {
  background: #F3E8FF;
  color: #9333EA;
}

.faq-list-item .faq-title-text {
  flex: 1;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
}

.faq-list-item:hover .faq-title-text {
  color: var(--primary);
}

.faq-list-item .faq-views {
  font-size: 12px;
  color: var(--text-light);
  flex-shrink: 0;
}

.faq-list-item .faq-views i {
  margin-right: 4px;
}

.faq-list-item .faq-arrow {
  color: var(--text-light);
  font-size: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-list-item:hover .faq-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* 分类筛选样式 */
.filter-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px var(--shadow);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  min-width: 70px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-gray);
  background: var(--bg-light);
  border-radius: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-option:hover {
  background: #EFF6FF;
  color: var(--primary);
}

.filter-option.active {
  background: var(--primary);
  color: white;
}

/* 无结果提示 */
.no-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  color: var(--text-gray);
}

.no-result i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-light);
}

.no-result p {
  font-size: 16px;
  margin: 0;
}

/* ========================================
   工具列表
   ======================================== */
.tool-card {
  display: flex;
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.3s;
}

.tool-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
}

.tool-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-info {
  flex: 1;
}

.tool-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.tool-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* 软件下载网格样式 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tool-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.3s;
}

.tool-item:hover {
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px);
}

.tool-item .tool-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.tool-item .tool-info {
  flex: 1;
  min-width: 0;
}

.tool-item .tool-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-item .tool-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-item .tool-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* 视频播放遮罩 */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.content-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.content-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

/* 图文标签样式 */
.card-badge.article {
  background: #4F46E5;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

.btn-accent:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* ========================================
   分页
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-item {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.page-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ========================================
   详情页
   ======================================== */
.detail-header {
  background: var(--bg-white);
  padding: 32px 0;
  margin-bottom: 24px;
}

.detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-gray);
}

.detail-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
}

.detail-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.detail-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.detail-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.detail-content ul,
.detail-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.detail-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.detail-content ul li {
  list-style: disc;
}

.detail-content ol li {
  list-style: decimal;
}

.detail-content code {
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
}

.detail-content pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
}

.detail-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ========================================
   评论区域
   ======================================== */
.comment-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.comment-form {
  margin-bottom: 24px;
}

.comment-form textarea {
  width: 100%;
  height: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form textarea:focus {
  border-color: var(--primary);
}

.comment-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.comment-list {
  margin-top: 24px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-dark);
}

.comment-time {
  font-size: 12px;
  color: var(--text-light);
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ========================================
   用户中心
   ======================================== */
.user-center {
  display: flex;
  gap: 24px;
}

.user-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.user-menu {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 12px;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  transition: background 0.2s;
}

.user-menu-item:hover,
.user-menu-item.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.user-menu-item i {
  width: 18px;
  color: var(--text-gray);
}

.user-main {
  flex: 1;
}

.user-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-info h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.user-profile-info p {
  font-size: 14px;
  color: var(--text-gray);
}

/* ========================================
   VIP会员
   ======================================== */
.vip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.vip-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.vip-card:hover {
  border-color: var(--primary);
}

.vip-card.recommended {
  border-color: var(--accent);
  transform: scale(1.02);
}

.vip-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.vip-price {
  margin: 20px 0;
}

.vip-price .amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.vip-card.recommended .vip-price .amount {
  color: var(--accent);
}

.vip-price .unit {
  font-size: 14px;
  color: var(--text-gray);
}

.vip-original {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 16px;
}

.vip-features {
  text-align: left;
  margin-bottom: 24px;
}

.vip-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-gray);
}

.vip-features li i {
  color: var(--success);
}

/* ========================================
   登录弹窗
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 400px;
  max-width: 90%;
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.login-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 15px;
  color: var(--text-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.login-tab:hover,
.login-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

.oauth-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.oauth-btn.wechat {
  color: #07C160;
}

.oauth-btn.wechat:hover {
  background: rgba(7, 193, 96, 0.08);
  border-color: #07C160;
}

.oauth-btn.qq {
  color: #12B7F5;
}

.oauth-btn.qq:hover {
  background: rgba(18, 183, 245, 0.08);
  border-color: #12B7F5;
}

/* ========================================
   常见问题样式
   ======================================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-gray);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .current {
  color: var(--text-dark);
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.page-desc {
  font-size: 14px;
  color: var(--text-gray);
}

.search-section {
  margin-bottom: 24px;
}

.search-box-large {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  box-shadow: 0 2px 8px var(--shadow);
}

.search-box-large i {
  color: var(--text-light);
  font-size: 18px;
}

.search-box-large input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  font-size: 16px;
}

.search-box-large button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-gray);
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.faq-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateX(4px);
}

.faq-category-badge {
  min-width: 80px;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  text-align: center;
  flex-shrink: 0;
}

.faq-content {
  flex: 1;
}

.faq-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.faq-item:hover .faq-title {
  color: var(--primary);
}

.faq-excerpt {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.6;
}

.faq-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.faq-arrow {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 8px;
  transition: transform 0.2s;
}

.faq-item:hover .faq-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* 详情页布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.detail-main {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 1px 3px var(--shadow);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ详情页样式 */
.faq-detail-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.faq-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 12px 0;
  line-height: 1.5;
}

.faq-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.faq-section {
  margin-bottom: 30px;
}

.faq-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-section-title i {
  color: var(--primary);
}

.faq-content {
  color: var(--text-dark);
  line-height: 1.8;
}

.faq-content p {
  margin-bottom: 16px;
}

.faq-content ul, .faq-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.faq-image {
  margin: 20px 0;
  text-align: center;
}

.faq-image img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.image-caption {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

.faq-list {
  list-style: none;
  padding: 0;
}

.faq-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 0;
}

.faq-list li i {
  color: var(--success);
  margin-top: 4px;
  flex-shrink: 0;
}

.step-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 16px;
}

.step-list li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.solution-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: #EFF6FF;
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: 14px;
  color: var(--primary);
}

.step-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: #FEF3C7;
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: 14px;
  color: #D97706;
}

.runtime-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.runtime-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.2s;
}

.runtime-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.related-tutorials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.related-item:hover {
  background: #EFF6FF;
}

.related-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.related-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.related-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* 互动区域 */
.faq-interaction {
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  text-align: center;
  margin: 30px 0;
}

.interaction-question {
  margin-bottom: 16px;
}

.interaction-question p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.interaction-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.interaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.interaction-btn.helpful {
  color: var(--success);
}

.interaction-btn.helpful:hover {
  background: #DCFCE7;
  border-color: var(--success);
}

.interaction-btn.not-helpful {
  color: var(--text-gray);
}

.interaction-btn.not-helpful:hover {
  background: #F3F4F6;
}

/* 评论区 */
.comment-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.comment-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-form {
  margin-bottom: 24px;
}

.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  font-size: 14px;
  margin-bottom: 12px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
}

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

.comment-item {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 500;
  color: var(--text-dark);
}

.comment-time {
  font-size: 12px;
  color: var(--text-light);
}

.comment-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  gap: 16px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}

.action-btn:hover {
  color: var(--primary);
}

/* 侧边栏样式 */
.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px var(--shadow);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.related-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-question-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  transition: color 0.2s;
}

.related-question-item:hover {
  color: var(--primary);
}

.related-question-item i {
  margin-top: 3px;
  flex-shrink: 0;
}

.hot-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hot-question-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  transition: color 0.2s;
}

.hot-question-item:hover {
  color: var(--primary);
}

.hot-rank {
  width: 20px;
  height: 20px;
  background: var(--text-light);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.hot-rank.rank-1 {
  background: #EF4444;
}

.hot-rank.rank-2 {
  background: #F97316;
}

.hot-rank.rank-3 {
  background: #F59E0B;
}

.contact-card {
  text-align: center;
}

.contact-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.btn-block {
  width: 100%;
}

/* ========================================
   图文教程详情页样式
   ======================================== */
.tutorial-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tutorial-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.tutorial-badge.article {
  background: #EEF2FF;
  color: #4F46E5;
}

.tutorial-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.tutorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.tutorial-cover {
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tutorial-cover img {
  width: 100%;
  display: block;
}

.tutorial-content {
  line-height: 1.8;
}

.content-section {
  margin-bottom: 40px;
}

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

.section-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #60A5FA);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.tutorial-content p {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.requirement-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.requirement-item i {
  font-size: 24px;
  color: var(--primary);
  width: 40px;
  text-align: center;
}

.requirement-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.requirement-info span {
  font-size: 13px;
  color: var(--text-gray);
}

.step-list {
  margin-top: 16px;
}

.step-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content p {
  margin: 0;
  line-height: 28px;
}

.tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.tip-box i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.tip-box.warning {
  background: #FEF3C7;
  color: #D97706;
}

.tip-box.info {
  background: #EFF6FF;
  color: var(--primary);
}

.tip-box.success {
  background: #DCFCE7;
  color: #16A34A;
}

.install-step {
  margin-bottom: 30px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.install-step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.install-step h3 i {
  color: var(--primary);
}

.screenshot {
  margin-top: 16px;
  text-align: center;
}

.screenshot img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.screenshot-caption {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item-inline {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-question i {
  color: var(--primary);
}

.faq-answer {
  font-size: 14px;
  color: var(--text-gray);
  padding-left: 24px;
}

.tutorial-interaction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin: 30px 0;
}

.interaction-left {
  display: flex;
  gap: 12px;
}

.interaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-gray);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.interaction-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.interaction-btn.like:hover {
  border-color: var(--success);
  color: var(--success);
}

.interaction-btn.favorite:hover {
  border-color: #F59E0B;
  color: #F59E0B;
}

/* ========================================
   知识库详情页样式
   ======================================== */
.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #EEF2FF;
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.article-summary {
  padding: 16px;
  background: #EFF6FF;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 30px;
}

.article-summary p {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.8;
}

.article-content {
  line-height: 1.8;
}

.shortcut-table {
  overflow-x: auto;
}

.shortcut-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow);
}

.shortcut-table thead {
  background: var(--primary);
  color: white;
}

.shortcut-table th,
.shortcut-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.shortcut-table th {
  font-weight: 600;
  font-size: 14px;
}

.shortcut-table tbody tr:hover {
  background: #F8FAFC;
}

.shortcut-table tbody tr:last-child td {
  border-bottom: none;
}

.shortcut-table kbd {
  display: inline-block;
  padding: 4px 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-dark);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.article-interaction {
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  text-align: center;
  margin: 30px 0;
}

.tip-content strong {
  display: block;
  margin-bottom: 4px;
}

.tip-content p {
  margin: 0;
  font-size: 14px;
}

/* 目录样式 */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-gray);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.toc-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.toc-item.active {
  background: #EFF6FF;
  color: var(--primary);
  font-weight: 500;
}

/* 相关文章列表 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list .related-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.related-list .related-item:hover {
  background: #EFF6FF;
}

.related-list .related-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.related-list .related-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-list .related-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* 热门文章 */
.hot-articles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hot-article-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  transition: color 0.2s;
}

.hot-article-item:hover {
  color: var(--primary);
}

/* 软件列表 */
.software-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.software-item:hover {
  background: #EFF6FF;
}

.software-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
}

.software-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.software-info span {
  font-size: 12px;
  color: var(--text-light);
}

/* ========================================
   底部
   ======================================== */
.footer {
  background: #1E293B;
  color: #94A3B8;
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.footer-qrcodes {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qrcode-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: white;
  padding: 4px;
}

.qrcode-item span {
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qrcode-item span i {
  color: #22C55E;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
  .header-inner {
    gap: 16px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logo i {
    font-size: 24px;
  }
  
  .nav-link {
    padding: 8px 14px;
    font-size: 14px;
  }
  
  .header-search {
    width: 200px;
  }
  
  .header-search input {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }
  
  .nav-menu {
    gap: 2px;
  }
  
  .nav-link {
    padding: 7px 12px;
    font-size: 14px;
  }
  
  .header-search {
    width: 170px;
  }
  
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .vip-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logo span {
    display: inline;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    order: 4;
  }
  
  .header-search {
    order: 3;
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }
  
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-center {
    flex-direction: column;
  }
  
  .user-sidebar {
    width: 100%;
  }
  
  .vip-cards {
    grid-template-columns: 1fr;
  }
  
  .tool-card {
    flex-direction: column;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  /* FAQ响应式 */
  .detail-layout {
    grid-template-columns: 1fr;
  }
  
  .detail-sidebar {
    order: 2;
  }
  
  .detail-main {
    padding: 20px;
  }
  
  .faq-detail-title {
    font-size: 20px;
  }
  
  .faq-detail-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .faq-item {
    flex-direction: column;
    gap: 12px;
  }
  
  .faq-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .solution-step {
    flex-direction: column;
    gap: 12px;
  }
  
  .interaction-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mobile-menu-content {
    width: 260px;
  }
}

@media (max-width: 480px) {
  .category-cards {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-shortcuts {
    flex-wrap: wrap;
  }
  
  .tool-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-tabs {
    flex-direction: column;
  }
  
  .filter-tab {
    width: 100%;
    justify-content: center;
  }
  
  .related-item {
    flex-direction: column;
  }
  
  .related-item img {
    width: 100%;
    height: 150px;
  }
}
