/* 分数思考页面样式 */
.thinking-section {
    margin: 2rem 0;
}

.question-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #3498db;
}

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

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.question-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.6rem;
}

.difficulty {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.question-content h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.question-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.hint-section, .answer-section {
    margin: 1.5rem 0;
}

.hint-btn, .answer-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.answer-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.hint-btn:hover, .answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hint-content, .answer-content {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.answer-content {
    border-left-color: #27ae60;
}

.hint-content p, .answer-content p {
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
}

.answer-content strong {
    color: #27ae60;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.hint-content:not(.hidden), .answer-content:not(.hidden) {
    display: block;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 反思部分样式 */
.reflection-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    color: white;
}

.reflection-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.reflection-content p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.reflection-questions {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reflection-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.reflection-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.reflection-item textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
}

.reflection-item textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.save-reflection-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.save-reflection-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* 返回按钮样式 */
.back-btn {
    display: inline-block;
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.back-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .question-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hint-btn, .answer-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .reflection-questions {
        grid-template-columns: 1fr;
    }
    
    .reflection-section {
        padding: 1.5rem;
    }
}

/* 动画效果 */
.question-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.question-card:nth-child(1) { animation-delay: 0.1s; }
.question-card:nth-child(2) { animation-delay: 0.2s; }
.question-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特殊效果 */
.difficulty {
    position: relative;
    overflow: hidden;
}

.difficulty::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.difficulty:hover::before {
    left: 100%;
}

/* 提示和答案的展开动画 */
.hint-content, .answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.hint-content:not(.hidden), .answer-content:not(.hidden) {
    max-height: 500px;
    padding: 1.5rem;
} 