/* ========================================
   技能目录 - 样式表
   现代科技风格 · 响应式设计
   ======================================== */

/* CSS 变量 */
:root {
    --primary-600: #2563eb;
    --accent-600: #7c3aed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --sidebar-width: 280px;
    --content-max-width: 1200px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: linear-gradient(135deg, var(--gray-50) 0%, #eff6ff 100%); min-height: 100vh; }

/* 侧边导航 */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; background: white; border-right: 1px solid var(--gray-200); display: flex; flex-direction: column; z-index: 100; }
.sidebar-header { padding: 32px 24px 24px; border-bottom: 1px solid var(--gray-100); }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-icon { font-size: 32px; }
.logo-text { font-size: 24px; font-weight: 800; background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sidebar-subtitle { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.nav-section { padding: 24px; flex: 1; }
.nav-section-title { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); margin-bottom: 16px; }
.nav-list { list-style: none; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); color: var(--gray-600); text-decoration: none; font-weight: 500; font-size: 14px; transition: all var(--transition-fast); margin-bottom: 4px; }
.nav-link:hover { background: var(--gray-100); color: var(--gray-800); }
.nav-link.active { background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); color: white; }
.sidebar-footer { padding: 24px; border-top: 1px solid var(--gray-100); text-align: center; }
.sidebar-footer .version { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.sidebar-footer .reading-time { font-size: 11px; color: var(--gray-400); }

/* 主内容区 */
.main-content { margin-left: var(--sidebar-width); padding: 40px 48px; }

/* 移动端菜单 */
.mobile-menu-btn { display: none; position: fixed; top: 16px; left: 16px; width: 44px; height: 44px; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; z-index: 200; }
.hamburger { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 2px; background: var(--gray-700); }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 20px; height: 2px; background: var(--gray-700); left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* 内容区域 */
.content-section { max-width: var(--content-max-width); margin: 0 auto; padding: 60px 0; }
.hero-section { min-height: 60vh; display: flex; align-items: center; gap: 60px; padding-top: 40px; }
.hero-content { flex: 1; }
.hero-badge { display: inline-block; padding: 8px 16px; background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); color: white; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.1; color: var(--gray-900); margin-bottom: 20px; }
.hero-subtitle { font-size: 20px; color: var(--gray-600); max-width: 500px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 36px; font-weight: 800; background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* 浮动卡片 */
.hero-visual { flex: 1; position: relative; height: 400px; }
.floating-cards { position: relative; width: 100%; height: 100%; }
.float-card { position: absolute; background: white; border-radius: var(--radius-lg); padding: 20px 28px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200); transition: transform var(--transition-base); }
.float-card:hover { transform: translateY(-8px); }
.float-icon { font-size: 28px; }
.float-text { font-size: 16px; font-weight: 600; color: var(--gray-800); }
.card-1 { top: 20%; left: 10%; animation: float 6s ease-in-out infinite; }
.card-2 { top: 45%; right: 15%; animation: float 6s ease-in-out infinite 1s; }
.card-3 { bottom: 15%; left: 30%; animation: float 6s ease-in-out infinite 2s; opacity: 0.7; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Header */

.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; padding: 6px 14px; background: var(--gray-100); color: var(--gray-600); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: 40px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.section-subtitle { font-size: 18px; color: var(--gray-500); }

/* 指南卡片网格 */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.guide-card { display: flex; align-items: center; gap: 20px; background: white; border-radius: var(--radius-xl); padding: 28px; border: 1px solid var(--gray-200); text-decoration: none; transition: all var(--transition-base); box-shadow: var(--shadow-sm); }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--primary-300); }
.guide-card.placeholder { opacity: 0.6; cursor: default; }
.guide-card.placeholder:hover { transform: none; }
.guide-icon { font-size: 48px; flex-shrink: 0; }
.guide-content { flex: 1; }
.guide-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.guide-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.guide-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 4px 10px; background: var(--gray-100); color: var(--gray-600); border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; }
.tag.version-tag { background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); color: white; }
.tag.coming-soon { background: var(--accent-600); color: white; }
.guide-arrow { font-size: 24px; color: var(--gray-400); transition: transform var(--transition-fast); }
.guide-card:hover .guide-arrow { transform: translateX(4px); color: var(--primary-600); }

/* 关于区域 */
.about-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.about-card { background: white; border-radius: var(--radius-xl); padding: 32px; border: 1px solid var(--gray-200); text-align: center; }
.about-icon { font-size: 40px; margin-bottom: 16px; }
.about-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.about-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

.cta-section { text-align: center; background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-600) 100%); border-radius: var(--radius-xl); padding: 48px; }
.cta-section h3 { font-size: 24px; font-weight: 700; color: white; margin-bottom: 8px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.8); }

/* 页脚 */
.page-footer { text-align: center; padding: 32px; border-top: 1px solid var(--gray-200); margin-top: 40px; }
.footer-meta { font-size: 13px; color: var(--gray-500); }

/* 响应式 */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 80px 24px 40px; }
    .mobile-menu-btn { display: block; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .about-content { grid-template-columns: 1fr; }
}
