/* /inc/honors/css/honors-frontend.css */

.honors-grouped-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.honors-category-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.honors-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.honors-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.honors-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.honors-actions {
    text-align: right;
}

.legal-download-btn {
    display: inline-block;
    background-color: #B58E67;
    color: white;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.legal-download-btn:hover {
    transform: scale(1.05); /* 稍微放大一点 */
}

.legal-file-info {
    display: inline-block;
    font-size: 0.85rem;
    color: #999;
    margin-right: 1rem;
}


.honors-list {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center; /* 左对齐排列 */
    gap: 30px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.honor-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 320px; /* 修改为最大宽度 270px */
    margin-bottom: 30px;
    overflow: hidden;
    flex-shrink: 0; /* 防止被压缩 */
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.honor-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #eef1f5, #dfe7f0);
}

.honor-image {
    width: 100%;
    height: 180px; /* 固定高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 裁剪图片以适应容器 */
    display: block;
    border-bottom: 1px solid #eee;
}


.honor-content {
    padding: 20px;
    text-align: left;
}

.honor-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.honor-info-row {
    display: flex;
    gap: 20px; /* 两个元素之间的间距 */
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 10px;
}

.honor-info-row .honor-year,
.honor-info-row .honor-awarded-by {
    margin: 0; /* 清除默认外边距 */
}

/* 给荣誉信息中的图标添加颜色 */
.honor-info-row .honor-year .dashicons-calendar {
    color: #B58E67; /* 橙褐色，与主题风格一致 */
}

.honor-info-row .honor-awarded-by .dashicons-awards {
    color: #951f23; /* 深红色，用于颁奖单位图标 */
}

.honor-info-row .honor-year .dashicons-calendar:hover {
    color: #cc9966;
}

.honor-info-row .honor-awarded-by .dashicons-awards:hover {
    color: #b32d2d;
}

.honor-year,
.honor-awarded-by {
    color: #777;
    margin-bottom: 8px;
    font-size: 14px;
}

.honor-year i,
.honor-awarded-by i {
    margin-right: 6px;
}

.honor-description p {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .honors-list {
        padding: 10px;
        gap: 15px;
        justify-content: center;
    }

    .honor-item {
        max-width: 90vw; /* 移动端更宽一些 */
        margin-bottom: 20px;
        flex-direction: column;
    }

    .honor-image {
        height: 140px; /* 更紧凑 */
    }

    .honor-content {
        padding: 15px;
    }

    .honor-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .honor-year,
    .honor-awarded-by {
        font-size: 13px;
    }

    .honor-description p {
        font-size: 12px;
    }
}

