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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.authors {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.4rem;
}

.affiliation {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.affiliation.corresponding {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.affiliation.corresponding a {
    color: #555;
}

.links {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #555;
}

.btn-arxiv {
    background-color: #b31b1b;
}

.btn-arxiv:hover {
    background-color: #8f1515;
}

.btn-hf {
    background-color: #ff9d00;
    color: #1a1a1a;
}

.btn-hf:hover {
    background-color: #e08a00;
}

.btn-hf-dataset {
    background-color: #2d9f3e;
    color: #fff;
}

.btn-hf-dataset:hover {
    background-color: #237a30;
}

.btn .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    margin-right: 0.4em;
}

.abstract {
    max-width: 700px;
    margin-bottom: 3rem;
}

.abstract p {
    text-align: justify;
    font-size: 1rem;
    color: #444;
}

.figures {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

figure {
    margin-bottom: 3rem;
}

figure img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.results {
    max-width: 860px;
    width: 100%;
    margin-bottom: 3rem;
}

.results-summary {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.results h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead tr:first-child th {
    border-top: 2px solid #333;
    padding-top: 0.6rem;
}

thead tr:last-child th {
    border-bottom: 2px solid #333;
    padding-bottom: 0.6rem;
}

th, td {
    padding: 0.45rem 0.75rem;
    text-align: center;
    white-space: nowrap;
}

th:first-child, td:first-child {
    text-align: left;
}

tbody tr:last-child td {
    border-bottom: 2px solid #333;
    padding-bottom: 0.6rem;
}

tr.separator td {
    border-top: 1px solid #ccc;
}

tr.ours-header td {
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
    padding-bottom: 0.2rem;
    text-align: left;
    color: #333;
}

td.indent {
    padding-left: 1.75rem;
}

td.yes {
    color: #2a7a2a;
}

td.no {
    color: #999;
}

.table-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.citation {
    max-width: 700px;
    width: 100%;
    margin-bottom: 3rem;
}

.bibtex-wrapper {
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
}

.bibtex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ececec;
    border-bottom: 1.5px solid #d0d0d0;
    padding: 0.5rem 1rem;
}

.bibtex-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #555;
}

.bibtex {
    background-color: #f9f9f9;
    margin: 0;
    padding: 1.1rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
}

.bibtex code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #222;
}

.copy-btn {
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    font-family: inherit;
    background-color: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
    cursor: pointer;
    color: #444;
    transition: background-color 0.15s, border-color 0.15s;
}

.copy-btn:hover {
    background-color: #e2e2e2;
    border-color: #999;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .abstract p {
        text-align: left;
    }
}
