/* ==============================================
   Base Styles & Global Configuration
============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #202124;
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: #1a73e8;
    transition: color 0.2s ease;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==============================================
   Navigation Bar
============================================== */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #202124;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #5f6368;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: #1a73e8;
    text-decoration: none;
}

/* ==============================================
   Hero Section
============================================== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background-color: #fafafa;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.7rem;
    color: #202124;
}

.subtitle {
    font-size: 1.8rem;
    color: #5f6368;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.authors {
    margin: 1.8rem 0 2.2rem;
    font-size: 1.15rem;
    color: #3c4043;
    line-height: 1.7;
}

.affiliations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.affiliation {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: #5f6368;
}

.affiliation-logo {
    height: 28px;
    width: auto;
    filter: contrast(0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1a73e8;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0d47a1;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #202124;
}

.btn-secondary:hover {
    background-color: #e8eaed;
    color: #202124;
}

/* ==============================================
   Main Content
============================================== */
.section {
    padding: 70px 0;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 35px;
    color: #202124;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 10px;
    display: inline-block;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 30px 0 18px;
    color: #202124;
    letter-spacing: -0.01em;
}

.content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: #3c4043;
    line-height: 1.7;
    text-align: justify;
}

/* Bibtex 样式 */
.bibtex {
    background-color: #f0f0f0; /* 浅灰色背景 */
    color: #333333; /* 深色文字，与浅灰色背景形成对比 */
    padding: 20px;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, monospace; /* 等宽字体 */
    overflow-x: auto; /* 横向滚动 */
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
    white-space: pre; /* 保留格式 */
}

/* ==============================================
   Half-column Layout for Figures and Text
============================================== */
.half-column-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 50px 0;
}

.half-column-image {
    flex: 1; /* Takes 50% width */
}

.half-column-text {
    flex: 1; /* Takes 50% width */
}

/* Reverse layout for alternating pattern */
.half-column-container.reverse {
    flex-direction: row-reverse;
}

.figure-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e8eaed;
}

.figure-caption {
    margin-top: 15px;
    color: #5f6368;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
}

/* ==============================================
   Key Points Section
============================================== */
.key-points {
    display: flex;
    gap: 24px;
    margin: 40px 0;
}

.point {
    flex: 1;
    padding: 28px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    transition: transform 0.2s ease;
}

.point:hover {
    transform: translateY(-3px);
}

.point h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.point p {
    font-size: 1rem;
    color: #5f6368;
    line-height: 1.6;
    text-align: justify;
}

.section-alt {
    background-color: #f8f9fa;
}

.subsection {
    margin-bottom: 50px;
}

ul {
    margin: 1.2rem 0 1.2rem 1.5rem;
}

li {
    font-size: 1.05rem;
    color: #3c4043;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    text-align: justify;
}

/* ==============================================
   Footer
============================================== */
.footer {
    background-color: #f1f3f4;
    color: #5f6368;
    padding: 40px 0 30px;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer a {
    color: #5f6368;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #1a73e8;
    text-decoration: none;
}

/* ==============================================
   Responsive Design
============================================== */
@media (max-width: 1024px) {
    .main-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
        max-width: 90%;
    }
    
    .authors {
        font-size: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .key-points {
        flex-direction: column;
        gap: 18px;
    }
    
    .affiliations {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    /* Stack half-column layout on mobile */
    .half-column-container,
    .half-column-container.reverse {
        flex-direction: column;
    }
    
    .figure-caption {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .content p,
    .content li {
        font-size: 1rem;
        line-height: 1.6;
    }

    h2 {
        margin-bottom: 25px;
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.25rem;
        margin: 20px 0 15px;
    }

    .point {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .content p,
    .content li {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
}
