/* Font Face Declarations */
@font-face {
    font-family: '3270NerdFontMono';
    src: url('/assets/fonts/3270NerdFontMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

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

:root {
    --main-color: #004990;           /* 主色：深蓝 */
    --main-dark: #003366;            /* 主色深色变体 */
    --main-light: #0066cc;           /* 主色浅色变体 */
    --accent-color: #f18d00;         /* 辅助色：橙色 */
    --accent-light: #ffa726;         /* 辅助色浅色 */
    --accent-dark: #e67e00;          /* 辅助色深色 */
    --text-dark: #1a1a1a;            /* 深色文字 */
    --text-medium: #4a4a4a;          /* 中等文字 */
    --text-light: #666666;           /* 浅色文字 */
    --bg-light: #fafafa;             /* 浅色背景 */
    --bg-white: #ffffff;             /* 白色背景 */
    --bg-blue-light: #e6f2ff;        /* 浅蓝背景 */
    --border-color: #e0e0e0;         /* 边框颜色 */
    --shadow-color: rgba(0, 73, 144, 0.1);  /* 阴影颜色 */
    --gradient-start: #003d7a;       /* 渐变起始 */
    --gradient-end: #004990;         /* 渐变结束 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    min-width: 768px;
    overflow-x: hidden;
}

/* Header Container */
.header-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--main-color);
    background-image: 
        linear-gradient(rgba(0, 73, 144, 0.7), rgba(0, 73, 144, 0.7)),
        url('assets/header_background.png');
    background-repeat: no-repeat, repeat;
    background-size: cover, auto;
    z-index: -1;
}

/* Header Image Section */
.header-image {
    width: 100%;
    height: auto;
    max-height: 800px;
    display: block;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: auto;
    display: grid;
    grid-template: 1fr / 1fr;
}

.carousel-image {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Video specific styles */
video.carousel-image {
    background: transparent;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 73, 144, 0.7);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 300;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 73, 144, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 2rem;
}

.carousel-btn-next {
    right: 2rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

/* Title Block - Overlay on Image */
.title-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: white;
    padding: 2rem 0;
    z-index: 3;
    margin: 0;
}

.title-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 73, 144, 0.001);
    z-index: -1;
    pointer-events: none;
}

.title-block h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: left;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    padding-left: 0;
    padding-right: 0;
}

.title-block .subtitle {
    display: block;
    font-size: 1.3rem;
    font-weight: 400;
    text-align: left;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}


/* Authors Block - Bottom Glassmorphism Overlay (Right to Left Fade) */
.authors-block {
    position: relative;
    width: 100%;
    color: white;
    padding: 1.5rem 0 1rem;
    z-index: 2;
    margin: 0;
}

.authors-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: rgba(0, 73, 144, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: -1;
    pointer-events: none;
}

/* Two Column Layout in Authors Block - 1:1 ratio */
.authors-block-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20%;
    padding-right: 20%;
}

.lab-left {
    text-align: center;
    padding: 0 calc(15% + 2rem) 0 15%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.authors-right {
    text-align: center;
    padding: 0 15% 0 calc(15% + 2rem);
}




/* Page Content Wrapper */
.page-content {
    position: relative;
    z-index: 1;
    background: white;
    margin: 0 auto;
}

/* Authors in Authors Block */
.authors-block .author-names {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.authors-block .affiliation-item {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.westlake-logo {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Affiliation Link Hover Effect */
.affiliation-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.affiliation-link:hover .westlake-logo {
    transform: scale(1.1);
}

.affiliation-link:hover .affiliation-item {
    color: var(--accent-color);
}

/* Lab Info in Authors Block Right Side */
.authors-block .lab-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.authors-block .lab-name {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Lab Link Hover Effect */
.lab-link {
    transition: all 0.3s ease;
}

.lab-link:hover .lab-logo {
    transform: scale(1.1);
}

.lab-link:hover .lab-name {
    color: var(--accent-color);
}

.authors-block .contact-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin: 0.8rem 0;
}

.authors-block .contact-info a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
}

.authors-block .contact-info a:hover {
    text-decoration: underline;
}

/* Links Section in Authors Right */
.authors-right .links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.authors-right .links a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.authors-right .links a:hover {
    background: rgba(241, 141, 0, 0.85);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(241, 141, 0, 0.5);
}

/* Main Content Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

/* Abstract Box */
.abstract-box {
    padding: 0 0 0.5rem;
    margin: 0;
}

.abstract-box p {
    line-height: 1.8;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.abstract-box .question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--main-color);
    margin: 2rem 0;
    padding-left: 3.5rem;
    position: relative;
}

.abstract-box .question::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 4rem;
    color: var(--accent-color);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.6;
}

.abstract-box .answer {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* GIF Gallery in Abstract */
.gif-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.gif-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gif-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gif-item h3 {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--main-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .gif-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Arena Section Styles */
.pipeline-section {
    margin: 3rem 0 2.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow-x: auto;
}

.pipeline-animation-title {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-top: 0;
    padding-bottom: 0.8rem;
    border-top: none;
    border-bottom: 2px solid rgba(0, 73, 144, 0.15);
    font-weight: 600;
    text-align: center;
}

.comparison-subtitle {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-top: 0;
    padding-bottom: 0.8rem;
    border-top: none;
    border-bottom: 2px solid rgba(0, 73, 144, 0.15);
    font-weight: 600;
    text-align: center;
}

.comparison-section {
    margin: 3rem 0 2.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow-x: auto;
}

#comparison {
    margin: 3rem 0 2.5rem;
}

.arena-section {
    margin: 3rem 0 2.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow-x: auto;
}

.arena-title {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-top: 0;
    padding-bottom: 0.8rem;
    border-top: none;
    border-bottom: 2px solid rgba(0, 73, 144, 0.15);
    font-weight: 600;
    text-align: center;
}

.arena-row {
    display: grid;
    grid-template-columns: 120px repeat(8, 1fr);
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    min-width: 800px;
    border-bottom: 1px solid rgba(0, 73, 144, 0.08);
}

.arena-row:last-child {
    margin-bottom: 0;
}

.arena-row:hover {
    box-shadow: none;
    background: rgba(0, 73, 144, 0.015);
}

.arena-model-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: transparent;
    border-radius: 8px;
    border: 1px solid rgba(0, 73, 144, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.arena-model-logo img {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.arena-model-logo:hover img {
    transform: scale(1.1);
}

.arena-model-logo .model-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--main-color);
    text-align: center;
}

.arena-row > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.arena-row > img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.arena-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 6px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.arena-placeholder::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background: rgba(0, 73, 144, 0.1);
    border-radius: 4px;
}

/* Section Styles */
section {
    margin-bottom: 3.5rem;
}

#comparison {
    margin-top: 0;
    padding-top: 0;
}

section h2 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    font-weight: 600;
}

section h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

section p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

section li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

section li strong {
    color: var(--main-color);
}

/* Task Cards */
.task-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.task-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--main-color);
}

.task-card h3 {
    color: var(--main-color);
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.task-card h3:hover {
    color: var(--main-light);
}

.task-toggle {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--main-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.task-card.collapsed .task-toggle {
    transform: rotate(-90deg);
}

.task-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.task-card.collapsed .task-content {
    max-height: 0;
    opacity: 0;
}

.task-card p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.task-label {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.task-footer {
    text-align: center;
    margin-top: 1rem;
}

.task-footer .task-label {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.task-footer p {
    text-align: center;
    margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 73, 144, 0.05) 0%, rgba(0, 73, 144, 0.08) 100%);
    border-left: 4px solid var(--main-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.highlight-box p {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.highlight-box strong {
    color: var(--main-color);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 2rem auto;
    max-width: 750px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

table th {
    background: var(--main-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 0.9rem;
}

table tr.highlight-row {
    background: var(--bg-blue-light);
}

table tr.highlight-row td {
    color: var(--main-color);
    font-weight: 600;
}

table tr:hover {
    background: var(--bg-light);
}

table sup {
    color: var(--main-color);
    font-weight: 600;
}

/* Workflow Boxes */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.workflow-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.workflow-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(241, 141, 0, 0.15);
    background: white;
}

.workflow-box h4 {
    color: var(--main-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.workflow-box p {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-align: center;
}

/* Expandable Workflow Cards */
.workflow-grid-expandable {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.workflow-card {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--main-color);
}

.workflow-card h4 {
    color: var(--main-color);
    margin: 0;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
    text-align: center;
    justify-content: center;
}

.workflow-card h4:hover {
    color: var(--main-light);
}

.workflow-toggle {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent var(--main-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.workflow-card.collapsed .workflow-toggle {
    transform: rotate(-90deg);
}

.workflow-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.workflow-card.collapsed .workflow-content {
    max-height: 0;
    opacity: 0;
}

.workflow-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: left;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Key Findings - Elegant Style */
.findings-list {
    max-width: 900px;
    margin: 2rem auto;
}

.finding-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: flex-start;
}

.finding-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.finding-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    position: relative;
}

.finding-number::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.finding-content {
    flex: 1;
}

.finding-content h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.finding-content p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
}

.finding-content strong {
    color: var(--main-color);
    font-weight: 600;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-excellent {
    background: #d1fae5;
    color: #065f46;
}

.badge-good {
    background: #fff4e6;
    color: var(--accent-dark);
}

.badge-moderate {
    background: var(--bg-blue-light);
    color: var(--main-color);
}

/* References */
.references-list {
    margin-top: 2rem;
}

.reference-item {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-medium);
    font-size: 0.95rem;
    text-align: left;
    padding-left: 2.5rem;
    position: relative;
}

.ref-number {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--main-color);
    font-weight: 600;
}

.reference-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.reference-item em {
    font-style: italic;
}

/* Citation Section */
.citation-box {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.citation-box pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.citation-box code {
    color: var(--text-dark);
    background: transparent;
    display: block;
    white-space: pre;
}

.citation-link {
    display: inline-block;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--main-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.citation-link:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 73, 144, 0.3);
}

/* Footer */
footer {
    background: var(--main-color);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-color);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Large Screen Layout - Width >= 2000px */
@media (min-width: 2000px) {
    .title-block h1 {
        padding-left: 10%;
        padding-right: 10%;
    }

    .title-block .subtitle {
        padding-left: 10%;
        padding-right: 10%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-block::before,
    .authors-block::before {
        display: block;
    }

    .title-block {
        padding: 1.5rem 0;
        position: absolute;
    }

    .title-block h1 {
        font-size: 3rem;
        text-align: left;
        padding-left: 5%;
        padding-right: 5%;
    }

    .title-block .subtitle {
        font-size: 1.3rem;
        display: block;
        padding-left: 5%;
        padding-right: 5%;
    }

    .authors-block {
        padding: 1.5rem 0 1rem;
        background: linear-gradient(to top, rgba(0, 73, 144, 0.9) 0%, rgba(0, 73, 144, 0.5) 100%) !important;
        transform: none !important;
        z-index: 10;
        position: static !important;
        width: 100%;
        order: 3;
    }

    .authors-block-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-left: 20%;
        padding-right: 20%;
    }

    .lab-left {
        padding: 0 15% 1.5rem 15%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .authors-right {
        padding: 1rem 15% 0 15%;
    }

    .authors-block .author-names {
        font-size: 0.95rem;
    }

    .authors-block .lab-logo {
        height: 40px;
    }

    .header-container {
        height: auto;
        overflow: visible;
    }

    .header-image {
        height: auto;
        max-height: 400px;
        width: 100%;
        object-fit: contain;
    }

    .page-content {
        margin: 0 auto;
    }


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

    .workflow-grid-expandable {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .workflow-card {
        padding: 1.2rem;
    }

    .workflow-card h4 {
        font-size: 1rem;
    }

    .workflow-card p {
        font-size: 0.9rem;
    }

    .task-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .task-card {
        padding: 1.2rem;
    }

    .task-card h3 {
        font-size: 1.2rem;
    }

    .task-card p {
        font-size: 0.95rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    section p {
        font-size: 0.9rem;
    }

    .abstract-box p {
        font-size: 0.95rem;
    }

    .container {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .pipeline-section {
        padding: 1rem;
        margin: 2rem 0 1.5rem;
    }

    .pipeline-animation-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .comparison-subtitle {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .comparison-section {
        padding: 1rem;
        margin: 2rem 0 1.5rem;
    }

    #comparison {
        margin: 2rem 0 1.5rem;
    }

    .arena-section {
        padding: 1rem;
        margin: 2rem 0 1.5rem;
    }

    .arena-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .arena-row {
        grid-template-columns: 100px repeat(8, minmax(80px, 1fr));
        gap: 0.5rem;
        padding: 0.8rem;
        margin-bottom: 1rem;
        min-width: 700px;
    }

    .arena-model-logo {
        padding: 0.5rem;
        gap: 0.3rem;
    }

    .arena-model-logo img {
        height: 30px;
        max-width: 60px;
    }

    .arena-model-logo .model-name {
        font-size: 0.75rem;
    }

    .header-container::before {
        display: block;
    }

    body {
        background: var(--bg-white);
    }

    /* Carousel responsive styles */
    .carousel-btn {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }

    .carousel-indicators {
        bottom: 1rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }
}

/* Framework Image Container - Elegant Style */
.framework-image-container {
    margin: 2.5rem 0;
    padding: 0;
    background: transparent;
    width: 100%;
}

.framework-image-wrapper {
    max-width: 100%;
    width: 100%;
    background: transparent;
    padding: 0;
}

.framework-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

/* Benchmark Framework Section Elegant Styling */
#benchmark {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(0, 73, 144, 0.02) 50%, 
        rgba(255, 255, 255, 0) 100%);
    padding: 2rem 0;
    margin-bottom: 3.5rem;
}

#benchmark h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
}

#benchmark > p:first-of-type {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Lazy Loading GIF Styles */
.lazy-gif {
    background-color: #f0f0f0;
    background-image: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #f8f8f8 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    /* Remove min-height to let aspect-ratio control dimensions */
    width: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in;
}

.lazy-gif.lazy-loaded {
    background: none;
    animation: none;
}

/* Shimmer animation for loading placeholder */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Performance: GPU acceleration for lazy loading */
.lazy-gif {
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ========================================
   Radar Plot Analysis Styles
   ======================================== */

.radar-analysis-container {
    margin: 3rem 0;
    max-width: 1000px;
}

.radar-title {
    text-align: left;
    margin-bottom: 0.75rem;
    color: var(--main-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.radar-description {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.radar-description strong {
    font-weight: 600;
}

.radar-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.radar-plot {
    max-width: 100%;
    height: auto;
}

/* Responsive Design for Radar Plot */
@media (max-width: 768px) {
    .radar-analysis-container {
        margin: 2rem 0;
    }
    
    .radar-title {
        font-size: 1.3rem;
    }
    
    .radar-description {
        font-size: 0.95rem;
    }
}

/* ========================================
   Pipeline Animation Styles
   ======================================== */

/* Pipeline Scale Wrapper - scales entire animation based on window width */
.pipeline-scale-wrapper {
    width: 90%;
    max-width: 1800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform-origin: center top;
}

/* Base container - maintains 2:1 aspect ratio (1800:900) */
.pipeline-animation-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

.pipeline-animation-container::before {
    content: '';
    display: block;
    padding-bottom: 50%; /* 2:1 aspect ratio (900/1800 = 0.5) */
}

/* Inner wrapper to position panels with absolute positioning */
.pipeline-animation-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 20px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 73, 144, 0.15);
    /* Scale content with CSS transform to maintain aspect ratio */
    transform-origin: top left;
}

/* Adjust width for smaller screens */
@media (max-width: 900px) {
    .pipeline-scale-wrapper {
        width: 95%;
    }
}

/* Left Panel - Terminal */
.pipeline-left-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pipeline-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pipeline-terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #404040;
    flex-shrink: 0;
}

.pipeline-terminal-buttons {
    display: flex;
    gap: 8px;
}

.pipeline-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pipeline-btn.pipeline-close { background: #ff5f56; }
.pipeline-btn.pipeline-minimize { background: #ffbd2e; }
.pipeline-btn.pipeline-maximize { background: #27c93f; }

.pipeline-terminal-title {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.pipeline-terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: '3270NerdFontMono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.7;
    color: #d4d4d4;
    letter-spacing: 0.02em;
    min-height: 0;
}

.pipeline-terminal-content:has(.terminal-placeholder:only-child) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-placeholder {
    color: #888;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}

.graphics-placeholder {
    color: #888;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}

/* Terminal Text Styles */
.message-block {
    margin-bottom: 20px;
    animation: fadeInTerminal 0.3s ease-in;
}

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

.agent-name {
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-block;
}

.agent-builder {
    color: #4ec9b0;
}

.agent-guidance {
    color: #dcdcaa;
}

.agent-env {
    color: #569cd6;
}

.agent-user {
    color: #ce9178;
}

.agent-system {
    color: #c586c0;
}

.agent-label {
    font-weight: bold;
    display: inline;
    margin-bottom: 0;
}

.message-content {
    margin-left: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #00ff00;
    display: inline;
}

.code-block {
    background: #2d2d2d;
    border-left: 3px solid #007acc;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 4px;
    font-family: '3270NerdFontMono', 'Consolas', 'Monaco', monospace;
    font-size: 8px;
    color: #00ff00;
    overflow-x: auto;
    letter-spacing: 0.02em;
}

.punchline {
    color: #ff0000 !important;
    font-weight: bold;
}

.function-call {
    color: #dcdcaa;
}

.function-params {
    color: #9cdcfe;
}

.cursor-blink {
    display: inline-block;
    width: 4px;
    height: 9px;
    background: #4ec9b0;
    margin-left: 1px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Right Panel - Graphics */
.pipeline-right-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pipeline-graphics-container {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pipeline-graphics-header {
    background: #3d3d3d;
    padding: 12px 16px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #404040;
    flex-shrink: 0;
}

.pipeline-graphics-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    padding: 20px;
    overflow: hidden;
    min-height: 0;
}

.pipeline-graphics-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease-in-out;
}

.pipeline-graphics-content img.fade-out {
    opacity: 0;
}

.pipeline-graphics-content img.fade-in {
    opacity: 1;
}

/* Controls */
.pipeline-controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.11%;  /* scales with wrapper width */
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 73, 144, 0.2);
    width: 100%;
    flex-wrap: wrap;
    transform-origin: center top;
}

.pipeline-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: var(--main-color);
    color: white;
    font-size: 0.875rem;  /* 14px base */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 73, 144, 0.3);
}

.pipeline-controls button:hover {
    background: var(--main-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 73, 144, 0.4);
}

.pipeline-controls button:active {
    transform: translateY(0);
}

.pipeline-controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pipeline-controls button.active {
    background: var(--accent-color);
}

.pipeline-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-left: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
}

.pipeline-speed-control label {
    font-size: 0.8125rem;  /* 13px base */
    font-weight: 600;
    color: #666;
}

.pipeline-speed-control input[type="range"] {
    width: 120px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pipeline-speed-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pipeline-speed-control input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--main-dark);
    transform: scale(1.1);
}

.pipeline-speed-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--main-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pipeline-speed-control input[type="range"]::-moz-range-thumb:hover {
    background: var(--main-dark);
    transform: scale(1.1);
}

.pipeline-speed-control #speed-value {
    font-size: 0.75rem;  /* 12px base */
    color: var(--main-color);
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.pipeline-progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.pipeline-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--main-dark) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.pipeline-status {
    font-size: 0.8125rem;  /* 13px base */
    color: #666;
    min-width: 100px;
    text-align: right;
    display: none;  /* Hide status text, progress bar is sufficient */
}

/* Scrollbar Styling for Terminal */
.pipeline-terminal-content::-webkit-scrollbar {
    width: 8px;
}

.pipeline-terminal-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.pipeline-terminal-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.pipeline-terminal-content::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

