/* MiDashengLM-Spatial Demo — AF3-style (Bootstrap-like cards & tables) */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    background: #f4f5f7;
}

.page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 16px 96px;
}

.text-center {
    text-align: center;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 24px 0 8px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 21px;
    font-weight: 400;
    color: #495057;
    margin-bottom: 24px;
}

.hero .affiliation {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
}

.hero .links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 6px 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    border: 1px solid #0d6efd;
    border-radius: 20px;
    transition: background 0.15s, color 0.15s;
}

.hero .links a img {
    height: 18px;
    width: auto;
    display: inline-block;
}

.hero .links a:hover {
    background: #0d6efd;
    color: #fff;
}

/* --- Sections --- */
section {
    margin-top: 56px;
}

section > h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

section > .section-desc {
    text-align: center;
    color: #495057;
    max-width: 900px;
    margin: 0 auto 8px;
}

/* White rounded shadow card (like AF3's .shadow .bg-white .rounded) */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.10);
    padding: 40px;
    margin-top: 24px;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p + p {
    margin-top: 12px;
}

/* Highlights list */
.highlights {
    margin: 4px 0 0 20px;
}

.highlights li {
    margin-bottom: 12px;
}

/* Architecture figure */
.figure {
    text-align: center;
}

.arch-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #6c757d;
}

/* --- Demo tables --- */
.demo-section {
    margin-top: 48px;
}

.demo-section > h3 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.demo-section > .demo-desc {
    text-align: center;
    color: #495057;
    max-width: 860px;
    margin: 0 auto;
    font-size: 15px;
}

.demo-table-wrap {
    overflow-x: auto;
}

table.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

table.demo-table th {
    text-align: center;
    font-weight: 700;
    padding: 10px 16px;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

table.demo-table td {
    text-align: left;
    vertical-align: middle;
    padding: 18px 16px;
}

table.demo-table tr + tr td {
    border-top: 1px solid #e9ecef;
}

table.demo-table td.audio-cell {
    text-align: center;
    min-width: 340px;
}

table.demo-table audio {
    width: 330px;
    max-width: 100%;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
}

table.demo-table td.pred-cell {
    min-width: 260px;
}

table.demo-table .mc-answer {
    color: green;
    font-weight: 700;
}

/* --- Chat-style demo rows (long-text sections, like AF3 multi-turn chat) --- */
.chat-table td.chat-cell {
    text-align: left;
    line-height: 1.75;
    padding: 24px 28px;
}

.chat-audio {
    margin-bottom: 12px;
}

.chat-audio audio {
    width: 560px;
    max-width: 100%;
    height: 40px;
}

.chat-label {
    font-weight: 700;
}

.chat-user {
    color: #1a73e8;
}

.chat-gt {
    color: #f9ab00;
}

.chat-model {
    color: #34a853;
}

/* Headphone note */
.headphone-note {
    display: inline-block;
    padding: 10px 22px;
    font-size: 17px;
    font-weight: 700;
    color: #7a4e00;
    background: #fff3cd;
    border: 1px solid #ffe08a;
    border-radius: 24px;
}

/* --- Citation --- */
.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 18px 20px;
    font-size: 13.5px;
    line-height: 1.6;
    overflow-x: auto;
    font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.license {
    margin-top: 16px;
    font-size: 14px;
    color: #6c757d;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 27px;
    }
    .hero .subtitle {
        font-size: 17px;
    }
    .card {
        padding: 24px 18px;
    }
    section > h2 {
        font-size: 23px;
    }
}
