/* New styles for keyword search page */
.search-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.search-box .layui-form-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.search-box .layui-input-inline {
    flex: 1;
    min-width: 260px;
}

.search-box .layui-btn {
    height: 40px;
    font-size: 16px;
    padding: 0 28px;
    border-radius: 8px;
}

.search-box input.layui-input {
    height: 40px;
    font-size: 16px;
    border-radius: 8px;
}

.keyword-metrics {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    justify-content: center;
}

.metric-card {
    flex: 1 1 180px;
    background: #fff;
    padding: 24px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.06);
    min-width: 180px;
    transition: box-shadow 0.2s;
}

.metric-card:hover {
    box-shadow: 0 4px 16px rgba(30, 159, 255, 0.12);
}

.metric-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.metric-value {
    font-size: 22px;
    font-weight: bold;
    color: #1e9fff;
}

.app-list {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.app-item:hover {
    background: #f5faff;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 15px;
}

.app-icon-small {
    filter: brightness(0.7);
    width: 20px;
    height: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.app-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.app-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #1e9fff;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.rank-badge {
    padding: 4px 8px;
    border-radius: 4px;
    background: #e6f7ff;
    color: #1e9fff;
    font-size: 12px;
}

/* New styles for tabs */
.layui-tab-title {
    display: flex;
    justify-content: center;
}

.layui-tab-title li {
    flex: 1;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: color 0.2s;
}

.layui-tab-title li:hover {
    color: #1e9fff;
}

.layui-tab-title .layui-this {
    color: #1e9fff;
    font-weight: bold;
    border-bottom: 2px solid #1e9fff;
    padding-bottom: 30px;
}

.layui-tab-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-keywords-list {
    margin-top: 20px;
}

.trend-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.trend-indicator.up {
    background: #67c23a;
}

.trend-indicator.down {
    background: #f56c6c;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0 40px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-top: 30px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    opacity: 0.85;
}

.empty-state-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state-subtext {
    font-size: 14px;
    color: #999;
}

.fav-btn .fav-icon {
    font-size: 18px;
    color: #ff9800;
    transition: color 0.2s;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
}

.fav-btn.favorited .fav-icon {
    color: #ff9800;
    content: '\2665';
    /* 实心心 */
}

.fav-btn .fav-icon.filled {
    color: #ff9800;
}

.fav-btn:hover .fav-icon {
    color: #ff9800;
    cursor: pointer;
    text-decoration: none;
}