/* ========================================
   MiMo-V2-Flash Release Page
   Clean Article Style
   ======================================== */

:root {
    --bg-primary: #FAF7F5;
    --bg-secondary: #F5F0EB;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-tertiary: #888;
    --accent: #FF6700;
    --border: rgba(0, 0, 0, 0.1);
    --font-serif: "PT Serif", Georgia, serif;
    --font-title: "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-serif);
    font-weight: 450;
    font-optical-sizing: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* Article Container */
.article {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    height: 18px;
    width: auto;
    opacity: 0.75;
}

/* Hero Date */
.hero-date {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

/* Release Tag */
.release-tag {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

/* Hero Title */
.hero-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Hero Visual */
.hero-visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 280;
    margin: 2.5rem 0 0;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 550;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.75rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.375rem;
    font-weight: 350;
    color: var(--text-primary);
    line-height: 1.6;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Lists */
ul, ol {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

.metrics {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.metrics li {
    margin: 0;
}

.metrics strong {
    font-size: 1.25rem;
    color: var(--accent);
    font-feature-settings: "tnum";
}

.specs {
    list-style: none;
    padding: 0;
}

.specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.specs strong {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9375rem;
}

th, td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

td {
    color: var(--text-secondary);
}

td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

td strong {
    color: var(--accent);
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

a:hover {
    color: var(--accent);
}

/* Highlight Link - underline expands to background on hover */
.highlight-link {
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    background: linear-gradient(to top, var(--accent) 0%, var(--accent) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.highlight-link:hover {
    background-size: 100% 100%;
    color: white;
}

/* Highlight text - underline only, no link */
.highlight-text {
    color: var(--text-primary);
    font-weight: 500;
    background: linear-gradient(to top, var(--accent) 0%, var(--accent) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.links {
    display: flex;
    gap: 1.5rem;
}

.links a {
    font-weight: 500;
}

/* Benchmarks / Charts */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.chart-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-family: var(--font-title);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.chart-subtitle {
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0 0 1rem 0;
    text-align: center;
}

.chart-footnote {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin: 0.75rem 0 0 0;
    text-align: center;
}

.chart-footnote a {
    color: var(--text-tertiary);
    text-decoration: underline;
}

.chart-footnote a:hover {
    color: var(--accent);
}

.chart-container-wide {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}


/* Chart Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-title);
    font-size: 0.65rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-label {
    color: var(--text-secondary);
}

.legend-label-mimo {
    color: var(--accent);
    font-weight: 600;
}

.legend-tag {
    font-size: 0.625rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legend-tag-open {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.legend-tag-closed {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-tertiary);
}

.chart-footnotes {
    margin-top: 0.75rem;
    padding-left: 0.5rem;
}

.chart-footnotes p {
    font-family: var(--font-title);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

/* MTP Architecture Diagram - Comparison Layout */
.mtp-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* MTP Split Layout */
.mtp-split {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    background: #fff;
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.mtp-panel-left {
    flex: 1.4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mtp-panel-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-start;
}

.mtp-panel-right .mtp-label {
    align-self: flex-start;
}

.mtp-panel-right .mtp-model {
    width: 100%;
}

.mtp-divider {
    width: 1px;
    background: var(--border);
    border-left: 1px dashed var(--border);
    align-self: stretch;
}

.mtp-label {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.mtp-hint {
    font-family: var(--font-title);
    font-size: 0.6rem;
    font-style: italic;
    color: var(--text-tertiary);
    opacity: 0.8;
}

.mtp-input-label-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0.4rem;
    align-items: baseline;
}

.mtp-row {
    display: grid;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
}

.mtp-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mtp-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mtp-row-1 {
    grid-template-columns: minmax(0, 1fr);
}

.mtp-arrows-1 {
    grid-template-columns: minmax(0, 1fr);
}

.mtp-arrows {
    display: grid;
    gap: 0.4rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1;
    width: 100%;
}

.mtp-arrows-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mtp-arrows-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mtp-model {
    font-family: var(--font-title);
    font-size: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--text-secondary);
    text-align: center;
}

.mtp-model-row {
    align-items: center;
}

.mtp-model-mtp {
    background: rgba(255, 103, 0, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.mtp-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    overflow: hidden;
}

.mtp-result .mtp-token {
    width: 100%;
    box-sizing: border-box;
}

.mtp-result-key {
    position: relative;
}

.mtp-mtp-box {
    font-family: var(--font-title);
    font-size: 0.75rem;
    background: rgba(255, 103, 0, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    min-width: 0;
}

.mtp-right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.mtp-token-small {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
}

.mtp-arrows-single {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    line-height: 1;
}

.mtp-mtp-connected {
    display: flex;
    align-items: center;
    gap: 0;
}

.mtp-mtp-connected .mtp-mtp-box {
    flex: 1;
}

.mtp-mtp-line {
    width: 12px;
    height: 2px;
    background: var(--text-tertiary);
    flex-shrink: 0;
}


.mtp-arrow-down {
    color: var(--text-tertiary);
    font-size: 1rem;
    line-height: 1;
}

.mtp-arrow-orange {
    color: var(--accent);
}

.mtp-model-box {
    font-family: var(--font-title);
    font-size: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.mtp-label-small {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mtp-caption {
    font-family: var(--font-title);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

/* Token styles */
.mtp-token {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.35rem 0.4rem;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mtp-input-row .mtp-token,
.mtp-verify-item .mtp-token {
    width: 100%;
    box-sizing: border-box;
}

.mtp-token-white {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.mtp-token-blue {
    background: #e8f4fc;
    border: 1px solid #64b5f6;
    color: #1565c0;
}

.mtp-token-draft {
    background: #fff8e1;
    border: 1px solid #ffb74d;
    color: #e65100;
}

.mtp-token-accept {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

.mtp-token-reject {
    background: #ffebee;
    border: 1px solid #e57373;
    color: #c62828;
}

.mtp-token-abandon {
    background: #ffebee;
    border: 1px solid #e57373;
    color: #c62828;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Complex flow (with MTP) */
.mtp-complex-flow {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mtp-section-label {
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.02em;
    text-align: left;
    margin-left: -0.25rem;
    margin-top: -0.25rem;
}

.mtp-input-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mtp-draft-hint {
    font-family: var(--font-title);
    font-size: 0.6rem;
    color: var(--text-tertiary);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
}

.mtp-draft-label {
    font-family: var(--font-title);
    font-size: 0.6rem;
    color: #e65100;
    text-align: center;
    font-style: italic;
}

/* MTP Cascade Layout */
.mtp-cascade {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mtp-cascade-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-start;
}

.mtp-cascade-arrow {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mtp-model-small {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.mtp-token-draft-dashed {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.35rem 0.4rem;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    background: rgba(255, 248, 225, 0.5);
    border: 1.5px dashed #ff9800;
    color: #e65100;
}

.mtp-input-label-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0.5rem;
    align-items: baseline;
}

.mtp-arrows-down-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
}

.mtp-model-wide {
    font-family: var(--font-title);
    font-size: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    text-align: center;
}

.mtp-verify-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mtp-verify-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.mtp-status {
    font-family: var(--font-title);
    font-size: 0.6rem;
    font-weight: 500;
    text-align: center;
}

.mtp-status-accept {
    color: #2e7d32;
}

.mtp-status-reject {
    color: #c62828;
}

.mtp-status-regenerate {
    color: #1565c0;
}

.mtp-status-abandon {
    color: #c62828;
}

.mtp-status-new {
    color: #1565c0;
    font-weight: 600;
}

/* MTP Generation Section */
.mtp-generate-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    position: relative;
}

.mtp-model-action {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.mtp-token-corrected {
    background: #e3f2fd;
    border: 1px solid #42a5f5;
    color: #1565c0;
}

.mtp-generate-flow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mtp-generate-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.mtp-generate-arrow {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
}

.mtp-generate-mtp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mtp-layer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mtp-layer {
    font-family: var(--font-title);
    font-size: 0.65rem;
    background: rgba(255, 103, 0, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    text-align: center;
    font-weight: 500;
}

.mtp-generate-drafts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mtp-generate-label {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}


.mtp-heads-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.mtp-head-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.mtp-head-box {
    font-family: var(--font-title);
    font-size: 0.65rem;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    color: var(--text-secondary);
}

.mtp-head-box.mtp-head-orange {
    background: rgba(255, 103, 0, 0.08);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 700px) {
    .mtp-container {
        padding: 1rem;
    }

    .mtp-split {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .mtp-divider {
        width: 100%;
        height: 1px;
        border-left: none;
        border-top: 1px dashed var(--border);
    }

    .mtp-panel-left,
    .mtp-panel-right {
        flex: none;
        width: 100%;
    }

    .mtp-comparison {
        grid-template-columns: 1fr;
    }

    .mtp-panel-simple {
        display: none;
    }

    .mtp-token {
        font-size: 0.6rem;
        padding: 0.3rem 0.25rem;
    }

    .mtp-mtp-box {
        font-size: 0.6rem;
        padding: 0.35rem 0.25rem;
    }

    .mtp-status {
        font-size: 0.55rem;
    }
}

@media (max-width: 700px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-legend {
        gap: 0.5rem 0.75rem;
    }

    .legend-item {
        font-size: 0.55rem;
    }

    .legend-color {
        width: 10px;
        height: 10px;
    }

    .legend-tag {
        font-size: 0.5rem;
        padding: 0.05rem 0.25rem;
    }
}

@media (max-width: 500px) {
    .chart-legend {
        gap: 0.4rem 0.5rem;
    }

    .legend-item {
        font-size: 0.5rem;
    }

    .legend-color {
        width: 8px;
        height: 8px;
    }

    .legend-tag {
        font-size: 0.45rem;
    }
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .article {
        padding: 2rem 1rem 4rem;
    }

    h1 {
        font-size: 2rem;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Platform Availability Links */
.availability-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.availability-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.platform-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 103, 0, 0.04);
}

.platform-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.platform-btn:hover .platform-icon {
    opacity: 1;
}

@media (max-width: 600px) {
    .availability-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .platform-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .platform-icon {
        width: 14px;
        height: 14px;
    }
}

/* ========================================
   Case Preview Section
   ======================================== */
.case-preview-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.case-preview-container .chart-title {
    margin-bottom: 1rem;
}

.case-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.case-tab {
    font-family: var(--font-title);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.case-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.case-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.case-prompt-display {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.case-prompt-display:hover {
    opacity: 0.8;
}

.prompt-label {
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    line-height: 1.6;
}

.prompt-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.prompt-chevron {
    transition: transform 0.2s ease;
}

.case-prompt-display.expanded .prompt-chevron {
    transform: rotate(180deg);
}

.prompt-text {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.case-prompt-display.expanded .prompt-text {
    white-space: pre-wrap;
    word-break: break-word;
    overflow: visible;
}

.case-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.case-iframe-scaler {
    width: 1600px;
    height: 1000px;
    transform-origin: top left;
    transform: scale(var(--iframe-scale, 0.5));
}

.case-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Fullscreen button */
.case-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.case-fullscreen-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Fullscreen mode */
.case-iframe-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
    aspect-ratio: unset;
}

.case-iframe-wrapper.fullscreen .case-iframe-scaler {
    width: 100%;
    height: 100%;
    transform: none;
    position: static;
}

.case-iframe-wrapper.fullscreen .case-fullscreen-btn {
    top: 16px;
    right: 16px;
}

/* Responsive for case preview */
@media (max-width: 600px) {
    .case-preview-container {
        padding: 1rem;
    }

    .case-prompt-display {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ========================================
   Evaluation Table
   ======================================== */
.evaluation-section {
    margin-top: 3rem;
}

.evaluation-table-container {
    margin: 1.5rem -4rem;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.evaluation-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-family: var(--font-title);
    font-size: 0.8125rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.evaluation-table thead {
    background: var(--bg-secondary);
}

.evaluation-table .header-row th {
    padding: 0.8rem 0.75rem 0;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
    text-align: center;
    vertical-align: bottom;
}

.evaluation-table .header-row .benchmark-col {
    border-bottom: 2px solid var(--border);
    vertical-align: middle;
}

.evaluation-table .subheader-row th {
    padding: 0 0.75rem 0.8rem;
    font-weight: 400;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 2px solid var(--border);
    text-align: center;
}

.evaluation-table .benchmark-col {
    text-align: left;
    min-width: 180px;
    padding-left: 1.25rem;
}

.evaluation-table .model-col {
    min-width: 85px;
}

.evaluation-table .mimo-col {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

.evaluation-table .category-row {
    background: var(--bg-secondary);
}

.evaluation-table .category-cell {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.evaluation-table .data-row {
    transition: background-color 0.15s ease;
}

.evaluation-table .data-row:hover {
    background: rgba(255, 103, 0, 0.03);
}

.evaluation-table .data-row td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.evaluation-table .benchmark-cell {
    font-weight: 450;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem 0.5rem 1.75rem;
    text-align: left;
}

.evaluation-table .score-cell {
    text-align: center;
    padding: 0.5rem 0.5rem;
    color: var(--text-tertiary);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.evaluation-table .mimo-score {
    background: rgba(255, 103, 0, 0.04);
    color: var(--accent);
    font-weight: 600;
}

.evaluation-table .best-score {
    font-weight: 700;
    color: var(--text-primary);
}

.evaluation-table .mimo-score.best-score {
    color: var(--accent);
}

/* Table footnotes */
.table-footnotes {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    min-width: 800px;
}

.table-footnotes p {
    font-family: var(--font-title);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

/* Responsive for evaluation table */
@media (max-width: 600px) {
    .evaluation-table-container {
        margin: 1.5rem 0;
        padding: 0;
    }

    .evaluation-table {
        font-size: 0.75rem;
    }

    .evaluation-table .header-row th,
    .evaluation-table .subheader-row th {
        padding: 0.5rem 0.375rem;
        font-size: 0.6875rem;
    }

    .evaluation-table .benchmark-cell {
        padding-left: 1rem;
    }

    .evaluation-table .category-cell {
        padding-left: 1rem;
    }
}

/* ========================================
   Meet MiMo - Chat Showcase Section
   ======================================== */
.chat-showcase-container {
    margin: 2rem 0;
}

.chat-showcase-container .chart-title {
    margin-bottom: 1rem;
    text-align: left;
}

.chat-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-link:hover {
    color: inherit;
}

.chat-link .external-icon {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.chat-link:hover .external-icon {
    transform: translate(1px, -1px);
}

.chat-case-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chat-case-tab {
    font-family: var(--font-title);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.chat-case-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chat-case-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Chat Conversation */
.chat-conversation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for chat conversation */
.chat-conversation::-webkit-scrollbar {
    width: 6px;
}

.chat-conversation::-webkit-scrollbar-track {
    background: transparent;
}

.chat-conversation::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.chat-conversation::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Chat Message Bubbles */
.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 90%;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User message - right aligned */
.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Assistant message - left aligned */
.chat-message.assistant {
    align-self: flex-start;
}

/* Avatar */
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-message.user .chat-avatar {
    background: #e8e8e8;
    color: #555;
}

.chat-message.assistant .chat-avatar {
    background: var(--accent);
    color: #fff;
}

/* Message Bubble */
.chat-bubble {
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.chat-message.user .chat-bubble {
    background: #f0f0f0;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .chat-bubble {
    background: var(--bg-secondary);
    border-bottom-left-radius: 4px;
}

/* Code blocks in chat */
.chat-bubble pre {
    background: #1a1a1a;
    color: #e8e8e8;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.chat-bubble code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
}

.chat-bubble pre code {
    background: transparent;
    padding: 0;
}

/* Lists in chat */
.chat-bubble ul, .chat-bubble ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    color: inherit;
}

.chat-bubble li {
    margin-bottom: 0.35rem;
}

/* Bold text */
.chat-bubble strong {
    font-weight: 600;
}

/* Headings in chat */
.chat-bubble h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.chat-bubble h4:first-child {
    margin-top: 0;
}

/* Paragraphs in chat */
.chat-bubble p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

/* Emphasis */
.chat-bubble em {
    font-style: italic;
}

/* Blockquote in chat */
.chat-bubble blockquote {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--accent);
    background: rgba(255, 103, 0, 0.05);
    border-radius: 0 4px 4px 0;
}

.chat-bubble blockquote p {
    margin: 0.25rem 0;
}

.chat-bubble blockquote p:first-child {
    margin-top: 0;
}

.chat-bubble blockquote p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .chat-message {
        max-width: 95%;
    }

    .chat-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.6875rem;
    }

    .chat-bubble {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   MOPD Figure
   ======================================== */
figure.mopd-figure {
    margin: 1.5rem 0;
    text-align: center;
}

figure.mopd-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figure.mopd-figure figcaption {
    font-family: var(--font-title);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}

/* ========================================
   Free Note (subtle highlight)
   ======================================== */
.free-note {
    font-family: var(--font-title);
    font-size: 0.8125rem;
    color: var(--accent);
    margin-left: 0.25rem;
}
