/* 移动端专有样式 */
.mobile-header {
    height: 3rem;
}
/* 概念定义区域 */
.concept-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}
.concept-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}
.concept-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0;
}
.concept-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.concept-icon i {
    color: white;
    font-size: 0.8rem;
}
.concept-content {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #92400e;
    padding: 0.15rem 0;
}
.concept-content p {
    margin-bottom: 0.35rem;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.concept-content strong {
    color: #b45309;
    font-weight: 500;
}

/* 解法步骤区域 */
.steps-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}
.steps-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}
.steps-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0;
}
.steps-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
.steps-icon i {
    color: white;
    font-size: 0.8rem;
}
.steps-content {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #1e3a8a;
    padding: 0.15rem 0;
}
.steps-content p {
    margin-bottom: 0.35rem;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.steps-content strong {
    color: #1e40af;
    font-weight: 500;
}
.step-list {
    padding-left: 1rem;
    margin: 0.4rem 0;
}
.step-list li {
    margin-bottom: 0.4rem;
    position: relative;
}
.step-list li::before {
    content: "▶";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: -1rem;
    font-size: 0.75rem;
}

/* 应用场景区域 */
.application-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}
.application-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}
.application-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0;
}
.application-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
.application-icon i {
    color: white;
    font-size: 0.8rem;
}
.application-content {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #065f46;
    padding: 0.15rem 0;
}
.application-content p {
    margin-bottom: 0.35rem;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.application-content strong {
    color: #047857;
    font-weight: 500;
}

/* 易错点区域 */
.mistake-section {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}
.mistake-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ea580c, #f97316, #ea580c);
}
.mistake-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0;
}
.mistake-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
.mistake-icon i {
    color: white;
    font-size: 0.8rem;
}
.mistake-content {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #9a3412;
    padding: 0.15rem 0;
}
.mistake-content p {
    margin-bottom: 0.35rem;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.mistake-content strong {
    color: #c2410c;
    font-weight: 500;
}

/* 标签样式 */
.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* 装饰性元素 */
.decorative-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0.15;
}
.corner-top-right {
    top: -10px;
    right: -10px;
}
.corner-bottom-left {
    bottom: -10px;
    left: -10px;
}

/* 例题区域特殊样式 */
.example-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}
.example-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
}
.example-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.example-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
.example-icon i {
    color: white;
    font-size: 0.8rem;
}
.example-content {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #083344;
    padding: 0.15rem 0;
}
.example-content p {
    margin-bottom: 0.35rem;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.example-content strong {
    color: #0369a1;
    font-weight: 500;
}

/* 相关练习卡片 */
.practice-card {
    transition: all 0.2s ease;
    border-radius: 0.6rem;
    padding: 0.75rem;
    text-align: center;
}
.practice-card:active {
    transform: scale(0.95);
}

/* 推荐知识点卡片 */
.recommend-card {
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}
.recommend-card:active {
    transform: scale(0.98);
}

/* 响应式优化 */
/* 大屏幕设备优化 (平板横屏等) */
@media (min-width: 769px) {
    .concept-content {
        font-size: 1.05rem;
        line-height: 1.65;
    }
    
    .concept-content p {
        margin-bottom: 0.45rem;
    }
}

/* 中等屏幕设备优化 (平板竖屏等) */
@media (min-width: 481px) and (max-width: 768px) {
    .concept-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .concept-content p {
        margin-bottom: 0.4rem;
    }
    
    .concept-section, .steps-section, .application-section, 
    .mistake-section, .example-section {
        padding: 0.8rem;
        margin: 0.6rem 0;
    }
}

/* 小屏幕设备优化 (手机等) */
@media (max-width: 480px) {
    .concept-section, .steps-section, .application-section, 
    .mistake-section, .example-section {
        padding: 0.6rem;
        border-radius: 0.5rem;
        margin: 0.4rem 0;
    }
    
    .concept-title, .steps-title, .application-title,
    .mistake-title, .example-header {
        margin-bottom: 0.4rem;
    }
    
    .concept-icon, .steps-icon, .application-icon,
    .mistake-icon, .example-icon {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        margin-right: 0.4rem;
    }
    
    .concept-icon i, .steps-icon i, .application-icon i,
    .mistake-icon i, .example-icon i {
        font-size: 0.75rem;
    }
    
    .concept-content, .steps-content, .application-content,
    .mistake-content, .example-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .concept-content p, .steps-content p, .application-content p,
    .mistake-content p, .example-content p {
        margin-bottom: 0.3rem;
    }
    
    .tag-badge {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* 超小屏幕设备优化 (小手机等) */
@media (max-width: 360px) {
    .concept-content {
        font-size: 0.85rem;
        line-height: 1.45;
    }
    
    .concept-content p {
        margin-bottom: 0.25rem;
    }
    
    .concept-icon {
        width: 18px;
        height: 18px;
        margin-right: 0.35rem;
    }
    
    .concept-icon i {
        font-size: 0.7rem;
    }
    
    .concept-section, .steps-section, .application-section, 
    .mistake-section, .example-section {
        padding: 0.5rem;
        margin: 0.3rem 0;
    }
}