/* 全局重置+儿童化基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "幼圆", sans-serif;
}

body {
    background-color: #f9f7f3;
    color: #333;
    padding-bottom: 80px;
}

.empty-tip {
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.btn {
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(120deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    font-weight: bold;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,154,158,0.3);
}

.secondary-btn {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
    font-weight: bold;
}

.secondary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.small-btn {
    padding: 6px 12px;
    font-size: 14px;
    margin-left: 8px;
}

/* 顶部等级栏 */
.header {
    background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 15px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.level-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.level-info {
    flex: 1;
}

.level-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #6a5acd;
}

.exp-bar {
    width: 100%;
    height: 12px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.exp-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    width: 0%;
    transition: width 0.5s ease;
}

.exp-text {
    font-size: 12px;
    margin-top: 4px;
    color: #666;
}

.title-card {
    background: rgba(255,255,255,0.8);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 阶段选择区 */
.stage-select {
    padding: 20px;
    background: white;
    margin: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stage-select h3 {
    color: #6a5acd;
    margin-bottom: 15px;
    font-size: 20px;
}

.stage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stage-btn {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0e68c;
    color: #333;
    font-weight: bold;
    position: relative;
    border: none;
    cursor: pointer;
}

.stage-btn.current {
    background: linear-gradient(120deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255,154,158,0.3);
}

.stage-btn.locked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.stage-btn.locked::after {
    content: "🔒";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
}

.stage-name {
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
}

.switch-stage-btn {
    margin-top: 15px;
}

/* 知识点手风琴 */
.knowledge-accordion {
    width: 100%;
    margin: 10px 0;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    padding: 12px 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6a5acd;
    font-weight: bold;
}

.accordion-icon {
    font-size: 14px;
    color: #6a5acd;
    transition: transform 0.3s ease;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
    padding: 10px;
    max-height: 1000px;
}

/* 知识点列表/讲解区 */
.knowledge-list, .knowledge-detail {
    padding: 20px;
    background: white;
    margin: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.knowledge-list h3, .knowledge-detail h3 {
    color: #6a5acd;
    margin-bottom: 15px;
    font-size: 20px;
}

.knowledge-item {
    padding: 12px;
    border-radius: 10px;
    background: #f8f8ff;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.knowledge-item:hover {
    background: #e0d6ff;
}

.knowledge-item.mastered {
    border-left: 4px solid #4CAF50;
}

#knowledge-content {
    line-height: 1.8;
    font-size: 16px;
    padding: 10px 0;
}

#knowledge-content pre {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    overflow-x: auto;
}

#knowledge-content code {
    font-size: 14px;
}

/* 答疑区域 */
.ask-area {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #f0e68c;
    border-radius: 15px;
    background: #fff8e1;
}

.ask-area h4 {
    color: #ff8c00;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.ask-area textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    font-size: 16px;
}

.ask-area textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

.word-count {
    margin: 8px 0;
    text-align: right;
    font-size: 12px;
    color: #666;
}

.answer-content {
    margin-top: 10px;
    min-height: 40px;
    padding: 10px;
    border-radius: 10px;
    background: #f9f9f9;
}

/* Loading动画 */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    color: #6a5acd;
    font-size: 18px;
}

.loading-pikachu {
    width: 40px;
    height: 40px;
    background: url('/images/pikachu.png') no-repeat center;
    background-size: contain;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 答题区 */
.question-container {
    padding: 20px;
    background: white;
    margin: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.question-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.question-type {
    font-size: 14px;
    color: #ff8c00;
    margin-bottom: 8px;
}

.question-content {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.answer-input {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 2px solid #e0d6ff;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    font-family: "Courier New", "Fira Code", monospace;
    line-height: 1.5;
    resize: vertical;
    background-color: #fff;
}

.answer-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

.answer-feedback {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
}

.feedback-correct {
    color: #4CAF50;
    background: rgba(76,175,80,0.1);
}

.feedback-wrong {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
}

.batch-submit-btn {
    margin-top: 20px;
    background: linear-gradient(120deg, #ff6b6b 0%, #ff8e8e 100%);
}

/* 错题本 */
.wrong-question-list {
    margin-top: 10px;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.wrong-question-item {
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wrong-answer {
    color: #ff6b6b;
    font-size: 16px;
    margin: 8px 0;
}

.correct-answer {
    color: #4CAF50;
    font-size: 16px;
    margin: 8px 0;
}

.question-analysis {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

.question-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
}

/* 复习中心 */
.review-item {
    padding: 15px;
    border-radius: 15px;
    background: #f0f8ff;
    margin-bottom: 10px;
    border-left: 4px solid #8fd3f4;
}

.review-priority {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #ff8c00;
    color: white;
    display: inline-block;
    margin-bottom: 8px;
}

.review-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #ccc;
    color: white;
    display: inline-block;
    margin-left: 10px;
}

.review-status.reviewed {
    background: #4CAF50;
}

/* 徽章墙 */
.badge-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.badge-item {
    width: 120px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f0f8ff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.badge-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: #e0e0e0;
    color: #aaa;
    filter: grayscale(0.8);
    transition: all 0.3s ease;
}

.badge-icon.unlocked {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
    filter: grayscale(0);
    box-shadow: 0 4px 12px rgba(132,250,176,0.3);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.badge-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.badge-desc {
    font-size: 12px;
    color: #666;
}

/* 个人中心 */
.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #6a5acd;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    width: 100%;
    height: 100%;
}

.nav-item.active {
    color: #6a5acd;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 提示框 */
.tips-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
    text-align: center;
}

.tips-modal h4 {
    color: #6a5acd;
    margin-bottom: 10px;
    font-size: 18px;
}

.tips-modal p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.tips-modal button {
    background: #ff9a9e;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* 标签页样式 */
.tab-nav {
    display: flex;
    padding: 10px 15px;
    gap: 10px;
    background: white;
    margin: 15px 15px 0 15px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    font-size: 16px;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    color: white;
    font-weight: bold;
}

.tab-content {
    background: white;
    margin: 0 15px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 400px;
}

.tab-pane {
    display: none;
    padding: 15px;
}

.tab-pane.active {
    display: block;
}

/* 成长页子标签 */
.growth-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.growth-pane {
    display: none;
}

.growth-pane.active {
    display: block;
}

/* ========== 宠物系统样式（新增） ========== */
#pet-info-container {
    text-align: center;
    background: #fff8e1;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

#pet-info-container img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

#pet-interact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#pet-interact-buttons button {
    background: #84fab0;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.2s;
}

#pet-interact-buttons button:hover {
    transform: scale(1.05);
    background: #6fda9e;
}

#items-list, #adopt-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.item-card, .adopt-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.2s;
}

.item-card:hover, .adopt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-card.disabled, .adopt-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 响应式设计 ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    body { padding-bottom: 70px; }
    .tab-nav, .tab-content { margin-left: 10px; margin-right: 10px; }
    .stage-select, .knowledge-list, .knowledge-detail { margin: 15px 10px; padding: 15px; }
    .stage-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stage-btn { width: auto; height: auto; min-height: 80px; padding: 8px; font-size: 14px; }
    .stage-name { font-size: 12px; }
    .accordion-header { padding: 12px 15px; font-size: 16px; }
    .accordion-content { padding: 12px; }
    .knowledge-item { padding: 12px; font-size: 15px; }
    #knowledge-content { font-size: 16px; line-height: 1.6; }
    .question-container { padding: 20px; }
    .question-content { font-size: 18px; }
    .answer-input { font-size: 16px; padding: 12px; }
    .profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; justify-items: center; }
    .stat-item { width: auto; min-width: 120px; }
    .badge-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .badge-item { width: auto; height: auto; padding: 10px; }
    .badge-icon { width: 60px; height: 60px; font-size: 28px; }
    .wrong-question-item { padding: 15px; }
    .question-actions { flex-wrap: wrap; gap: 8px; }
    .bottom-nav { height: 60px; }
    .nav-icon { font-size: 22px; }
    .nav-item span { font-size: 11px; }
    .header { padding: 12px; }
    .level-name { font-size: 16px; }
    .title-card { padding: 6px 12px; }
    .save-load-btn .btn { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 767px) {
    body { padding-bottom: 65px; }
    .tab-nav, .tab-content { margin-left: 8px; margin-right: 8px; }
    .stage-select, .knowledge-list, .knowledge-detail { margin: 10px 8px; padding: 12px; }
    .stage-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stage-btn { width: auto; min-height: 70px; font-size: 12px; }
    .stage-name { font-size: 11px; }
    .accordion-header { padding: 10px 12px; font-size: 14px; }
    .knowledge-item { padding: 10px; font-size: 14px; }
    #knowledge-content { font-size: 15px; }
    .question-container { padding: 15px; }
    .question-content { font-size: 16px; }
    .answer-input { font-size: 14px; padding: 10px; }
    .profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-item { width: auto; padding: 10px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 12px; }
    .badge-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .badge-item { width: auto; height: auto; padding: 8px; }
    .badge-icon { width: 50px; height: 50px; font-size: 24px; }
    .badge-name { font-size: 14px; }
    .badge-desc { font-size: 10px; }
    .wrong-question-item { padding: 12px; }
    .question-actions { flex-wrap: wrap; gap: 6px; }
    .question-actions .btn { font-size: 12px; padding: 4px 10px; }
    .bottom-nav { height: 55px; }
    .nav-icon { font-size: 20px; }
    .nav-item span { font-size: 10px; }
    .header { padding: 10px; }
    .level-name { font-size: 14px; }
    .title-card { padding: 4px 10px; font-size: 12px; }
    .save-load-btn .btn { padding: 4px 8px; font-size: 10px; }
}
/* 称号卡片样式 */
.title-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.title-card {
    width: 280px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #ccc;
}

.title-card.current {
    border-left-color: #ff9a9e;
    background: #fff8e1;
    box-shadow: 0 4px 12px rgba(255,154,158,0.2);
}

.title-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.title-icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    color: #6a5acd;
}

.title-name {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #6a5acd;
    margin-bottom: 8px;
}

.title-desc {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
    text-align: center;
}

.title-stage {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .title-card {
        width: 260px;
    }
}
/* 徽章墙分组样式 */
.achievement-group {
    margin-bottom: 30px;
    width: 100%;
}

.group-title {
    font-size: 20px;
    font-weight: bold;
    color: #6a5acd;
    padding-left: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ff9a9e;
}

/* 调整徽章墙内部网格布局（保持原有卡片式） */
.badge-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* 手机端调整分组标题大小 */
@media (max-width: 767px) {
    .group-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .badge-wall {
        gap: 12px;
    }
}
/* 优化顶部进度条布局 */
.progress-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.stage-progress-wrapper {
    flex: 1;
    min-width: 120px;
}

.level-exp-wrapper {
    flex: 2;
    min-width: 180px;
}

.level-exp-bar {
    width: 100%;
    height: 12px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.level-exp-progress {
    height: 100%;
    background: #a29bfe;
    width: 0%;
    transition: width 0.5s ease;
}

.level-exp-text {
    font-size: 12px;
    margin-top: 4px;
    color: #6c5ce7;
    font-weight: bold;
}

/* 保持阶段进度条样式不变，但文字可以稍微缩小 */
.stage-progress-wrapper .exp-text {
    font-size: 11px;
    color: #666;
}
/* 等级经验条（主） */
.level-exp-bar {
    margin-top: 8px;
    width: 100%;
    height: 18px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.level-exp-progress {
    height: 100%;
    background: linear-gradient(90deg, #a29bfe, #6c5ce7);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 12px;
}
.level-exp-text {
    position: absolute;
    left: 10px;
    top: 0;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    color: #2d3436;
    text-shadow: 0 0 2px white;
}
/* 阶段进度条（迷你） */
.stage-progress-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.stage-progress-label {
    font-size: 11px;
    color: #636e72;
    min-width: 48px;
}
.stage-progress-bar {
    flex: 1;
    height: 8px;
    background: #dfe6e9;
    border-radius: 10px;
    overflow: hidden;
}
.stage-progress-fill {
    height: 100%;
    background: #fdcb6e;
    width: 0%;
    transition: width 0.3s;
}
.stage-progress-text {
    font-size: 11px;
    color: #636e72;
    min-width: 70px;
    text-align: right;
}
/* 修改密码模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    border-radius: 15px;
    text-align: center;
}
.modal-content input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}
/* 智能复习设置 */
.smart-review-setting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f3eaff;
    border-radius: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #84fab0;
}

input:focus + .slider {
    box-shadow: 0 0 1px #84fab0;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 底部导航角标 */
.nav-badge {
    position: absolute;
    top: -2px;
    right: -8px;
    background: #ff4444;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 0 6px rgba(255,0,0,0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
