/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.authors {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
}

.affiliations {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.note {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 25px;
}

.links {
    margin-top: 25px;
}

.links a {
    text-decoration: none;
    color: #2980b9;
    margin: 0 15px;
    font-size: 1.1em;
    padding: 8px 20px;
    border: 2px solid #2980b9;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.links a:hover {
    background-color: #2980b9;
    color: white;
    transform: translateY(-2px);
}

/* Main content styles */
main {
    padding: 0;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 1.8em;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

h3 {
    font-size: 1.3em;
    color: #34495e;
    margin-bottom: 15px;
    font-weight: 600;
}

p, ul {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.05em;
    line-height: 1.7;
}

ul {
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
}

/* Image styles */
.image-container {
    text-align: center;
    margin: 40px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.caption {
    font-size: 0.95em;
    font-weight: 600;
    color: #555;
    margin-top: 15px;
    margin-bottom: 8px;
}

.image-description {
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
    text-align: center;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.image-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.image-row .image-container {
    flex: 1;
    min-width: 300px;
}

.image-row .fig3-container {
    flex: 5;
}

.image-row .fig4-container {
    flex: 3;
}
/* Table styles */
.table-container {
    margin: 40px 0;
    overflow-x: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background-color: #fafafa;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 0.9em;
    table-layout: fixed;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

thead {
    background-color: #f5f5f5;
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9em;
}

#citation {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 20px auto;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    white-space: pre;
    overflow-x: auto;
    max-width: 90%;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .image-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .image-row .image-container {
        min-width: auto;
    }
    
    .links a {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    table {
        font-size: 0.8em;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .contributions-and-fig1 {
        flex-direction: column;
    }
    
    .figure-container, .contributions-container {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .links a {
        padding: 6px 15px;
        font-size: 1em;
    }
}

/* Specific image sizing for better display */
.image-container img {
    max-width: 100%;
    height: auto;
}

/* Individual image sizing adjustments */
#method .image-container:nth-child(1) img { /* Figure 1 */
    max-width: 50%;
}

#method .image-container:nth-child(2) img { /* Figure 2 */
    max-width: 95%;
}

#method .image-row .image-container:first-child img { /* Figure 3 */
    max-width: 90%;
}

#method .image-row .image-container:last-child img { /* Figure 4 */
    max-width: 90%;
}

#results .image-container:nth-child(1) img { /* Figure 8 */
    max-width: 85%;
}

#results .image-container:nth-child(2) img { /* Figure 9 */
    max-width: 90%;
}

/* Contributions and Figure 1 side by side */
.contributions-and-fig1 {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    align-items: flex-start;
}

.figure-container {
    flex: 1;
    min-width: 300px;
}

.contributions-container {
    flex: 1;
    min-width: 300px;
}

/* Remove special sizing for Figure 1 as it's now in a different context */
#method .image-container:nth-child(1) img { /* Figure 1 */
    max-width: 100%;
}

/* === NEW STYLES FOR SIMPLE VIDEO PLAYER === */

/* Video player section */
.video-player-section {
    text-align: center;
    margin-bottom: 40px;
}

.video-player-section h2 {
    margin-bottom: 20px;
}

.video-player-section p {
    margin-bottom: 20px;
    font-size: 1em;
}

/* Video container */
.video-player-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.video-player-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Video switch buttons */
.video-switch-buttons {
    margin-top: 15px;
}

.video-switch-button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.video-switch-button:hover {
    background-color: #1c5a8a;
    transform: translateY(-2px);
    filter: brightness(1.1); /* 让它在悬停时变得更亮一点 */
}

.video-switch-button:active {
    transform: translateY(0);
}

.video-switch-button.active {
    background-color: #1c5a8a;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}
