:root {
    --primary-color: #E53935;
    --secondary-color: #FFC107;
    --text-color: #333333;
    --background-color: #F5F5F5;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0 0;
    font-weight: 400;
}

.gallery-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.research-item {
    display: flex;
    margin-bottom: 4rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
}

.image-container {
    flex: 1;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
}

.text-content {
    flex: 1;
    padding: 2rem;
}

.text-content a {
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 去掉下划线 */
}

.text-content a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.back-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background-color: #C62828;
}

@media (max-width: 768px) {
    .research-item {
        flex-direction: column;
    }

    .image-container, .text-content {
        flex: auto;
    }

    .image-container img {
        height: 300px;
    }
}