/* 随机推荐作品样式 - 蓝色系色彩方案 */

.random-recommendation-section {
    margin: 2rem 0 3rem;
}

.random-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e6f2ff;
}

.random-recommendation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
}

.random-recommendation-refresh {
    background: none;
    border: 1px solid #3182ce;
    color: #3182ce;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.random-recommendation-refresh:hover {
    background: #3182ce;
    color: white;
}

.random-recommendation-refresh:disabled {
    background: #f0f7ff;
    color: #999;
    border-color: #b3d9ff;
    cursor: not-allowed;
}

.random-recommendation-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(100px, 1fr);
    gap: 2.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3182ce transparent;
    cursor: grab;
}

.random-recommendation-container::-webkit-scrollbar {
    height: 8px;
}

.random-recommendation-container::-webkit-scrollbar-track {
    background: #f0f7ff;
    border-radius: 4px;
}

.random-recommendation-container::-webkit-scrollbar-thumb {
    background: #3182ce;
    border-radius: 4px;
}

.random-recommendation-container::-webkit-scrollbar-thumb:hover {
    background: #2c5aa0;
}

.random-recommendation-container.active {
    cursor: grabbing;
}

.random-recommendation-item {
    min-width: 100px;
    background: #f0f7ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 0.8rem 0.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 200px;
    text-orientation: mixed;
    box-shadow: 0 2px 6px rgba(49, 130, 206, 0.08);
    background-image: linear-gradient(to bottom, #f0f7ff, #e6f2ff);
    margin: 0.8rem;
}

.random-recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.15);
    border-color: #3182ce;
}

.random-recommendation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #63b3ed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.random-recommendation-item:hover::before {
    opacity: 1;
}

.random-recommendation-work-title {
    font-family: "SimSun", "宋体", serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    line-height: 1.8;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    text-align: left;
    max-height: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    align-self: flex-start;
    margin-top: 0.8rem;
    margin-left: 0.8rem;
}

.random-recommendation-work-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.random-recommendation-work-title a:hover {
    color: #3182ce;
}

.random-recommendation-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    align-items: stretch;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.random-recommendation-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-top: auto;
    font-size: 0.75rem;
    color: #3182ce;
    line-height: 1.4;
    text-align: right;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-self: flex-end;
    margin-bottom: 0.8rem;
    margin-right: 0.8rem;
}

.random-recommendation-dynasty {
    font-size: 0.65rem;
    color: #2c5aa0;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.random-recommendation-author {
    font-size: 0.65rem;
    color: #4a5568;
    font-weight: 400;
}

/* 导航按钮 */
.random-recommendation-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.random-recommendation-nav-btn {
    background: #3182ce;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.random-recommendation-nav-btn:hover:not(:disabled) {
    background: #2c5aa0;
    transform: scale(1.1);
}

.random-recommendation-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .random-recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .random-recommendation-container {
        gap: 1.5rem;
        padding: 0.5rem 0rem;
    }
    
    .random-recommendation-item {
        min-width: 90px;
        height: 180px;
        margin: 0.5rem;
    }
    
    .random-recommendation-work-title {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        margin-left: 0.5rem;
    }
    
    .random-recommendation-meta {
        margin-bottom: 0.5rem;
        margin-right: 0.5rem;
    }
}