/* 脑筋急转弯样式 */

/* 随机脑筋急转弯 */
.random-teaser-section {
    margin-bottom: 30px;
}

.random-teaser-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.teaser-question {
    margin-bottom: 20px;
}

.teaser-question h4 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.teaser-question p {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

.teaser-answer {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.teaser-answer h4 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.teaser-answer p {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
}

.answer-explanation {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.teaser-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

/* 搜索区域 */
.search-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #45a049;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tab-label {
    font-weight: bold;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 脑筋急转弯展示区域 */
.teasers-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.teasers-grid.list-view {
    grid-template-columns: 1fr;
}

.teaser-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.teaser-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.teaser-header {
    padding: 15px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teaser-id {
    font-size: 14px;
    color: #999;
}

.teaser-category {
    font-size: 14px;
    color: #666;
    padding: 3px 8px;
    background-color: #e9e9e9;
    border-radius: 4px;
}

.teaser-category.classic {
    background-color: #e3f2fd;
    color: #1565c0;
}

.teaser-category.children {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.teaser-category.adult {
    background-color: #fbe9e7;
    color: #d32f2f;
}

.teaser-category.logic {
    background-color: #ede7f6;
    color: #5e35b1;
}

.teaser-category.wordplay {
    background-color: #fff8e1;
    color: #ff8f00;
}

.teaser-category.math {
    background-color: #e0f7fa;
    color: #00838f;
}

.teaser-content {
    padding: 15px;
}

.teaser-content h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.teaser-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.teaser-footer {
    padding: 10px 15px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teaser-actions-compact {
    display: flex;
    gap: 10px;
}

.action-btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn-small:hover {
    background-color: #e0e0e0;
}

.teaser-difficulty {
    font-size: 12px;
    color: #999;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #e0e0e0;
}

/* 脑筋急转弯游戏 */
.game-section {
    margin-bottom: 30px;
}

.game-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.score-info, .level-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-label, .level-label {
    font-weight: bold;
    color: #666;
}

.score-value, .level-value {
    font-size: 18px;
    color: #4CAF50;
    font-weight: bold;
}

.game-teaser {
    margin-bottom: 20px;
}

.game-teaser h4 {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.game-teaser p {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}

.answer-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.answer-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

.game-result {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.game-result.correct {
    background-color: #e8f5e9;
}

.game-result.incorrect {
    background-color: #ffebee;
}

.game-result p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.next-game-btn {
    padding: 10px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-game-btn:hover {
    background-color: #0b7dda;
}

/* 脑筋急转弯知识 */
.knowledge-section {
    margin-bottom: 30px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.knowledge-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.knowledge-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.knowledge-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 说明信息 */
.info-section {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .teasers-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .answer-input-group {
        flex-direction: column;
    }
    
    .answer-input {
        width: 100%;
    }
}