:root {
    --primary-color: #2f7d4f;
    --primary-hover: #256840;
    --accent-color: #d97706;
    --text-color: #1f2933;
    --text-light: #637083;
    --bg-color: #ffffff;
    --bg-secondary: #f6f8fb;
    --bg-soft: #eef7f1;
    --border-color: #dde5ee;
    --table-head: #243447;
    --success-color: #159957;
    --max-width: 980px;
    --wide-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.68;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

.container {
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 0 22px;
}

.container.wide {
    max-width: var(--wide-width);
}

h1,
h2,
h3 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.25;
}

.header {
    background: linear-gradient(180deg, #f5faf7 0%, #ffffff 100%);
    padding: 58px 0 42px;
    text-align: center;
}

.title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
    margin: 0 auto 14px;
    max-width: 1120px;
}

.venue {
    color: var(--text-light);
    font-size: 1.3rem;
    margin: 8px 0 22px;
}

.venue-abbr {
    color: var(--primary-color);
    font-weight: 700;
}

.authors {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.author {
    white-space: nowrap;
}

.affiliations {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.affiliation {
    display: inline-block;
    margin: 0 10px 4px;
}

.author-note {
    color: var(--text-light);
    font-size: 0.86rem;
    margin-bottom: 26px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    align-items: center;
    background: var(--text-color);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--primary-hover);
    text-decoration: none;
    transform: translateY(-1px);
}

section {
    padding: 50px 0;
}

section:nth-of-type(even) {
    background: var(--bg-secondary);
}

section h2 {
    font-size: 1.85rem;
    margin-bottom: 24px;
    text-align: center;
}

section h3 {
    font-size: 1.28rem;
    margin: 34px 0 14px;
}

.teaser {
    padding-top: 34px;
}

.teaser-img,
.method-img,
.platform-img,
.figure-grid img,
.training-curves img {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(31, 41, 51, 0.08);
    width: 100%;
}

.caption,
figcaption,
.table-subtitle {
    color: var(--text-light);
    font-size: 0.92rem;
}

.caption {
    margin: 14px auto 0;
    max-width: 980px;
    text-align: center;
}

.video-wrapper {
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(31, 41, 51, 0.1);
    margin: 0 auto;
    max-width: 980px;
    overflow: hidden;
}

.video-wrapper video {
    display: block;
    width: 100%;
}

.abstract p {
    margin-bottom: 15px;
    text-align: justify;
}

.components {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    margin: 28px 0;
}

.components.three {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.component-card,
.achievement-card,
.real-world-info > div,
.inference-info,
.bibtex {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.component-card {
    padding: 22px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.component-card:hover,
.achievement-card:hover {
    box-shadow: 0 4px 18px rgba(31, 41, 51, 0.1);
    transform: translateY(-2px);
}

.component-card h3 {
    align-items: center;
    color: var(--primary-color);
    display: flex;
    font-size: 1.05rem;
    gap: 10px;
    margin: 0 0 10px;
}

.component-card p,
.inference-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.method-figure,
.platform-figure {
    margin: 28px 0;
}

.inference-info {
    margin-top: 28px;
    padding: 24px;
}

.inference-info h3 {
    margin-top: 0;
}

.achievements {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 10px 0 30px;
}

.achievement-card {
    background: linear-gradient(135deg, #eef7f1 0%, #fff8ed 100%);
    padding: 24px 18px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.achievement-number {
    color: var(--primary-color);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.1;
}

.achievement-label {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 10px 0 4px;
}

.achievement-note {
    color: var(--text-light);
    font-size: 0.82rem;
}

.table-subtitle {
    margin: -4px 0 14px;
    text-align: center;
}

.table-wrapper {
    margin: 20px 0 34px;
    overflow-x: auto;
}

.results-table {
    background: #ffffff;
    border-collapse: collapse;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(31, 41, 51, 0.06);
    font-size: 0.88rem;
    min-width: 720px;
    overflow: hidden;
    width: 100%;
}

.results-table.compact {
    min-width: 620px;
}

.results-table.real-table {
    min-width: 1120px;
}

.results-table th,
.results-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 11px 12px;
    text-align: center;
    vertical-align: middle;
}

.results-table th {
    background: var(--table-head);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.results-table .sub-header th {
    background: #32485f;
}

.results-table td:first-child {
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.results-table tbody tr:hover {
    background: #f2f7f4;
}

.results-table .highlight-row {
    background: var(--bg-soft);
}

.results-table td u {
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.real-world-info {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 20px 0 28px;
}

.real-world-info > div {
    padding: 20px;
}

.real-world-info h4 {
    align-items: center;
    color: var(--primary-color);
    display: flex;
    font-size: 1rem;
    gap: 8px;
    margin-bottom: 10px;
}

.real-world-info ul {
    list-style: none;
}

.real-world-info li {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 6px 0;
}

.real-world-info li:last-child {
    border-bottom: 0;
}

.figure-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    margin: 22px 0 34px;
}

figcaption {
    margin-top: 10px;
    text-align: center;
}

.training-curves {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.citation p {
    color: var(--text-light);
    margin-bottom: 14px;
    text-align: center;
}

.bibtex {
    overflow: hidden;
    position: relative;
}

.bibtex pre {
    background: #17212e;
    color: #e8eef5;
    font-size: 0.86rem;
    line-height: 1.55;
    overflow-x: auto;
    padding: 24px;
    white-space: pre;
}

.copy-btn {
    align-items: center;
    background: var(--primary-color);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 7px;
    padding: 8px 12px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.copy-btn:hover,
.copy-btn.copied {
    background: var(--accent-color);
}

.footer {
    background: #162331;
    color: #c9d4e2;
    font-size: 0.9rem;
    padding: 30px 0;
    text-align: center;
}

.footer a {
    color: #9fe0b8;
}

@media (max-width: 800px) {
    .header {
        padding: 42px 0 34px;
    }

    .venue {
        font-size: 1.08rem;
    }

    section {
        padding: 40px 0;
    }

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

    .btn {
        justify-content: center;
        min-width: 130px;
    }

    .results-table {
        font-size: 0.82rem;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .links {
        gap: 9px;
    }

    .btn {
        flex: 1 1 44%;
        padding: 9px 12px;
    }

    .component-card,
    .inference-info,
    .real-world-info > div {
        padding: 18px;
    }

    .bibtex pre {
        font-size: 0.78rem;
        padding: 54px 16px 18px;
    }
}
