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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding-left: 24px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.container {
    display: flex;
    min-height: calc(100vh - 60px);
    padding-top: 60px;
}

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 240px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding-top: 16px;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 4px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: background-color 0.2s;
}

.nav-group-header:hover {
    background-color: #f5f5f5;
}

.nav-group-icon {
    font-size: 10px;
    color: #999;
    margin-right: 8px;
    transition: transform 0.2s;
}

.nav-group-header.active .nav-group-icon {
    transform: rotate(90deg);
}

.nav-group-title {
    font-weight: 500;
}

.nav-group-content {
    background-color: #ffffff;
}

.nav-sub-item {
    display: block;
    padding: 8px 20px 8px 40px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-sub-item:hover {
    background-color: #f0f0f0;
}

.nav-sub-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.nav-sub-group {
    margin-bottom: 2px;
}

.nav-sub-group-header {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 40px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: background-color 0.2s;
}

.nav-sub-group-header:hover {
    background-color: #f0f0f0;
}

.nav-sub-group-icon {
    font-size: 8px;
    color: #bbb;
    margin-right: 6px;
    transition: transform 0.2s;
}

.nav-sub-group-header.active .nav-sub-group-icon {
    transform: rotate(90deg);
}

.nav-sub-group-title {
    font-weight: 500;
}

.nav-sub-group-content {
    background-color: #ffffff;
}

.nav-sub-sub-item {
    display: block;
    padding: 8px 20px 8px 60px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-sub-sub-item:hover {
    background-color: #e8e8e8;
}

.nav-sub-sub-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.nav-item {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

.nav-item.active {
    background-color: #e6f7ff;
    color: #1890ff;
    border-left: 3px solid #1890ff;
}

.content {
    flex: 1;
    margin-left: 240px;
    margin-right: 240px;
    padding: 32px;
    background-color: #ffffff;
    min-height: calc(100vh - 60px);
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.content-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.section-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

.value-card {
    background-color: #fafafa;
    padding: 20px;
    margin-top: 16px;
}

.value-title {
    font-size: 14px;
    font-weight: 600;
    color: #fa8c16;
    margin-bottom: 16px;
}

.value-list {
    list-style: none;
    padding-left: 0;
}

.value-item {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.value-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1890ff;
}

.ability-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.ability-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.ability-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ability-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e8e8e8;
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: #fff7e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.card-command {
    background-color: #f6f6f6;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
    overflow-x: auto;
}

.card-list {
    list-style: none;
    padding-left: 0;
}

.card-item {
    font-size: 13px;
    color: #666;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.card-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1890ff;
}

.atom-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.atom-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    border: 1px solid #e8e8e8;
}

.atom-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background-color: #fff7e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fa8c16;
}

.atom-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.atom-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.atom-example {
    background-color: #fafafa;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    color: #999;
}

.installation-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.install-badge {
    background-color: #fa8c16;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.install-badge.cli {
    background-color: #f5f5f5;
    color: #666;
}

.install-content {
    flex: 1;
}

.install-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.install-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.code-block {
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.6;
}

.install-link {
    color: #fa8c16;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.install-link:hover {
    text-decoration: underline;
}

.sub-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.sub-nav-item {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.sub-nav-item:hover {
    color: #1890ff;
}

.sub-nav-item.active {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
    font-weight: 500;
}

.sub-section {
    margin-top: 16px;
}

.step-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: #fa8c16;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-code {
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
}

.step-code code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #e0e0e0;
}

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

.failure-card {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.failure-title {
    font-size: 16px;
    font-weight: 600;
    color: #fa8c16;
    margin-bottom: 8px;
}

.failure-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.failure-code {
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
}

.failure-code code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.8;
}

.terminal-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.terminal-icon {
    display: flex;
    gap: 6px;
}

.terminal-icon::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
    display: inline-block;
}

.terminal-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffbd2e;
    display: inline-block;
}

.terminal-path {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #e0e0e0;
}

.terminal-body {
    padding: 16px;
}

.terminal-line {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #d4d4d4;
    line-height: 1.6;
    white-space: pre;
}

.terminal-label {
    color: #808080;
    padding: 0 8px;
}

.terminal-label.active {
    color: #569cd6;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.terminal-label.error {
    color: #f14c4c;
}

.terminal-highlight {
    color: #4ec9b0;
}

.terminal-selected {
    color: #ffffff;
    background-color: #007acc;
    padding: 0 4px;
    border-radius: 2px;
}

.terminal-dim {
    color: #666666;
}

.terminal-success {
    color: #6a9955;
}

.auto-update-card {
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.auto-update-title {
    font-size: 16px;
    font-weight: 600;
    color: #52c41a;
    margin-bottom: 8px;
}

.auto-update-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.flow-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

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

.flow-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.flow-sub-section {
    margin-bottom: 20px;
}

.flow-sub-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.flow-list {
    list-style-type: disc;
    padding-left: 24px;
    margin: 0;
}

.flow-item {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

.flow-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.install-command {
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 12px 16px;
    padding-right: 50px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #333;
    margin: 8px 0;
    overflow-x: auto;
    position: relative;
}

.copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10;
}

.copy-btn:hover {
    opacity: 1;
    background-color: #e8e8e8;
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
}

.copy-btn:hover svg {
    fill: #333;
}

.copy-btn.copied svg {
    fill: #52c41a;
}

.install-command pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.install-command code {
    display: block;
    line-height: 1.6;
}

.toc-sidebar {
    position: fixed;
    right: 0;
    top: 60px;
    bottom: 0;
    width: 240px;
    background-color: #ffffff;
    border-left: 1px solid #e8e8e8;
    padding: 20px 16px;
    overflow-y: auto;
    z-index: 99;
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

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

.toc-item {
    margin-bottom: 4px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.toc-link:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

.toc-link.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

.toc-sub-link {
    display: block;
    padding: 6px 12px 6px 32px;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.toc-sub-link:hover {
    background-color: #f5f5f5;
    color: #1890ff;
}

.toc-sub-link.active {
    background-color: #e6f7ff;
    color: #1890ff;
}