/* index.html 特有样式 */

/* 历史搜索模块样式 */
.history-section {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

/* 历史搜索子模块样式 */
.history-subsection {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1rem; /* 字体改小 */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 子标题样式 */
.subsection-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem; /* 减小与下方 div 的距离 */
    color: #555555;
}

.clear-history {
    font-size: 0.9rem;
    color: #666666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.clear-history:hover {
    background-color: #e1ebe8;
    color: #397967;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.history-item {
    background-color: #E4E4E4;
    color: #666666;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.history-item:hover {
    background-color: #5D7494;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.2);
}

/* 热门搜索模块样式 */
.trending-section {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.trending-item:hover {
    background-color: #E4E4E4;
    transform: translateX(5px);
}

.trending-rank {
    width: 1.75rem;
    height: 1.75rem;
    background-color: #5D7494;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.trending-rank.top-three {
    background: linear-gradient(135deg, #5d7494, #4caf50)
}

.trending-info {
    flex: 1;
}

.trending-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.trending-artist {
    font-size: 0.85rem;
    color: #666666;
}

/* PC端布局优化 */
@media (min-width: 1024px) {
    .content-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .search-section {
        grid-column: 1 / -1;
    }
}