/* General content container */
.model-card .w-full {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.model-card .style_root {
    margin: 0 auto;
}

/* Headings */
.model-card h1 {
    font-size: 34px; /* 调整 h1 为 34px */
    line-height: 78px;
    color: #5dade2; /* Light blue */
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.model-card h2 {
    font-size: 28px; /* 调整 h2 为 28px */
    line-height: 56px;
    color: #5dade2; /* Light blue */
    margin-bottom: 12px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.model-card h3 {
    font-size: 24px; /* 调整 h3 为 24px */
    line-height: 48px;
    color: #5dade2; /* Light blue */
    margin-bottom: 10px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

/* Paragraphs */
.model-card p {
    margin-bottom: 15px;
    color: #d3d3d3;
}

/* Strong emphasis */
.model-card strong {
    color: #76d7c4; /* Soft green */
    font-weight: bold;
}

/* Anchor links */
.model-card a {
    color: #1e90ff; /* Bright blue */
    text-decoration: none;
    transition: color 0.3s;
}

.model-card a:hover {
    color: #87cefa; /* Lighter blue on hover */
    text-decoration: underline;
}

/* Tables */
.model-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.model-card th,
.model-card td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

.model-card th {
    background-color: #333;
    color: #5dade2; /* Light blue */
    font-weight: bold;
}

.model-card td {
    color: #d3d3d3;
}

/* Lists */
.model-card ul {
    margin-left: 20px;
    list-style-type: disc;
    color: #d3d3d3;
}

.model-card ul li {
    margin-bottom: 10px;
}

/* Code blocks */
.model-card code {
    font-family: 'Courier New', monospace;
    background-color: #333;
    color: #76d7c4; /* Soft green */
    padding: 4px 6px;
    border-radius: 4px;
}

/* Highlights */
.model-card .highlight {
    background-color: #444;
    padding: 0 5px;
    border-radius: 3px;
    color: #5dade2; /* Light blue */
}

/* Custom styling for metrics */
.model-card .metrics {
    font-size: 1.1em;
    color: #d3d3d3;
    margin-top: 10px;
}

/* Buttons (for code copy action) */
.model-card button {
    font-size: 14px;
    padding: 6px 12px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.model-card button:hover {
    background-color: #444;
}

/* General preformatted block styling */
.model-card pre {
    background-color: #2d2d2d; /* 深灰背景 */
    padding: 15px;
    border-radius: 8px;
    color: #d3d3d3; /* 浅灰色文字 */
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 轻微的阴影 */
}




/* General preformatted block styling */
.model-card pre {
    background-color: #2d2d2d; /* 深灰背景 */
    padding: 15px;
    border-radius: 8px;
    color: #d3d3d3; /* 浅灰色文字 */
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Code inside pre blocks */
.model-card pre code {
    display: block;
    padding: 10px;
    color: #d3d3d3; /* 默认灰色文字 */
    background-color: transparent;
    font-size: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Keyword highlighting */
.model-card pre code .token.keyword {
    color: #f39c12; /* 黄色 */
    font-weight: bold;
    background-color: rgba(243, 156, 18, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* String highlighting */
.model-card pre code .token.string {
    color: #76d7c4; /* 绿色 */
    background-color: rgba(118, 215, 196, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* Comment highlighting */
.model-card pre code .token.comment {
    color: #7f8c8d; /* 深灰色 */
    font-style: italic;
    background-color: rgba(127, 140, 141, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* Function highlighting */
.model-card pre code .token.function {
    color: #3498db; /* 蓝色 */
    background-color: rgba(52, 152, 219, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
    font-weight: bold; /* 加粗 */
}

/* Variable highlighting */
.model-card pre code .token.variable {
    color: #e74c3c; /* 红色 */
    background-color: rgba(231, 76, 60, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* Number highlighting */
.model-card pre code .token.number {
    color: #9b59b6; /* 紫色 */
    background-color: rgba(155, 89, 182, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* Operator highlighting */
.model-card pre code .token.operator {
    color: #e74c3c; /* 红色 */
    font-weight: bold;
}

/* Boolean highlighting */
.model-card pre code .token.boolean {
    color: #f1c40f; /* 黄色 */
    background-color: rgba(241, 196, 15, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* Null highlighting */
.model-card pre code .token.null {
    color: #95a5a6; /* 灰色 */
    background-color: rgba(149, 165, 166, 0.1); /* 轻微的背景色 */
    border-radius: 4px;
    padding: 0 4px;
}

/* Adding line numbers with a lighter shade */
.model-card pre code::before {
    content: attr(data-line-number);
    position: absolute;
    left: -50px;
    top: 0;
    font-size: 12px;
    color: #7f8c8d;
    background-color: #333;
    padding: 2px 5px;
    border-radius: 3px;
    width: 40px;
    text-align: center;
    user-select: none;
}

/* Scrollbar styling for better visibility */
.model-card pre::-webkit-scrollbar {
    width: 8px;
}

.model-card pre::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
}

.model-card pre::-webkit-scrollbar-track {
    background-color: #2d2d2d;
}

