/* UI对比度精确修复 - 只修复必要的对比度问题，保留所有原有功能 */

/* 修复日记页面正文颜色 - 保留所有其他样式 */
.diary-content {
    color: #2c1810 !important; /* 深棕色，在浅背景上清晰可见 */
}

.diary-content p {
    color: #2c1810 !important;
}

/* 保留科学笔记的特殊样式，只调整文字颜色 */
.science-note {
    /* 保留原有的渐变背景和样式 */
    color: #1a365d !important; /* 深蓝色文字 */
}

.science-note .note-title {
    color: #1a365d !important; /* 保持深蓝色 */
}

/* 保留名词解释的所有功能，只确保文字清晰 */
.concept-word {
    /* 保留所有原有样式和功能 */
    /* 颜色由分级样式单独控制，这里不再设置通用颜色 */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 修复密码锁页面文字 - 保留所有样式 */
.password-lock h3 {
    color: #2c1810 !important;
}

.password-hint {
    color: #5d4037 !important;
    font-weight: 500;
}

/* 修复表单对比度 */
input[type="password"], input[type="text"] {
    color: #2c1810 !important;
    font-weight: 500;
}

input[type="password"]::placeholder, input[type="text"]::placeholder {
    color: #8d6e63 !important;
    opacity: 0.8;
}

/* 修复错误提示对比度 */
.password-error {
    color: #c62828 !important;
    font-weight: 600;
}

/* 修复日记头部标题 */
.diary-header h2 {
    color: #2c1810 !important;
}

/* 修复页码显示 */
.page-number {
    color: #5d4037 !important;
    font-weight: 500;
}

/* 修复科学家信息 */
.scientist-name {
    color: #2c1810 !important;
}

.scientist-title, .scientist-achievement {
    color: #5d4037 !important;
}

/* 修复互动演示标题 - 保留所有功能 */
.alpha-decay-demo h3, 
.beta-decay-demo h3, 
.half-life-demo h3,
.element-discovery h3,
.nobel-showcase h3 {
    color: #1a365d !important;
    font-weight: bold;
}

/* 修复元素卡片文字 */
.element-card .element-name,
.element-card .element-number,
.element-card .discovery-year {
    color: #2c1810 !important;
}

.element-card .element-symbol {
    color: #d32f2f !important;
    font-weight: bold;
}

/* 修复诺贝尔奖卡片 */
.award .award-year,
.award .award-type,
.award .award-reason {
    color: #2c1810 !important;
}

/* 修复知识总结列表 */
.knowledge-summary li {
    color: #2c1810 !important;
}

/* 修复签名 */
.signature {
    color: #5d4037 !important;
    font-weight: bold;
}

/* 修复按钮文字对比度 - 保留所有原有样式 */
.unlock-btn, .nav-btn, .enter-btn, .complete-btn, .demo-btn {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    font-weight: 600;
}

/* 修复背包页面纸条显示 */
.paper-label, .paper-source {
    color: #2c1810 !important;
    font-weight: 600;
}

.paper-content {
    color: #1a365d !important;
    font-weight: bold;
}

.paper-status {
    color: #5d4037 !important;
}

/* 修复解谜页面提示颜色 - 保留所有原有样式和功能 */
.hint-section.subtle-hint {
    color: #87ceeb !important;
}

.hint-section.mild-hint {
    color: #ffd700 !important;
}

.hint-section.direct-hint {
    color: #90ee90 !important;
}

/* 修复章节头部 */
.chapter-info h2 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.chapter-info p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 修复主菜单科学家卡片 */
.scientist-card h3 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.scientist-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* 确保弹窗内容清晰 - 保留所有原有功能 */
.modal-header h4 {
    color: #2c1810 !important;
}

.modal-body p {
    color: #3e2723 !important;
}

/* 修复背包描述文字 */
.backpack-description p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 移动端特别适配 */
@media (max-width: 768px) {
    .diary-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 移动端弹窗确保清晰 */
    .concept-modal .modal-content {
        max-width: 95%;
        margin: 20px 10px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
}

/* 确保所有交互元素在点击时有合适的反馈 */
.concept-word:active {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

/* 确保tooltip在深色背景上也清晰 */
.tooltip {
    background: #2c1810 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip::after {
    border-top-color: #2c1810 !important;
} 