/* 新闻页面专用样式 */

/* 新闻卡片样式 */
.news-card {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    border-left: 3px solid #3498db;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 图片容器 */
figure {
    height: 120px;
    width: 200px;
    margin: 0;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}
/* 图片样式 */
figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover figure img {
    transform: scale(1.05);
}

/* 左侧区域容器 */
.news-left {
    display: flex;
    flex-direction: row;
    flex: 0.6;
    position: relative;
    align-items: center;
}

/* 日期标签 */
.news-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(52, 152, 219, 0.9);
    padding: 10px;
    font-size: 14px;
    text-align: center;
    z-index: 1;
    margin-right: 10px;
    border-radius: 4px;
    min-width: 80px;
    border: 1px solid #ccc;
}

/* 新闻内容部分 */
.news-content {
    padding: 20px;
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
    flex: 1.5;
}

/* 标题样式 */
.news-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
}

.news-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #3498db;
}

/* 新闻描述 */
.news-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* 阅读更多按钮 */
.read-more {
    display: none;
}

.read-more:hover {
    color: #fff;
    background-color: #3498db;
    text-decoration: none;
}

/* 学术论文风格元素 */
.paper-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f7ff;
    color: #3498db;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 10px;
    border: 1px solid #d6e9ff;
}

/* 学术指标 */
.paper-metrics {
    display: flex;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.paper-metrics .metric {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.paper-metrics .metric i {
    margin-right: 5px;
    font-size: 14px;
    color: #999;
}

/* 引用格式 */
.paper-citation {
    display: none;
}

/* 空数据提示 */
.empty-news {
    padding: 50px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-news i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.empty-news p {
    font-size: 16px;
    color: #999;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .news-card {
        min-height: auto;
    }
}

@media (max-width: 991px) {
    .news-card {
        flex-direction: row;
    }
    
    .news-date {
        position: absolute;
        top: 0;
        left: 0;
        width: auto;
        text-align: left;
    }
    
    .news-card figure {
        width: 100%;
    }
    
    .news-card figure img {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .news-card {
        flex-direction: column;
    }

    .news-left {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    figure {
        width: 120px;
        height: 90px;
    }

    .news-date {
        position: relative;
        margin-right: 10px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-card figure img {
        height: 160px;
    }
    
    .paper-metrics {
        flex-direction: column;
    }
    
    .paper-metrics .metric {
        margin-bottom: 5px;
    }
    
    .news-description {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .news-card {
        flex-direction: column;
    }
    
    .news-left {
        flex-direction: row;
        margin-bottom: 10px;
    }
    
    .news-title {
        font-size: 15px;
    }

    figure {
        width: 100px;
        height: 75px;
    }
    
    .news-date {
        font-size: 12px;
        padding: 6px;
        min-width: 70px;
    }

    .news-description {
        -webkit-line-clamp: 2;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 15px;
        height: 42px;
    }
    
    .news-card figure img {
         height: 130px;
     }
 }