/* 十万个为什么工具专用样式 */
/* 完全依赖 tools-common.css 中的 info-card 公共样式，不重复定义 */

/* 搜索区域 */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* 结果显示区域 */
.result-area {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.welcome-message i {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 16px;
    display: block;
}

.welcome-message p {
    font-size: 16px;
    margin: 8px 0;
}

/* 问题卡片 */
.question-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.answer-section {
    margin-top: 16px;
}

.show-answer-btn {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 250, 176, 0.4);
}

.answer-text {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border-left: 4px solid #84fab0;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.answer-text.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空结果提示 */
.empty-result {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-result i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.empty-result p {
    font-size: 16px;
    margin: 8px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .result-area {
        padding: 16px;
    }

    .question-card {
        padding: 16px;
    }

    .question-text {
        font-size: 16px;
    }

    .welcome-message i {
        font-size: 36px;
    }

    .welcome-message p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 14px;
        padding: 10px 14px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .question-text {
        font-size: 15px;
    }

    .answer-text {
        font-size: 14px;
        padding: 12px;
    }
}
