/* practice-detail.html 页面专用样式 */

/* 确保特殊字符正确显示 */
.math-symbols {
    font-family: 'Times New Roman', 'Arial Unicode MS', 'Lucida Sans Unicode', sans-serif;
}

/* 头像容器居中优化 */
.avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.avatar-container i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 面包屑导航样式优化 */
.breadcrumb {
    font-size: 0.875rem;
}

/* 练习标题区域样式 */
.practice-title-container {
    margin-bottom: 2rem;
}

.practice-title-container .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
}

.practice-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.practice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.practice-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 简介区域样式 */
.intro-section {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.intro-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-content {
    color: #374151;
    margin-bottom: 1rem;
}

/* 题目内容样式 */
.question-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.question-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-content {
    color: #374151;
    margin-bottom: 1.5rem;
}

.option-list {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.option-list-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-label {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 0.75rem;
}

.option-label.correct {
    background-color: #dbeafe;
    color: #2563eb;
}

.option-label.incorrect {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* 答案与解析样式 */
.answer-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.answer-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.answer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.correct-answer {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.correct-answer-value {
    color: #16a34a;
}

.explanation {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.thinking-process {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.thinking-process-title {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.thinking-process-list {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.thinking-process-item {
    margin-bottom: 0.75rem;
}

.thinking-process-item:last-child {
    margin-bottom: 0;
}

.error-analysis {
    margin-top: 1.5rem;
}

.error-analysis-title {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.error-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-icon {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
}

/* 知识点分析样式 */
.knowledge-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.knowledge-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.knowledge-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.knowledge-detail {
    margin-bottom: 1.5rem;
}

.knowledge-detail-title {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.knowledge-point {
    background-color: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.knowledge-point:last-child {
    margin-bottom: 0;
}

.knowledge-point-title {
    font-weight: 500;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.learning-suggestions {
    margin-top: 1.5rem;
}

.learning-suggestions-title {
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.learning-suggestions-list {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.learning-suggestions-item {
    margin-bottom: 0.5rem;
}

.learning-suggestions-item:last-child {
    margin-bottom: 0;
}

.application-scenarios {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.application-scenarios-title {
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.application-scenarios-content {
    color: #374151;
    margin-bottom: 0.75rem;
}

.application-scenarios-list {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.application-scenarios-item {
    margin-bottom: 0.5rem;
}

.application-scenarios-item:last-child {
    margin-bottom: 0;
}

/* 相关练习样式 */
.related-practice-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.related-practice-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-practice-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .related-practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-practice-item {
    display: block;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    transform: translateZ(0);
}

.related-practice-item:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
    transform: translateY(-0.125rem);
}

.related-practice-item-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-practice-item-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.related-practice-item-meta-item {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.related-practice-more {
    margin-top: 1rem;
    text-align: center;
}

.related-practice-more-link {
    color: #2563eb;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.related-practice-more-link:hover {
    color: #1d4ed8;
}

/* 笔记区域样式 */
.notes-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.notes-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    outline: none;
}

.notes-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.notes-save-btn {
    color: #2563eb;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    margin-top: 0.75rem;
}

.notes-save-btn:hover {
    color: #1d4ed8;
}

/* 讨论区样式 */
.discussion-section {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.discussion-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discussion-list {
    max-height: 15rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.discussion-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.discussion-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.discussion-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.discussion-content {
    flex: 1;
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.discussion-author {
    font-weight: 500;
    color: #111827;
}

.discussion-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.discussion-text {
    font-size: 0.875rem;
    color: #374151;
}

.discussion-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.discussion-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    outline: none;
}

.discussion-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.discussion-submit-btn {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
    margin-top: 0.75rem;
}

.discussion-submit-btn:hover {
    background-color: #1d4ed8;
}

/* 交互区域样式 */
.interaction-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.interaction-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.interaction-btn {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    transform: translateZ(0);
}

.interaction-btn:hover {
    transform: scale(1.05);
}

.favorite-btn {
    background-color: #fef3c7;
    color: #d97706;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
}

.favorite-btn:hover {
    background-color: #fde68a;
}

.errorbook-btn {
    background-color: #fecaca;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fca5a5;
}

.errorbook-btn:hover {
    background-color: #fca5a5;
}

.share-btn {
    background-color: #d9f99d;
    color: #4d7c0f;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #bef264;
}

.share-btn:hover {
    background-color: #bef264;
}

.back-btn {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #1d4ed8;
}

/* 页脚样式 */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo-icon {
    margin-right: 0.5rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    color: #9ca3af;
}

.footer-social-link:hover {
    color: white;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-link {
    margin-bottom: 0.5rem;
}

.footer-link a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer-link a:hover {
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
}

.footer-copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

/* 响应式优化 */
@media (max-width: 640px) {
    .practice-meta {
        gap: 1rem;
    }
    
    .interaction-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .interaction-buttons {
        justify-content: center;
    }
    
    .back-btn {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .practice-title {
        font-size: 1.875rem;
    }
    
    .question-section, .answer-section, .knowledge-section, .related-practice-section, 
    .notes-section, .discussion-section {
        padding: 2rem;
    }
}