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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 12px 24px;
    text-align: center;
    z-index: 100;
}

.nav a {
    color: #333;
    text-decoration: none;
    margin: 0 16px;
    font-size: 15px;
}

.nav a:hover {
    color: #000;
}

/* Banner */
.banner {
    width: 100%;
    max-width: 927px;
    margin: 0 auto 32px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    background: #0f0f0f;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.header h1 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #111;
}

.authors {
    margin-bottom: 8px;
    font-size: 15px;
}

.author {
    color: #1a5276;
}

.affiliations {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.email {
    font-family: monospace;
    font-size: 13px;
}

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

.link-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.link-btn:hover {
    background: #222;
}

/* Sections */
.section {
    margin-bottom: 48px;
}

.section h2 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.section p {
    margin-bottom: 16px;
}

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

/* Figures */
.figure {
    margin: 24px 0;
}

.figure img {
    width: 100%;
    height: auto;
    display: block;
}

.figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Stats Section */
.stats-list {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.stats-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.stats-figures {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.stats-figures .figure {
    margin: 0;
}

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

/* Figure Placeholder */
.figure-section {
    margin-bottom: 48px;
}

.figure-placeholder {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 60px 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 24px 0;
}

.figure-placeholder .filename {
    font-family: monospace;
    font-size: 12px;
    color: #999;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f5f5f5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.03em;
}

td:nth-child(1) {
    font-size: 12px;
    color: #666;
}

td:nth-child(2) {
    text-align: left;
    font-family: monospace;
    font-size: 13px;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    background: #e8e8e8;
}

.sort-icon {
    font-size: 10px;
    margin-left: 4px;
    color: #666;
}

tbody tr:hover {
    background: #fafafa;
}

/* Code */
.code-block {
    position: relative;
    margin: 16px 0;
}

.code-block pre {
    margin: 0;
    padding: 16px 20px;
    padding-right: 70px;
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    background: none;
    padding: 0;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    cursor: pointer;
    color: #444;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #f0f0f0;
}

pre {
    background: #f5f5f5;
    padding: 16px 20px;
    overflow-x: auto;
    border-radius: 4px;
    margin: 16px 0;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

p code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Comparison Table */
.comparison-table td:first-child {
    text-align: left;
    font-size: 14px;
    color: #333;
}

.comparison-table td.yes {
    color: #22863a;
    font-weight: 500;
}

.comparison-table td.no {
    color: #cb2431;
}

.comparison-table tr.separator td {
    padding: 2px;
    background: #eee;
    border: none;
}

.comparison-table tr.highlight-row {
    background: #f0f7ff;
}

.comparison-table tr.highlight-row td {
    border-top: 2px solid #1a5276;
    border-bottom: 2px solid #1a5276;
}

/* Links */
a {
    color: #1a5276;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.footer a {
    color: #666;
}

.footer a:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .nav a {
        margin: 0 8px;
        font-size: 13px;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px 6px;
    }
}