*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;scroll-behavior:smooth}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.6;color:#37352f;background-color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:inherit;text-decoration:none}ul,ol{list-style:none}img{max-width:100%;height:auto}.app-layout{min-height:100vh}.app-sider{z-index:100}.main-content{max-width:960px;width:100%}.demo-page{max-width:100%}.demo-page h2{font-size:1.75rem;font-weight:700;color:#1a1a2e;margin-bottom:8px}.demo-page .subtitle{font-size:1rem;color:#4b5563;margin-bottom:24px}.learning-objectives{background:linear-gradient(135deg,#eff6ff,#e0e7ff);border-radius:12px;padding:20px 24px;margin-bottom:24px;border:1px solid #c7d2fe}.learning-objectives h3{font-size:.875rem;font-weight:600;color:#1a6fc4;margin-bottom:12px;text-transform:uppercase;letter-spacing:.03em}.learning-objectives ul{padding-left:20px}.learning-objectives li{font-size:.9rem;color:#1f2937;margin-bottom:6px;list-style:disc}.learning-objectives li::marker{color:#2383e2}.code-block{background:#1e1e2e;border-radius:10px;margin:16px 0;overflow:hidden;box-shadow:0 4px 12px #0000002e;border:1px solid rgba(255,255,255,.06)}.code-block-header{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;background:#ffffff0d;border-bottom:1px solid rgba(255,255,255,.08);min-height:38px}.code-block-title{font-size:.8rem;color:#ffffff8c;font-family:SF Mono,Fira Code,monospace;flex:1;margin-right:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.code-block-lang-badge{font-size:.7rem;font-family:SF Mono,Fira Code,monospace;color:#7c858d;background:#ffffff14;padding:2px 8px;border-radius:4px;letter-spacing:.03em;flex-shrink:0}.code-block-copy-btn{font-size:.72rem;color:#ffffff73;background:#ffffff12;border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:3px 10px;cursor:pointer;transition:color .15s,background .15s;white-space:nowrap;flex-shrink:0}.code-block-copy-btn:hover{color:#fffc;background:#ffffff21}.code-block pre{margin:0!important}.demo-card{background:#fff;border-radius:12px;padding:24px;margin:20px 0;box-shadow:0 1px 3px #00000014;border:1px solid #e5e7eb}.demo-card h4{font-size:1rem;font-weight:600;color:#1f2937;margin-bottom:16px;display:flex;align-items:center;gap:8px}.demo-card h4:before{content:"💡"}.demo-area{background:#f8fafc;border-radius:8px;padding:20px;margin-top:12px;border:1px dashed #d1d5db}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:8px;font-size:.875rem;font-weight:500;border:none;cursor:pointer;transition:all .2s ease}.btn-primary{background:#2383e2;color:#fff}.btn-primary:hover{background:#1a6fc4;transform:translateY(-1px);box-shadow:0 2px 8px #6366f166}.btn-secondary{background:#f3f4f6;color:#374151}.btn-secondary:hover{background:#e5e7eb}.btn-sm{padding:4px 12px;font-size:.8rem}.tip-box{background:#fffbeb;border-left:4px solid #d97706;border-radius:0 8px 8px 0;padding:12px 16px;margin:16px 0;font-size:.9rem;color:#78350f}.tip-box strong{color:#92400e}.info-box{background:#eff6ff;border-left:4px solid #2563eb;border-radius:0 8px 8px 0;padding:12px 16px;margin:16px 0;font-size:.9rem;color:#1e3a8a}.info-box strong{color:#1e40af}.demo-table{width:100%;border-collapse:collapse;margin:12px 0;font-size:.875rem}.demo-table th,.demo-table td{padding:10px 14px;text-align:left;border-bottom:1px solid #e5e7eb}.demo-table th{background:#f9fafb;font-weight:600;color:#1f2937}.demo-table tr:hover td{background:#f9fafb}.welcome-page{text-align:center;padding:60px 20px}.welcome-page h2{font-size:2.5rem;background:linear-gradient(135deg,#1a6fc4,#2383e2,#38bdf8);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:16px}.welcome-page p{font-size:1.1rem;color:#4b5563;max-width:500px;margin:0 auto 32px}.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:32px;text-align:left}.feature-card{background:#fff;border-radius:12px;padding:20px;border:1px solid #e5e7eb;transition:all .2s ease}.feature-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:#c7d2fe}.feature-card h4{font-size:.95rem;font-weight:600;color:#1f2937;margin-bottom:8px}.feature-card p{font-size:.85rem;color:#4b5563;margin:0}.progress-overview{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;margin:32px 0;text-align:left;box-shadow:0 1px 3px #00000014}.progress-overview-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.progress-overview-header h3{font-size:1.25rem;color:#1f2937;margin-bottom:4px}.progress-overview-header span{font-size:.9rem;color:#6b7280}.progress-bar{height:10px;background:#eef2ff;border-radius:999px;overflow:hidden;margin-bottom:20px}.progress-bar div{height:100%;background:linear-gradient(90deg,#2383e2,#38bdf8);border-radius:inherit;transition:width .2s ease}.progress-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.progress-chapter{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:16px}.progress-chapter h4{font-size:.9rem;color:#374151;margin-bottom:12px}.progress-items{display:grid;gap:8px}.progress-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:.85rem;color:#374151}.progress-item input{width:16px;height:16px;accent-color:#2383e2}.progress-item a:hover{color:#1a6fc4}.progress-item.completed a{color:#6b7280;text-decoration:line-through}.importance-pill{border-radius:999px;padding:2px 8px;font-size:.7rem;font-weight:600}.importance-pill.red{background:#fee2e2;color:#b91c1c}.importance-pill.yellow{background:#fef3c7;color:#a16207}.importance-pill.green{background:#dcfce7;color:#15803d}.chapter-completion-toggle{position:fixed;top:24px;right:24px;z-index:1000;display:inline-flex;align-items:center;gap:8px;width:fit-content;background:var(--ant-color-bg-elevated, #fff);border:1px solid #bfdbfe;border-radius:999px;padding:8px 14px;box-shadow:0 4px 16px #2383e21f;overflow:visible}.completion-confetti{position:absolute;inset:var(--origin-y) auto auto var(--origin-x);pointer-events:none}.completion-confetti i{position:absolute;width:7px;height:11px;border-radius:2px;background:var(--confetti-color);transform:translate(-50%,-50%);animation:confetti-burst .72s ease-out forwards}@keyframes confetti-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(0)}20%{opacity:1}to{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1) rotate(var(--rotate))}}.theme-toggle{margin-left:auto;flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:1px solid #e8e8e6;border-radius:6px;background:transparent;color:#9b9a97;font-size:.85rem;cursor:pointer;transition:background .15s,color .15s,border-color .15s;line-height:1}.theme-toggle:hover{background:#37352f0f;color:#37352f;border-color:#d0d0ce}html.dark body{color:#e2e8f0;background-color:#0f172a}html.dark .sidebar{background:#111827;color:#e2e8f0;box-shadow:1px 0 #ffffff0f}html.dark .sidebar-header{border-bottom-color:#ffffff12}html.dark .sidebar-header h1{color:#e2e8f0}html.dark .sidebar-header p,html.dark .sidebar-legend,html.dark .nav-chapter-title{color:#64748b}html.dark .sidebar-legend{border-bottom-color:#ffffff0f}html.dark .nav-item{color:#cbd5e1}html.dark .nav-item:hover{background:#ffffff0f;color:#e2e8f0}html.dark .nav-item.active{background:#60a5fa1f;color:#60a5fa;border-left-color:#60a5fa}html.dark .theme-toggle{border-color:#ffffff1a;color:#64748b}html.dark .theme-toggle:hover{background:#ffffff0f;color:#e2e8f0;border-color:#ffffff26}html.dark .sidebar::-webkit-scrollbar-thumb{background:#ffffff1f}html.dark .sidebar::-webkit-scrollbar-thumb:hover{background:#fff3}html.dark .demo-page h2{color:#e2e8f0}html.dark .demo-page .subtitle{color:#94a3b8}html.dark .demo-card{background:#1e293b;border-color:#ffffff14;box-shadow:none}html.dark .demo-card h4{color:#e2e8f0}html.dark .demo-area{background:#f8fafc;border-color:#d1d5db;color:#1f2937}html.dark .progress-overview{background:#1e293b;border-color:#ffffff14;box-shadow:none}html.dark .progress-overview-header h3{color:#e2e8f0}html.dark .progress-overview-header span{color:#64748b}html.dark .progress-bar{background:#1e293b}html.dark .progress-chapter{background:#1e293b;border-color:#ffffff14}html.dark .progress-chapter h4,html.dark .progress-item{color:#cbd5e1}html.dark .feature-card{background:#1e293b;border-color:#ffffff14}html.dark .feature-card:hover{border-color:#60a5fa4d;box-shadow:0 4px 12px #0000004d}html.dark .feature-card h4{color:#e2e8f0}html.dark .feature-card p,html.dark .welcome-page p{color:#94a3b8}html.dark .learning-objectives{background:linear-gradient(135deg,#1e3a5f,#1e3a8a20);border-color:#60a5fa33}html.dark .learning-objectives h3{color:#60a5fa}html.dark .learning-objectives li{color:#cbd5e1}html.dark .learning-objectives li::marker{color:#60a5fa}html.dark .demo-table th{background:#1e293b;color:#e2e8f0}html.dark .demo-table th,html.dark .demo-table td{border-bottom-color:#ffffff12}html.dark .demo-table tr:hover td{background:#1e293b}html.dark .btn-secondary{background:#1e293b;color:#cbd5e1}html.dark .btn-secondary:hover{background:#293548}html.dark .tip-box{background:#1c1a0f;color:#fbbf24}html.dark .info-box{background:#0f1e3a;color:#93c5fd}html.dark .chapter-completion-toggle{background:#1e293b;border-color:#60a5fa33;color:#60a5fa;box-shadow:0 4px 16px #0000004d}html.dark .progress-item input[type=checkbox],html.dark .chapter-completion-toggle input[type=checkbox]{accent-color:#60a5fa;color-scheme:dark}.trainer-entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:24px 0 32px}.trainer-entry-card{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:12px;border:1px solid #e5e7eb;background:#fff;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}.trainer-entry-card:hover{border-color:#2383e2;box-shadow:0 4px 14px #2383e21f}.trainer-entry-card h3{margin:0;font-size:1.05rem;color:#1e293b}.trainer-entry-card p{margin:0;font-size:.85rem;color:#64748b}.trainer-entry-card span{margin-top:auto;font-size:.78rem;color:#2383e2;font-weight:600}.train-page .subtitle{color:#64748b;margin-top:-4px}.train-stats-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.train-stats-bar>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}.train-stats-bar strong{font-size:.75rem;color:#64748b}.train-stats-bar span{font-size:.95rem;color:#1e293b;font-weight:600}.train-start-panel,.train-summary,.mock-setup,.ai-settings-form{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;margin-top:12px}.train-start-panel label,.ai-settings-form label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;color:#374151;margin-bottom:12px}.train-start-panel input,.ai-settings-form input,.practice-draft,.mock-input-row textarea{padding:10px 12px;border-radius:8px;border:1px solid #d1d5db;font-size:.9rem;font-weight:400}.train-start-panel .hint,.ai-settings-form .hint,.practice-chapter-link{font-size:.82rem;color:#6b7280;margin-top:12px}.train-progress{font-size:.85rem;color:#64748b;margin-bottom:8px}.practice-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px}.practice-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.tag-pill,.level-pill{font-size:.72rem;padding:2px 8px;border-radius:9999px;background:#eff6ff;color:#1d4ed8;font-weight:600}.level-初级{background:#dcfce7;color:#15803d}.level-中级{background:#fef9c3;color:#a16207}.level-高级{background:#fee2e2;color:#b91c1c}.practice-q{margin:0 0 12px;font-size:1.1rem;color:#1e293b}.practice-draft{width:100%;resize:vertical;margin-bottom:12px;box-sizing:border-box}.practice-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.practice-settings-link{font-size:.82rem}.practice-error{color:#dc2626;font-size:.85rem}.practice-grade{margin-top:12px;padding:12px;border-radius:8px;background:#f8fafc;border:1px solid #e5e7eb;font-size:.88rem}.practice-grade .ok{color:#16a34a}.practice-grade .bad{color:#dc2626}.practice-answer{margin-top:16px;padding-top:14px;border-top:1px solid #e5e7eb}.practice-answer-body{font-size:.88rem;line-height:1.7;color:#374151;background:#f8fafc;padding:12px;border-radius:8px;overflow:auto}.practice-answer-body .markdown-answer p{margin:4px 0}html.dark .practice-answer-body{color:#cbd5e1}.practice-rate-label{font-size:.82rem;color:#6b7280;margin:12px 0 8px}.practice-rate-btns{display:flex;gap:8px;flex-wrap:wrap}.rate-forgot{border:1px solid #ef4444;color:#ef4444;background:transparent}.rate-fuzzy{border:1px solid #eab308;color:#a16207;background:transparent}.rate-remembered{border:1px solid #22c55e;color:#15803d;background:transparent}.chain-list{display:flex;flex-direction:column;gap:10px;margin:12px 0 16px}.chain-card{display:flex;gap:10px;padding:14px;border:1px solid #e5e7eb;border-radius:10px;cursor:pointer}.chain-card.active{border-color:#2383e2;background:#eff6ff}.chain-card strong{display:block;margin-bottom:4px}.chain-card p{margin:0;font-size:.85rem;color:#64748b}.chain-card span{font-size:.75rem;color:#2383e2}.mock-chat{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}.mock-chat-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#f8fafc}.mock-messages{max-height:480px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.mock-bubble pre{white-space:pre-wrap;font-family:inherit;margin:6px 0 0;font-size:.9rem;line-height:1.65}.mock-bubble{padding:10px 12px;border-radius:10px;max-width:92%}.mock-assistant{background:#f1f5f9;align-self:flex-start}.mock-user{background:#dbeafe;align-self:flex-end}.mock-role{font-size:.72rem;font-weight:700;color:#64748b}.mock-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid #e5e7eb}.mock-input-row textarea{flex:1;resize:vertical}.preset-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.82rem;color:#64748b;margin-bottom:8px}.save-ok{color:#16a34a;font-size:.85rem;align-self:center}.test-msg{font-size:.85rem;margin-top:10px;color:#374151}.thinking-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:12px!important;padding:12px 14px;margin-bottom:14px;border-radius:10px;border:1px solid #e5e7eb;background:#f8fafc;cursor:pointer}.thinking-toggle>span:first-child{flex:1;display:flex;flex-direction:column;gap:4px;font-size:.9rem;font-weight:600;color:#1e293b}.thinking-toggle small{font-weight:400;font-size:.78rem;color:#64748b;line-height:1.4}.thinking-toggle input[type=checkbox]{width:18px;height:18px;accent-color:#2383e2;flex-shrink:0}.thinking-toggle-state{font-size:.8rem!important;font-weight:600;color:#2383e2;white-space:nowrap}html.dark .thinking-toggle{background:#0f172a;border-color:#ffffff14}html.dark .thinking-toggle>span:first-child{color:#e2e8f0}html.dark .thinking-toggle small{color:#94a3b8}html.dark .trainer-entry-card,html.dark .train-start-panel,html.dark .train-summary,html.dark .mock-setup,html.dark .ai-settings-form,html.dark .practice-card,html.dark .mock-chat{background:#1e293b;border-color:#ffffff14;color:#e2e8f0}html.dark .trainer-entry-card h3,html.dark .practice-q,html.dark .train-stats-bar span{color:#e2e8f0}html.dark .train-stats-bar>div,html.dark .mock-chat-header,html.dark .practice-answer-body,html.dark .practice-grade,html.dark .mock-assistant{background:#0f172a;border-color:#ffffff14}html.dark .mock-user{background:#1e3a5f}html.dark .train-start-panel input,html.dark .ai-settings-form input,html.dark .practice-draft,html.dark .mock-input-row textarea{background:#0f172a;border-color:#ffffff1f;color:#e2e8f0}html.dark .chain-card{border-color:#ffffff1a}html.dark .chain-card.active{background:#0f172a;border-color:#60a5fa}.sidebar::-webkit-scrollbar{width:4px}.sidebar::-webkit-scrollbar-track{background:transparent}.sidebar::-webkit-scrollbar-thumb{background:#37352f2e;border-radius:2px}.sidebar::-webkit-scrollbar-thumb:hover{background:#37352f47}@media(max-width:768px){.main-content{padding:16px!important}.app-sider{position:relative!important;height:auto!important;width:100%!important;max-width:100%!important}.progress-overview-header{align-items:flex-start;flex-direction:column}.chapter-completion-toggle{align-items:flex-start;border-radius:12px;flex-wrap:wrap;left:16px;right:16px;top:8px;width:auto}}
