/* 统一配色方案 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
}

.sidebar-logo i {
    font-size: 20px;
}

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

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

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 8px;
}

.nav-section-title i {
    font-size: 12px;
}

.nav-tree {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-tree-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-tree-link:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.nav-tree-link.active {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--primary);
    font-weight: 500;
}

.nav-tree-link i:first-child {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.nav-count {
    margin-left: auto;
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.nav-tree-link.active .nav-count {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.nav-count.new {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-link:hover {
    color: var(--primary);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-light);
    min-height: 100vh;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px;
}

/* 页面标题 */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 内容区块 */
.section {
    margin-bottom: 48px;
}

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

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

/* 成长路径时间线 */
.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roadmap-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.roadmap-phase {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-gray);
    padding: 6px 12px;
    border-radius: var(--radius);
    text-align: center;
    height: fit-content;
}

.roadmap-content h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.roadmap-duration {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.roadmap-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.skill-tag {
    padding: 4px 12px;
    background: var(--bg-gray);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
}

.roadmap-tasks h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.roadmap-tasks ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.roadmap-tasks li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.roadmap-tasks li::before {
    content: '•';
    color: var(--primary);
}

/* 能力卡片 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
}

.skill-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.skill-card > p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.skill-tags span {
    padding: 3px 8px;
    background: var(--bg-gray);
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-muted);
}

/* AI 区块 */
.ai-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
}

.ai-section .section-title {
    color: white;
}

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

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ai-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: white;
}

.ai-card > p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 12px;
}

.ai-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ai-topics span {
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 11px;
    color: #a5b4fc;
}

/* 工具箱 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}

.tool-card h3 {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-card h3 i {
    color: var(--primary);
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.tool-item h4 {
    font-size: 13px;
    margin-bottom: 2px;
}

.tool-item p {
    font-size: 12px;
    color: var(--text-muted);
}

.tool-level {
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

/* 技巧卡片 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.tip-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 12px;
}

.tip-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.tip-card > p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.tip-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-actions span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tip-actions i {
    color: var(--success);
}

/* 案例卡片 */
.cases-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

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

.case-tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.case-tag.success {
    background: #d1fae5;
    color: #059669;
}

.case-tag.warning {
    background: #fef3c7;
    color: #d97706;
}

.case-tag.info {
    background: #dbeafe;
    color: #2563eb;
}

.case-company {
    color: var(--text-muted);
    font-size: 13px;
}

.case-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.case-summary {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.case-highlights {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

.case-content {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.case-section {
    margin-bottom: 16px;
}

.case-section h5 {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 6px;
}

.case-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.case-section ul {
    padding-left: 20px;
}

.case-section li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.case-takeaway {
    background: var(--bg-gray);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-top: 16px;
    border-left: 3px solid var(--primary);
}

.takeaway-label {
    font-weight: 600;
    color: var(--primary);
    margin-right: 6px;
}

.case-takeaway span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-wrapper {
        padding: 20px;
    }
    
    .roadmap-item {
        grid-template-columns: 1fr;
    }
    
    .roadmap-tasks ul {
        grid-template-columns: 1fr;
    }
}
