.landing{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 20px;animation:fadeIn .5s ease-out}.landing-container{max-width:480px;width:100%;background:var(--card-bg);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:32px}.landing-container-single{max-width:640px;width:100%;background:var(--card-bg);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);padding:48px 36px;animation:slideUp .6s cubic-bezier(.4,0,.2,1)}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.landing-header{text-align:center;margin-bottom:32px}.landing-header-single{text-align:center;margin-bottom:44px}.landing-title{font-size:36px;font-weight:700;margin-bottom:14px;line-height:1.15;color:var(--confidence-blue);letter-spacing:-.02em;position:relative;display:inline-block}.landing-title:after{content:"";position:absolute;bottom:-6px;left:50%;transform:translate(-50%);width:60px;height:3px;background:linear-gradient(90deg,var(--learning-purple),var(--soft-teal));border-radius:2px}.landing-tagline{font-size:17px;color:var(--text-secondary);font-weight:400;margin-bottom:12px;font-style:italic;line-height:1.5}.header-divider{width:80px;height:1px;background:#9ca3af4d;margin:16px auto 0;display:none}.landing-supporting{font-size:15px;color:var(--text-secondary);line-height:1.6}.landing-content{margin-bottom:24px}.landing-description{font-size:15px;color:var(--text-secondary);text-align:center;margin-bottom:24px;line-height:1.6}.mode-buttons{display:flex;flex-direction:column;gap:16px}.mode-button{display:flex;align-items:center;gap:16px;padding:20px;background:var(--card-bg);border:1px solid var(--border-color);border-radius:var(--radius-md);text-align:left;transition:all .2s ease;width:100%;cursor:pointer}.mode-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:var(--primary-light)}.mode-button:active{transform:translateY(0)}.mode-icon{font-size:40px;flex-shrink:0}.mode-text h2{font-size:18px;font-weight:600;color:var(--text-primary);margin-bottom:4px}.mode-text p{font-size:14px;color:var(--text-secondary);line-height:1.4}.landing-footer{background:var(--section-bg);padding:12px 16px;text-align:center;border-radius:var(--radius-sm);margin-top:24px}.landing-footer p{font-size:13px;color:var(--text-light)}.landing-footer-single{background:var(--section-bg);padding:12px 16px;text-align:center;border-radius:var(--radius-sm);margin-top:24px}.landing-footer-single p{font-size:13px;color:var(--text-light)}.mode-section{margin-bottom:48px;padding:28px;background:var(--section-bg);border-radius:var(--radius-lg);border:1px solid rgba(229,231,235,.5);animation:cardSlideIn .5s ease-out .1s both}@keyframes cardSlideIn{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.section-title{font-size:19px;font-weight:600;color:var(--text-primary);margin-bottom:22px;text-align:center;letter-spacing:-.01em}.mode-buttons-single{display:flex;flex-direction:row;gap:12px}.mode-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px 20px;background:var(--card-bg);border:2px solid rgba(229,231,235,.8);border-radius:var(--radius-lg);text-align:center;transition:all .3s cubic-bezier(.4,0,.2,1);flex:1;cursor:pointer;box-shadow:0 2px 8px #2d4a9d0f;position:relative;overflow:hidden;min-height:120px}.mode-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--learning-purple),var(--soft-teal));transform:scaleX(0);transition:transform .3s ease}.mode-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px #2d4a9d26;border-color:var(--learning-purple)}.mode-card:hover:before{transform:scaleX(1)}.mode-card.selected{border-color:var(--confidence-blue);background:linear-gradient(135deg,#2d4a9d14,#6f5cf10d);box-shadow:0 8px 20px #2d4a9d33,0 0 0 3px #2d4a9d1f;transform:translateY(-2px)}.mode-card.selected:before{transform:scaleX(1)}.mode-icon-simple{width:36px;height:36px;flex-shrink:0;color:var(--text-secondary);transition:all .3s ease}.mode-card:hover .mode-icon-simple{transform:scale(1.1);color:var(--learning-purple)}.mode-card.selected .mode-icon-simple{color:var(--confidence-blue);transform:scale(1.05)}.mode-label{font-size:16px;font-weight:600;color:var(--text-primary);margin:0;line-height:1.2}.input-method-section{margin-bottom:40px;padding:28px;background:var(--section-bg);border-radius:var(--radius-lg);border:1px solid rgba(229,231,235,.5);animation:cardSlideIn .5s ease-out .2s both}.method-buttons-single{display:flex;gap:12px}.method-card{flex:1;padding:24px 20px;background:var(--card-bg);border:2px solid rgba(229,231,235,.8);border-radius:var(--radius-md);text-align:center;transition:all .3s cubic-bezier(.4,0,.2,1);cursor:pointer;font-size:15px;font-weight:600;color:var(--text-secondary);display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:0 2px 6px #2d4a9d0d;position:relative}.method-icon{width:28px;height:28px;color:var(--text-secondary);transition:all .3s ease}.method-card:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 8px 20px #2d4a9d1f;border-color:var(--learning-purple)}.method-card:hover .method-icon{transform:scale(1.15);color:var(--learning-purple)}.method-card.selected{border-color:var(--confidence-blue);background:linear-gradient(135deg,#2d4a9d0f,#6f5cf10a);color:var(--confidence-blue);box-shadow:0 4px 16px #2d4a9d26,0 0 0 2px #2d4a9d1a;transform:translateY(-2px)}.method-card.selected .method-icon{color:var(--confidence-blue);transform:scale(1.1)}.input-area{margin-bottom:24px}.upload-zone{position:relative;margin-bottom:20px}.file-input{position:absolute;opacity:0;width:0;height:0}.upload-label-single{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;background:var(--section-bg);border:2px dashed var(--border-color);border-radius:var(--radius-md);cursor:pointer;transition:all .2s ease}.upload-label-single:hover{border-color:var(--primary-light);background:#4f46e50d}.upload-icon{width:48px;height:48px;margin-bottom:12px;color:var(--text-light)}.upload-label-single h3{font-size:16px;font-weight:600;color:var(--text-primary);margin-bottom:6px}.upload-label-single p{font-size:13px;color:var(--text-light)}.preview-zone{display:flex;flex-direction:column;gap:16px}.preview-img{width:100%;border-radius:var(--radius-md);box-shadow:var(--shadow-card)}.preview-actions-single{display:flex;gap:12px}.text-input-zone{display:flex;flex-direction:column;gap:16px}.input-label-single{display:block;font-size:15px;font-weight:600;color:var(--text-primary);margin-bottom:8px}.problem-textarea-single{width:100%;padding:16px;font-size:16px;font-family:inherit;color:var(--text-primary);background:var(--section-bg);border:1px solid var(--border-color);border-radius:var(--radius-sm);resize:vertical;min-height:120px;transition:all .2s ease}.problem-textarea-single:focus{border-color:var(--primary-color);background:var(--card-bg);outline:none;box-shadow:0 0 0 3px #4f46e51a}.problem-textarea-single::placeholder{color:var(--text-light)}.input-hint-single{font-size:13px;color:var(--text-light);margin-top:-8px;line-height:1.5}.examples-inline{margin-bottom:8px}.examples-label{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:10px}.examples-chips{display:flex;flex-wrap:wrap;gap:8px}.example-chip{padding:8px 14px;font-size:13px;background:var(--card-bg);color:var(--text-secondary);border:1px solid var(--border-color);border-radius:9999px;transition:all .2s ease}.example-chip:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color);transform:translateY(-1px)}.error-message-single{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fef2f2;border:1px solid #FCA5A5;border-radius:var(--radius-sm);margin-bottom:20px;color:#dc2626;font-size:14px}.ocr-processing{display:flex;align-items:center;gap:12px;padding:16px;background:var(--section-bg);border-radius:var(--radius-sm);margin-bottom:16px;color:var(--text-secondary);font-size:14px}.spinner-small{width:20px;height:20px;border:2px solid var(--border-color);border-top-color:var(--primary-color);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.problem-selection{margin-bottom:20px}.problem-selection-label{font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:12px}.problem-chips{display:flex;flex-direction:column;gap:10px;max-height:300px;overflow-y:auto}.problem-chip{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;background:var(--card-bg);border:2px solid var(--border-color);border-radius:var(--radius-md);text-align:left;transition:all .2s ease;cursor:pointer;width:100%}.problem-chip:hover{border-color:var(--primary-light);transform:translateY(-1px);box-shadow:0 4px 8px #4f46e51a}.problem-chip.selected{border-color:var(--primary-color);background:linear-gradient(to bottom,#4f46e50f,#6366f108);box-shadow:0 4px 12px #4f46e526,0 0 0 2px #4f46e514}.problem-chip-label{font-size:13px;font-weight:600;color:var(--primary-color)}.problem-chip-preview{font-size:14px;color:var(--text-primary);line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.selected-problem-display{padding:16px;background:var(--section-bg);border-radius:var(--radius-sm);border-left:3px solid var(--primary-color);margin-bottom:16px}.selected-problem-label{font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.selected-problem-text{font-size:15px;color:var(--text-primary);line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.crop-container{position:relative;width:100%;height:400px;background:#000;border-radius:var(--radius-md);overflow:hidden;margin-bottom:16px}.crop-actions{display:flex;gap:12px;margin-top:16px}.crop-actions button{flex:1}.photo-button-row{display:flex;gap:12px;margin-bottom:12px}.photo-button-row button{flex:1}.upload-helper-text{margin-top:12px;font-size:13px;color:var(--text-light);line-height:1.5;max-width:400px}.error-tips{margin-top:12px;padding-left:20px;list-style:disc}.error-tips li{margin-bottom:6px;font-size:14px;line-height:1.5}.analyzing-button{display:flex;align-items:center;justify-content:center;gap:10px}.spinner-inline{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin .8s linear infinite}@media(max-width:640px){.mode-card{min-height:100px;padding:20px 16px;gap:10px}.mode-icon-simple{width:28px;height:28px}.mode-label{font-size:15px}.crop-container{height:300px}.photo-button-row{flex-direction:column;gap:8px}.photo-button-row button{width:100%}}@media(min-width:768px){.landing-container{padding:40px}.landing-container-single{padding:48px 40px}.landing-header-single{margin-bottom:44px}.landing-title{font-size:36px}.landing-tagline{font-size:17px}.mode-section{margin-bottom:48px}.mode-icon{font-size:48px}.mode-icon-simple{width:40px;height:40px}.mode-card{padding:32px 28px}.mode-text h2{font-size:20px}.mode-text p{font-size:15px}.mode-label{font-size:18px}.section-title{font-size:20px;margin-bottom:24px}.input-method-section{padding-top:36px;margin-bottom:36px}.method-card{padding:24px 20px}.problem-textarea-single{min-height:140px}}.results{min-height:100vh;padding:28px 20px;animation:fadeIn .5s ease-out}.results-container{max-width:820px;width:100%;margin:0 auto;background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);overflow:hidden;animation:slideUp .6s cubic-bezier(.4,0,.2,1)}.results-header{background:linear-gradient(135deg,var(--confidence-blue) 0%,var(--learning-purple) 100%);color:#fff;padding:40px 28px;text-align:center;position:relative}.results-header:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:80px;height:4px;background:linear-gradient(90deg,var(--soft-teal),rgba(255,255,255,.5));border-radius:2px 2px 0 0}.results-title{font-size:30px;font-weight:700;margin-bottom:10px;letter-spacing:-.02em}.results-subtitle{font-size:17px;opacity:.95;font-weight:400}.results-content{padding:32px 24px;min-height:300px}.problem-display{margin-bottom:32px;padding:24px;background:var(--section-bg);border-radius:var(--radius-lg);border-left:4px solid var(--confidence-blue);box-shadow:0 2px 8px #2d4a9d0f}.problem-display h3{font-size:13px;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.8px;margin-bottom:14px}.problem-text{font-size:19px;font-weight:600;color:var(--text-primary);line-height:1.7}.problem-image-container{border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow-sm)}.problem-image{width:100%;height:auto;display:block}.loading-state{text-align:center;padding:48px 24px}.loading-state p{font-size:16px;color:var(--text-secondary);margin-top:16px}.error-state{text-align:center;padding:48px 24px}.error-icon{width:64px;height:64px;margin-bottom:16px;margin-left:auto;margin-right:auto;color:#dc2626}.error-state h3{font-size:24px;color:var(--text-primary);margin-bottom:12px}.error-state p{font-size:16px;color:var(--text-secondary);margin-bottom:24px;line-height:1.6}.guidance-content{animation:fadeIn .5s ease-in}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.guidance-text{font-size:16px;line-height:1.8;color:var(--text-primary)}.mode-parent{background:linear-gradient(135deg,#2d4a9d0a,#fff0);padding:28px;border-radius:var(--radius-lg);border:2px solid rgba(45,74,157,.1)}.mode-kid{background:linear-gradient(135deg,#6f5cf10a,#fff0);padding:28px;border-radius:var(--radius-lg);border:2px solid rgba(111,92,241,.1)}.result-heading{color:var(--confidence-blue);font-weight:700;margin:28px 0 14px;line-height:1.3;letter-spacing:-.01em}.result-heading:first-child{margin-top:0}.guidance-text h3{font-size:20px}.guidance-text h4{font-size:18px}.guidance-text h5{font-size:16px}.result-paragraph{margin-bottom:16px;line-height:1.8}.result-paragraph:last-child{margin-bottom:0}.result-paragraph strong{color:var(--text-primary);font-weight:600}.result-list-item{margin-left:24px;margin-bottom:8px;line-height:1.6}.json-guidance{display:flex;flex-direction:column;gap:28px}.json-section{background:var(--section-bg);padding:24px;border-radius:var(--radius-lg);border-left:4px solid var(--confidence-blue);box-shadow:0 2px 6px #2d4a9d0a;transition:all .3s ease}.json-section:hover{box-shadow:0 4px 12px #2d4a9d14;transform:translateY(-1px)}.method-section{background:linear-gradient(135deg,rgba(111,92,241,.06) 0%,var(--section-bg) 100%);border-left-color:var(--learning-purple)}.method-explanation{font-style:italic;color:var(--text-secondary);margin-top:8px}.teaching-step{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border-color)}.teaching-step:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}.instruction-text{font-size:14px;color:var(--text-secondary);font-style:italic;margin-top:8px}.visual-hint{background:var(--bg-light);padding:16px;border-radius:var(--radius-sm);font-family:Courier New,monospace;font-size:14px;line-height:1.6;overflow-x:auto;white-space:pre;color:var(--text-primary)}.notes-list{list-style:none;padding:0;margin:12px 0 0}.notes-list .result-list-item{margin-left:0;padding-left:0;margin-bottom:12px}.problem-analysis{margin-top:24px;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--card-bg)}.analysis-summary{padding:12px 16px;cursor:pointer;font-weight:600;color:var(--text-secondary);-webkit-user-select:none;user-select:none;transition:background .2s ease}.analysis-summary:hover{background:var(--section-bg)}.analysis-content{padding:16px;border-top:1px solid var(--border-color);font-size:14px}.analysis-content p{margin-bottom:8px;line-height:1.6}.analysis-content p:last-child{margin-bottom:0}.analysis-content .parent-tip{margin-top:16px;padding-top:12px;border-top:1px solid var(--border-color);color:var(--text-primary);font-style:italic}.results-footer{padding:24px;border-top:1px solid var(--border-color);background:var(--bg-light);text-align:center}.button{padding:16px 32px;font-size:16px;font-weight:600;border-radius:var(--radius-md);cursor:pointer;transition:all .3s ease;border:none}.button-primary{background:var(--primary-color);color:#fff}.button-primary:hover{background:var(--primary-dark);transform:translateY(-2px);box-shadow:var(--shadow-md)}@media(min-width:768px){.results-title{font-size:32px}.results-subtitle{font-size:18px}.problem-text{font-size:20px}.guidance-text{font-size:17px}.guidance-text h3{font-size:22px}.guidance-text h4{font-size:19px}}@media print{.results{background:#fff}.results-header{background:#fff;color:var(--text-primary)}.results-footer{display:none}}.app{min-height:100vh;width:100%}.app>*{animation:viewTransition .3s ease-in-out}@keyframes viewTransition{0%{opacity:0}to{opacity:1}}.back-button{background:#fff3;color:#fff;padding:8px 16px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;margin-bottom:16px;transition:background .3s ease;border:none;cursor:pointer}.back-button:hover{background:#ffffff4d}@media(max-height:600px){.app>*{min-height:auto}}*{margin:0;padding:0;box-sizing:border-box}:root{--confidence-blue: #2D4A9D;--learning-purple: #6F5CF1;--soft-teal: #4AC3C8;--clean-white: #FFFFFF;--warm-gray: #F6F7FB;--primary-color: #2D4A9D;--primary-light: #6F5CF1;--primary-dark: #1E3A8A;--gradient-top: #F6F7FB;--gradient-bottom: #EEF0FC;--card-bg: #FFFFFF;--section-bg: #F6F7FB;--border-color: #E5E7EB;--text-primary: #1F2937;--text-secondary: #6B7280;--text-light: #9CA3AF;--shadow-card: 0 4px 20px rgba(45, 74, 157, .08), 0 2px 8px rgba(0, 0, 0, .04);--shadow-hover: 0 12px 32px rgba(45, 74, 157, .15), 0 4px 12px rgba(0, 0, 0, .06);--shadow-lg: 0 20px 40px rgba(45, 74, 157, .12), 0 8px 16px rgba(0, 0, 0, .05);--radius-sm: 12px;--radius-md: 16px;--radius-lg: 20px;--radius-xl: 28px;--font-size-base: 17px;--line-height-base: 1.7}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#f6f7fb,#eef0fc);color:var(--text-primary);font-size:var(--font-size-base);line-height:var(--line-height-base);min-height:100vh;position:relative}body:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;background-image:radial-gradient(circle at 20% 50%,rgba(111,92,241,.03) 0%,transparent 50%),radial-gradient(circle at 80% 80%,rgba(74,195,200,.03) 0%,transparent 50%),repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(45,74,157,.02) 40px,rgba(45,74,157,.02) 80px);pointer-events:none;z-index:0}#root{min-height:100vh;display:flex;flex-direction:column;position:relative;z-index:1}.container{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}@media(min-width:768px){.container{padding:0 24px}}@media(min-width:1024px){.container{padding:0 32px}}button{font-family:inherit;cursor:pointer;border:none;outline:none;transition:all .3s ease}button:disabled{opacity:.6;cursor:not-allowed}input,textarea{font-family:inherit;outline:none;transition:all .3s ease}.text-center{text-align:center}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}.p-1{padding:8px}.p-2{padding:16px}.p-3{padding:24px}.p-4{padding:32px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner{border:3px solid rgba(99,102,241,.2);border-top:3px solid var(--primary-color);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:20px auto}.btn-primary{width:100%;height:56px;border-radius:9999px;font-weight:600;font-size:16px;color:#fff;background:linear-gradient(135deg,var(--confidence-blue) 0%,var(--learning-purple) 100%);box-shadow:0 4px 12px #2d4a9d33;transition:all .3s cubic-bezier(.4,0,.2,1)}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #2d4a9d4d}.btn-primary:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #2d4a9d33}.btn-secondary{padding:8px 16px;border-radius:9999px;background:#f3f4f6;border:1px solid var(--border-color);color:var(--text-secondary);font-size:14px;transition:all .2s ease}.btn-secondary:hover:not(:disabled){background:#e5e7eb}.back-button{display:inline-flex!important;align-items:center;gap:6px;background:var(--section-bg);color:var(--text-secondary);padding:10px 18px;border-radius:9999px;font-size:14px;font-weight:500;margin-bottom:20px;border:1px solid var(--border-color);transition:all .2s ease;cursor:pointer}.back-button:hover{background:#e5e7eb;border-color:var(--text-secondary)}
