
.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 {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
}

.keyword-list {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.keyword-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.keyword-item:hover {
    background: #f5faff;
}

.keyword-info {
    flex: 1;
}

.keyword-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.keyword-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.app-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.app-icon-small {
    filter: brightness(0.7);
    width: 20px;
    height: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}


.app-icon-small:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.meta-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.popularity {
    background: #e6f7ff;
    color: #1890ff;
}

.competitiveness {
    background: #fff7e6;
    color: #fa8c16;
}

.rank {
    background: #f6ffed;
    color: #52c41a;
}

.loading {
    text-align: center;
    padding: 40px;
    display: none;
}

/* App Info Card */
.app-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.app-basic-info {
    text-align: center;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.app-icon-large {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-name {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
}

.app-developer {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.app-details {
    text-align: left;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
    padding-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.app-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.summary-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}


.metric-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metric-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.metric-value {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.score {
    font-size: 24px;
    color: #1e9fff;
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}

.positive {
    color: #52c41a;
}

.negative {
    color: #ff4d4f;
}

.charts-container {
    margin-top: 24px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.charts-container .layui-tab {
    margin: 0;
}

.charts-container .layui-tab-title {
    border-bottom-color: #f0f0f0;
}

.charts-container .layui-tab-title li {
    font-size: 15px;
    padding: 0 24px;
    font-weight: bold;
}

.charts-container .layui-tab-title .layui-this {
    color: #1e9fff;
}

.charts-container .layui-tab-title .layui-this:after {
    border-bottom-color: #1e9fff;
}

#downloadsChart,
#ratingsChart,
#reviewsChart {
    width: 100%;
    height: 300px;
    min-height: 200px;
}


.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;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }

    .keyword-meta {
        flex-direction: column;
        gap: 5px;
    }

    .app-icons {
        margin-top: 10px;
    }

    .app-info-card {
        padding: 16px;
    }

    .app-icon-large {
        width: 72px;
        height: 72px;
    }

    .app-name {
        font-size: 18px;
    }

    .app-developer {
        font-size: 12px;
    }

    .metric-card {
        padding: 12px;
    }

    .metric-title {
        font-size: 12px;
    }

    .metric-value {
        font-size: 16px;
    }

    .score {
        font-size: 20px;
    }

    .app-basic-info {
        padding: 16px;
    }

    .app-icon-large {
        width: 72px;
        height: 72px;
    }

    .app-details {
        margin-top: 16px;
        padding-top: 16px;
    }

    .detail-item {
        padding: 6px 0;
        font-size: 13px;
    }

    .app-summary {
        padding: 16px;
        margin-top: 16px;
    }
}

.app-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.summary-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.summary-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.fav-btn {
    display: inline-block;
    margin-left: 4px;
    font-size: 20px;
    color: #ff9800;
    vertical-align: middle;
    transition: color 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.fav-btn .fav-icon {
    font-size: 20px;
    pointer-events: none;
}
.fav-btn.favorited,
.fav-btn:hover {
    color: #ff9800;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.empty-state-subtext {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.empty-state-action {
    display: inline-block;
    padding: 8px 24px;
    background: #1e9fff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.empty-state-action:hover {
    background: #0e8fee;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}