/* Publications Section */
.publications-section {
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0 1rem;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    gap: 0rem;
    /* 每行之间的间距 */
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0rem;
}

.filter-row h4 {
    margin: 0;
    margin-right: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.filter-btn {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-btn:hover {
    color: #2980b9;
    text-decoration: underline;
}

.filter-btn.active {
    font-weight: bold;
    color: #2980b9;
}


/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    /* 设置所有子元素垂直居中 */
}

/* Publication Card */
.publication-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    /* 使用 flexbox 布局 */
    overflow: hidden;
    height: auto;
    /* 自动高度 */
    margin-bottom: 0.5rem;
    position: relative;
    /* 父容器设置为相对定位 */
}

/* Logo */
.logo {
    position: absolute;
    /* 绝对定位 */
    top: 0px;
    /* 距离顶部 10px */
    left: 0px;
    /* 距离左侧 10px */
    width: 50px;
    /* 图片宽度 */
    height: auto;
    /* 高度自动调整 */
    object-fit: cover;
    /* 确保图片覆盖整个区域 */
    z-index: 2;
    /* 确保图片在最上层 */
    border-radius: 0;
    /* 圆角，可选 */
}

/* .publication-card:hover {
    transform: translateY(-5px);
} */

/* Card Media */
.card-media {
    display: flex;
    /* 启用 Flexbox 布局 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    width: auto;
    /* 确保父容器宽度占满 */
    height: auto
        /* 确保父容器高度占满 */
}

.thumbnail {
    width: 300px;
    height: auto;
    object-fit: cover;
}

video {
    width: 300px;
    height: auto;
    object-fit: cover;
    margin: auto;
    /* 水平居中 */
}

/* Card Content */
.card-content {
    padding: 0.5rem; /* 内边距 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 水平居中 */
}

/* Title */
.title {
    font-size: 1.0rem;
    color: #000000;
    margin: 0px 0;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* Authors */
.authors {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin: 0px 0;
    font-family: Tahoma, Geneva, sans-serif;
}

.keywords {
    color: #25868d;
    font-size: 0.8rem;
    margin: 0px 0;
}

/* Meta */
.meta {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color:#990000
}

/* Links Container */
.card-content .links {
    display: flex; /* 使用Flexbox布局 */
    flex-wrap: wrap; /* 如果空间不足，允许换行 */
    gap: 10px; /* 链接之间的间距 */
    /* margin-top: 2px; 上边距 */
}

/* Link Styles */
.card-content .links a {
    color: #3498db; /* 设置文字颜色 */
    font-weight: 500; /* 设置字体粗细 */
    transition: color 0.3s ease; /* 添加平滑过渡效果 */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Hover Effects */
.card-content .links a:hover {
    color: #2980b9; /* 鼠标悬停时的文字颜色 */
    text-decoration: underline; /* 鼠标悬停时添加下划线 */
}

/* Error Image */
.error-image {
    width: 400px;
    /* 图片宽度 */
    height: auto;
    /* 高度自动调整，保持比例 */
    margin: 0 auto;
    /* 图片居中 */
    display: block;
    /* 确保图片是块级元素 */
}

