/* 热搜组件样式 */
.aside-calendar .content {
	padding: 15px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}


.hot-search-container {
	background: #fff;
	border-radius: 12px;
	padding: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	height: 380px; /* 统一高度 */
	display: flex;
	flex-direction: column;
}

.hot-search-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	color: var(--theme);
	font-weight: 600;
	font-size: 14px;
}

.hot-search-header em {
	color: #ff6b6b;
}

.hot-search-list {
	max-height: 300px;
	overflow-y: auto;
	flex: 1;
}

.hot-search-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--classC);
}

.hot-search-item:last-child {
	border-bottom: none;
}

.hot-search-rank {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: white;
}

.hot-search-rank.top-3 {
	background-color: #ff6b6b;
}

.hot-search-rank {
	background-color: var(--theme);
}

.hot-search-text {
	flex: 1;
	font-size: 12px;
	color: var(--minor);
	text-decoration: none;
}

.hot-search-text:hover {
    color: var(--theme);
}

/* 移动端触摸优化 */
@media (hover: none) {
    .hot-search-text:hover {
        color: var(--minor);
    }
    
    .hot-search-text:active {
        color: var(--theme);
    }
}

/* 移动端滚动优化 */
.hot-search-list {
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
    scrollbar-width: thin; /* Firefox 细滚动条 */
}

.hot-search-list::-webkit-scrollbar {
    width: 4px; /* Chrome/Safari 细滚动条 */
}

.hot-search-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.hot-search-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 移动端折叠指示器 */
@media (max-width: 768px) {
    .aside-calendar .nya-title::after {
        content: '▼';
        margin-left: 8px;
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .aside-calendar .content[style*="display: none"] ~ .nya-title::after,
    .aside-calendar .nya-title:has(+ .content[style*="display: none"])::after {
        transform: rotate(-90deg);
    }
    
    .aside-calendar .nya-title {
        transition: opacity 0.2s ease;
    }
    
    .aside-calendar .nya-title:active {
        opacity: 0.6;
    }
}

.hot-search-loading {
	text-align: center;
	color: var(--minor);
	font-size: 12px;
	padding: 20px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .aside-calendar .content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-container,
    .hot-search-container {
        height: auto;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .hot-search-container {
        height: 350px; /* 移动端调整高度 */
        padding: 12px;
    }
    
    .hot-search-list {
        max-height: 280px;
    }
    
    .hot-search-item {
        padding: 6px 0;
    }
    
    .hot-search-header {
        font-size: 13px;
    }
    
    .hot-search-rank {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .hot-search-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hot-search-container {
        height: 300px; /* 超小屏幕调整高度 */
        padding: 10px;
    }
    
    .hot-search-list {
        max-height: 240px;
    }
    
    .hot-search-item {
        padding: 4px 0;
        gap: 6px;
    }
    
    .hot-search-header {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .hot-search-rank {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .hot-search-text {
        font-size: 10px;
    }
}