/* ========================================
   证书展示模块样式 - Certificates Styles
   ======================================== */

.certificates {
    background: var(--bg-light);
}

.honors-list {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 1rem calc(50% - 500px) 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
    -webkit-overflow-scrolling: touch;
}

.honors-list::-webkit-scrollbar {
    height: 8px;
}

.honors-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.honors-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.honor-item {
    flex: 0 0 280px;
    max-width: 280px;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.honor-item:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.honor-year {
    font-weight: 700;
    color: #c4b5fd;
    font-size: 0.9rem;
    background: rgba(139, 92, 246, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    align-self: flex-start;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.honor-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 600px) {
    .honor-item {
        flex: 0 0 240px;
        max-width: 240px;
        padding: 1.25rem;
    }

    .honors-list {
        padding: 1rem 1rem 2rem;
    }
}
