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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.sidebar h3 {
    color: #00ADD8;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #00ADD8;
    padding-bottom: 10px;
}

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

.sidebar ul ul {
    margin-left: 20px;
    margin-top: 5px;
}

.sidebar li {
    margin: 5px 0;
}

.sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar a:hover {
    background: #e3f2fd;
    color: #00ADD8;
}

.sidebar a.active {
    background: #00ADD8;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 173, 216, 0.3);
    transform: translateX(5px);
}

.sidebar .nav-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .nav-toggle {
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    padding: 0 5px;
}

.sidebar .nav-toggle.collapsed {
    transform: rotate(-90deg);
}

.sidebar .nav-submenu {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar .nav-submenu.collapsed {
    max-height: 0;
}

.level-1 {
    margin: 20px 0 10px;
    padding: 0;
    list-style: none;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
}

.content {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #00ADD8;
    margin-bottom: 20px;
    font-size: 2.5em;
    scroll-margin-top: 20px;
}

h2 {
    color: #00ADD8;
    margin: 30px 0 15px;
    font-size: 1.8em;
    scroll-margin-top: 20px;
}

h3 {
    color: #555;
    margin: 25px 0 10px;
    font-size: 1.4em;
    scroll-margin-top: 20px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

/* 代码块容器 */
.code-block {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.code-header {
    background: #e8e8e8;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.code-title {
    color: #666;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', monospace;
}

.code-toggle {
    background: #00ADD8;
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.code-toggle:hover {
    background: #0099cc;
}

.code-toggle .icon {
    transition: transform 0.3s ease;
    font-size: 0.7em;
}

.code-toggle.collapsed .icon {
    transform: rotate(-90deg);
}

.code-content {
    padding: 15px 20px;
    overflow-x: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
}

.code-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    opacity: 0;
}

/* 代码块样式 */
pre {
    background: none;
    color: #333;
    padding: 0;
    border-radius: 0;
    overflow-x: visible;
    margin: 0;
    box-shadow: none;
    border: none;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    color: #333;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.keyword {
    color: #c72424;
    font-weight: 600;
}

.string {
    color: #0a5ca8;
    background: rgba(10, 92, 168, 0.08);
    padding: 1px 3px;
    border-radius: 3px;
}

.function {
    color: #7c3aed;
}

.comment {
    color: #71717a;
    font-style: italic;
    background: rgba(113, 113, 122, 0.08);
    padding: 1px 3px;
    border-radius: 3px;
}

.number {
    color: #0d9488;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table caption {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1em;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tbody tr {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background: #f5f5f5;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

td {
    padding: 12px 15px;
    border-right: 1px solid #e0e0e0;
}

td:last-child {
    border-right: none;
}

/* 信息框样式 */
.example-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.note-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe082 100%);
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.warning-box {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.success-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.info-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-left: 4px solid #00bcd4;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.1);
}

/* 卡片网格 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.topic-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.topic-card h3 {
    color: white;
    margin: 0 0 10px;
}

.topic-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 特性卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #00ADD8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 173, 216, 0.2);
}

.feature-card .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: #00ADD8;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.9em;
}

/* 对比表格 */
.comparison-table {
    margin: 30px 0;
}

.comparison-table thead {
    background: #2d2d2d;
}

.comparison-table thead th {
    background: #2d2d2d;
    color: #d4d4d4;
}

.comparison-table tbody tr:nth-child(odd) {
    background: #f8f8f8;
}

.comparison-table tbody tr:nth-child(even) {
    background: #ffffff;
}

/* 流程图样式 */
.flowchart {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
}

.flowchart-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.flowchart-divider {
    height: 1px;
    background: #ccc;
    margin: 15px 0;
}

.flowchart-node {
    background: white;
    border: 2px solid #00ADD8;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 5px;
    text-align: center;
    font-weight: 600;
    color: #00ADD8;
    display: inline-block;
}

.flowchart-node.primary {
    background: #00ADD8;
    color: white;
}

.flowchart-node.success {
    border-color: #4caf50;
    color: #4caf50;
}

.flowchart-node.warning {
    border-color: #ff9800;
    color: #ff9800;
}

.flowchart-node.danger {
    border-color: #f44336;
    color: #f44336;
}

.flowchart-node.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.flowchart-arrow {
    color: #666;
    font-size: 1.5em;
    margin: 0 5px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.timeline-item.highlight .timeline-marker {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.timeline-content {
    position: absolute;
    left: calc(50% + 40px);
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    border-left: 4px solid #00ADD8;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: auto;
    right: calc(50% + 40px);
}

.timeline-content h4 {
    margin: 0 0 5px;
    color: #333;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* 序列图样式 */
.sequence-diagram {
    background: #1e1e1e;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.sequence-header {
    background: #252526;
    display: flex;
    justify-content: space-around;
    padding: 15px;
    color: #d4d4d4;
    font-weight: 600;
    border-bottom: 1px solid #333;
}

.sequence-body {
    padding: 20px;
}

.sequence-line {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.sequence-actor {
    width: 100px;
    color: #569cd6;
    font-weight: 600;
    text-align: right;
    padding-right: 15px;
}

.sequence-step {
    flex: 1;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.sequence-step.send {
    background: #264f78;
    color: #ce9178;
}

.sequence-step.receive {
    background: #1e3a1e;
    color: #6a9955;
}

.sequence-step.buffer {
    background: #3a3a1e;
    color: #dcdcaa;
    text-align: center;
}

/* 状态图样式 */
.state-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

.state-node {
    background: white;
    border: 2px solid #00ADD8;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    min-width: 100px;
}

.state-node small {
    display: block;
    color: #666;
    font-weight: normal;
    font-size: 0.8em;
    margin-top: 5px;
}

.state-node[data-state="_Gidle"] { border-color: #999; color: #999; }
.state-node[data-state="_Grunnable"] { border-color: #2196F3; color: #2196F3; }
.state-node[data-state="_Grunning"] { border-color: #4caf50; color: #4caf50; }
.state-node[data-state="_Gwaiting"] { border-color: #ff9800; color: #ff9800; }
.state-node[data-state="_Gsyscall"] { border-color: #9c27b0; color: #9c27b0; }
.state-node[data-state="_Gdead"] { border-color: #f44336; color: #f44336; }

.state-arrow {
    color: #666;
    font-size: 1.5em;
}

/* Context 树形结构 */
.context-tree {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Consolas', monospace;
}

.tree-root {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

.tree-branch {
    margin-left: 30px;
    margin-top: 10px;
}

.tree-line {
    color: #666;
    margin-right: 10px;
}

.tree-node {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    margin: 5px 0;
}

/* 类型层级图 */
.type-hierarchy {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.hierarchy-level {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.hierarchy-node {
    background: white;
    border: 2px solid #00ADD8;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

.hierarchy-node.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.hierarchy-arrow {
    color: #666;
    font-size: 1.2em;
}

/* 性能图表 */
.performance-chart {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.perf-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.perf-label {
    width: 120px;
    font-weight: 600;
    color: #333;
}

.perf-bar-container {
    flex: 1;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 15px;
}

.perf-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    min-width: 60px;
    transition: width 0.5s ease;
}

.perf-value {
    width: 120px;
    color: #666;
    font-size: 0.9em;
}

/* GMP 调度模型图 */
.gmp-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.gmp-component {
    background: white;
    border-radius: 10px;
    padding: 20px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gmp-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #00ADD8;
    margin-bottom: 5px;
}

.gmp-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.gmp-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.85em;
    color: #555;
}

.gmp-details li {
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.gmp-details li:last-child {
    border-bottom: none;
}

.gmp-arrow {
    font-size: 2em;
    color: white;
}

/* 介绍文字样式 */
.intro {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

/* 语法高亮增强 */
.code-line {
    display: block;
    line-height: 1.6;
}

.code-line-number {
    display: inline-block;
    width: 40px;
    text-align: right;
    margin-right: 15px;
    color: #858585;
    user-select: none;
}

/* 折叠区域 */
.collapsible {
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.collapsible-header {
    background: #e0e0e0;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.collapsible-header:hover {
    background: #d0d0d0;
}

.collapsible-header .icon {
    transition: transform 0.3s ease;
}

.collapsible.collapsed .collapsible-header .icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    padding: 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 1000px;
}

.collapsible.collapsed .collapsible-content {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

/* 标签样式 */
.tag {
    display: inline-block;
    background: #00ADD8;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    margin: 2px;
}

.tag-success {
    background: #4caf50;
}

.tag-warning {
    background: #ffc107;
    color: #333;
}

.tag-danger {
    background: #f44336;
}

.tag-info {
    background: #2196F3;
}

/* 返回链接 */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #00ADD8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-decoration: underline;
    transform: translateX(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .content {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .topic-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.85em;
    }

    th, td {
        padding: 8px 10px;
    }
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

pre::-webkit-scrollbar {
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: #2d2d2d;
}

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

pre::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }

    .sidebar {
        display: none;
    }

    .container {
        padding: 0;
    }

    .content {
        box-shadow: none;
        padding: 0;
    }

    .code-toggle {
        display: none;
    }

    .code-content {
        max-height: none !important;
    }
}

/* ========== 学习路径样式 ========== */
.learning-path {
    margin: 30px 0;
}

.path-stage {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.path-stage:hover {
    border-color: #00ADD8;
    box-shadow: 0 5px 15px rgba(0, 173, 216, 0.15);
    transform: translateY(-2px);
}

.stage-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stage-icon {
    font-size: 1.5em;
}

.stage-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1em;
    flex: 1;
}

.stage-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

.stage-content {
    padding: 20px;
}

.stage-content p {
    margin-bottom: 15px;
    color: #555;
}

.path-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.path-link {
    background: #e3f2fd;
    color: #00ADD8;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.path-link:hover {
    background: #00ADD8;
    color: white;
}

/* ========== 资源列表样式 ========== */
.resource-list {
    margin: 20px 0;
}

.resource-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.resource-icon {
    font-size: 2em;
}

.resource-info h4 {
    margin: 0 0 5px;
    color: #333;
}

.resource-info p {
    margin: 0;
    color: #666;
}

.resource-info a {
    color: #00ADD8;
    text-decoration: none;
}

.resource-info a:hover {
    text-decoration: underline;
}

/* ========== 导航章节样式 ========== */
.nav-section {
    margin: 15px 0;
}

.nav-section-title {
    color: #00ADD8;
    font-weight: 600;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.sidebar .nav-section .nav-submenu {
    margin-left: 10px;
}

.sidebar .nav-section .nav-submenu li {
    margin: 3px 0;
}

.sidebar .nav-section .nav-submenu a {
    padding: 6px 10px;
    font-size: 0.95em;
}

/* ========== GMP 图增强 ========== */
.gmp-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.gmp-component {
    background: white;
    border-radius: 10px;
    padding: 20px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gmp-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #00ADD8;
    margin-bottom: 5px;
}

.gmp-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.gmp-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.85em;
    color: #555;
}

.gmp-details li {
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.gmp-details li:last-child {
    border-bottom: none;
}

.gmp-arrow {
    font-size: 2em;
    color: white;
}

/* ========== 特性卡片高亮 ========== */
.feature-card.highlight {
    border-color: #f093fb;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.feature-card.highlight h4 {
    color: white;
}

.feature-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-card.highlight .tag {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}