/* 弹窗样式 */
.app-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    display: flex;
    max-height: 70vh;
    overflow: hidden;
}

/* 左右分栏布局 */
.left-section {
    flex: 1;
    padding: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.right-section {
    width: 350px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    overflow-y: auto;
}

/* 左侧应用信息样式 */
.app-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.app-details h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-app-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #666;
}

.app-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.app-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 左侧关键词案例样式 */
.left-section .keyword-case {
    margin-top: 24px;
}

/* GEO服务部分样式 */
.geo-service-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.geo-header {
    text-align: center;
    margin-bottom: 20px;
}

.geo-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.geo-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.geo-features {
    flex: 1;
    margin-bottom: 20px;
}

.geo-feature {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
}

.geo-feature:last-child {
    margin-bottom: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-content strong {
    font-size: 14px;
    color: #333;
}

.feature-content span {
    font-size: 12px;
    color: #666;
}

/* 关键词案例样式 */
.keyword-case {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.case-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.keyword-example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.keyword-text {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    flex: 1;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.query-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.query-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.query-btn:active {
    transform: translateY(0);
}

.geo-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
}

.geo-stat {
    text-align: center;
}

.stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 2px;
}

.stat-desc {
    font-size: 11px;
    color: #999;
}

/* 右侧底部按钮 */
.geo-footer {
    margin-top: auto;
    padding-top: 20px;
}

.geo-consult-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.geo-consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.geo-consult-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 500px;
    }

    .modal-body {
        flex-direction: column;
    }

    .left-section {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .right-section {
        width: 100%;
        background: rgba(102, 126, 234, 0.05);
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .left-section, .right-section {
        padding: 20px;
    }

    .app-stats {
        gap: 20px;
    }

    .modal-app-icon {
        width: 50px;
        height: 50px;
    }

    .app-details h3 {
        font-size: 18px;
    }

    .geo-stats {
        gap: 12px;
    }

    .geo-feature {
        padding: 10px;
    }
}

/* 显示弹窗 */
.app-modal.show {
    display: block;
}
