/* 代码美化插件样式 */
.pretty-code-container {
    position: relative;
    margin: 20px 0;
    border-radius: 6px;
    background: #2d2d2d;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pretty-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #3d3d3d;
    color: #ccc;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-bottom: 1px solid #444;
}

.pretty-code-language {
    font-weight: 500;
}

.pretty-code-copy-btn {
    background: #555;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pretty-code-copy-btn:hover {
    background: #666;
}

.pretty-code-copy-btn:active {
    transform: scale(0.98);
}

.pretty-code-copy-btn.copied {
    background: #4caf50;
}

.pretty-code-body {
    display: flex;
    overflow-x: auto;
}

.pretty-code-line-numbers {
    padding: 12px 8px 12px 16px;
    background: #333;
    color: #888;
    text-align: right;
    user-select: none;
    border-right: 1px solid #444;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.pretty-code-content {
    flex: 1;
    padding: 12px 16px 12px 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 15px;
    line-height: 1.5;
    color: #f8f8f2;
    white-space: pre;
}

/* 语法高亮颜色 */
.pretty-code-content .keyword {
    color: #ff79c6;
    font-weight: bold;
}

.pretty-code-content .string {
    color: #f1fa8c;
}

.pretty-code-content .comment {
    color: #6272a4;
    font-style: italic;
}

.pretty-code-content .function {
    color: #50fa7b;
}

.pretty-code-content .number {
    color: #bd93f9;
}

.pretty-code-content .operator {
    color: #ff79c6;
}

.pretty-code-content .tag {
    color: #ff79c6;
}

.pretty-code-content .attribute {
    color: #50fa7b;
}

.pretty-code-content .value {
    color: #f1fa8c;
}

.pretty-code-content .selector {
    color: #ff79c6;
}

.pretty-code-content .property {
    color: #66d9ef;
}
.pretty-code-content .decorator {
    color: #ff79c6;
    font-weight: bold;
}

.pretty-code-content .class {
    color: #50fa7b;
    font-weight: bold;
}
