*{margin:0;padding:0;box-sizing:border-box}body{font-family:Microsoft JhengHei,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;padding:2rem}#root{max-width:1600px;margin:0 auto}.container{background:#fff;border-radius:20px;padding:3rem;box-shadow:0 20px 60px #0000004d;min-height:80vh}h1{color:#667eea;text-align:center;font-size:2.5rem;margin-bottom:.5rem}.subtitle{text-align:center;color:#666;margin-bottom:3rem;font-size:1rem}.tabs{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:2px solid #e0e0e0;flex-wrap:wrap}.tab{padding:1rem 2rem;background:none;border:none;font-size:1.1rem;cursor:pointer;color:#666;transition:all .3s;border-bottom:3px solid transparent}.tab:hover{color:#667eea;background:#f8f9fa}.tab.active{color:#667eea;border-bottom-color:#667eea;font-weight:700}.tab-content{display:none}.tab-content.active{display:block;animation:fadeIn .3s}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;border-radius:15px;box-shadow:0 5px 15px #0003;transition:transform .3s}.stat-card:hover{transform:translateY(-5px)}.stat-card h3{font-size:.9rem;opacity:.9;margin-bottom:.5rem}.stat-card .value{font-size:2.5rem;font-weight:700}.charts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:2rem;margin-bottom:2rem}.chart-box{background:#f8f9fa;padding:2rem;border-radius:15px;box-shadow:0 2px 10px #0000001a}.chart-box h3{color:#333;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem}table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 10px #0000001a}th{background:#667eea;color:#fff;padding:1rem;text-align:left;font-weight:600}td{padding:1rem;border-bottom:1px solid #e0e0e0}tr:hover{background:#f8f9fa}.ai-panel{background:#f8f9fa;padding:2rem;border-radius:15px;margin-bottom:2rem;box-shadow:0 2px 10px #0000001a}.ai-panel h3{color:#667eea;margin-bottom:1rem;font-size:1.5rem}.ai-result{background:#fff;padding:1.5rem;border-radius:10px;border-left:4px solid #667eea;white-space:pre-wrap;line-height:1.8;margin-top:1rem;font-family:Courier New,monospace}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#333;font-weight:600}.form-group input,.form-group textarea{width:100%;padding:.8rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;font-family:inherit;transition:border-color .3s}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#667eea}.btn{padding:1rem 2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:1.1rem;cursor:pointer;transition:all .3s;font-weight:600}.btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.loading{text-align:center;color:#667eea;font-size:1.2rem;padding:2rem}.error{background:#fee;color:#c33;padding:1rem;border-radius:8px;margin:1rem 0;border-left:4px solid #c33}.success{background:#efe;color:#3a3;padding:1rem;border-radius:8px;margin:1rem 0;border-left:4px solid #3a3}@media (max-width: 768px){body{padding:1rem}.container{padding:1.5rem}h1{font-size:1.8rem}.tabs{overflow-x:auto}.tab{font-size:.9rem;padding:.8rem 1rem}.charts-grid{grid-template-columns:1fr}}@media (max-width: 1024px){.header-inner{padding:0 12px!important}.header-nav{gap:2px!important}.header-nav button{padding:5px 10px!important;font-size:11px!important}.main-content{padding:16px 12px!important}td,th{padding:.5rem!important;font-size:12px!important}}@media (max-width: 768px){body{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}.app-header{height:auto!important;min-height:52px!important}.header-inner{height:auto!important;flex-wrap:wrap!important;padding:8px 10px!important;gap:8px!important}.header-logo{font-size:14px!important}.header-nav{width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;flex-wrap:nowrap!important;gap:3px!important;padding-bottom:4px!important}.header-nav button{flex-shrink:0!important;font-size:11px!important;padding:5px 10px!important;white-space:nowrap!important}.main-content{padding:12px 8px!important;min-height:calc(100vh - 100px)!important}h1,h2,h3{font-size:90%!important}[style*="maxWidth:1080"],[style*="maxWidth: 1080"]{max-width:100%!important}[style*="display: grid"],[style*="display:grid"]{grid-template-columns:1fr!important}table{display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}[style*="flexDirection: row"],[style*="flex-direction: row"]{flex-wrap:wrap!important}button,[role=button]{min-height:44px!important;min-width:44px!important}input,textarea,select{font-size:16px!important;padding:10px 8px!important;max-width:100%!important}.token-modal-overlay>div,[style*="position: fixed"]{max-width:95vw!important;max-height:85vh!important;overflow-y:auto!important}.token-modal-box{max-width:95vw!important;padding:16px!important}[style*="bottom: 24px"]{bottom:12px!important;left:8px!important;right:8px!important;max-width:calc(100vw - 16px)!important}canvas{max-width:100%!important;height:auto!important}}@media (min-width: 769px){.app-header{height:58px!important}.header-nav{overflow-x:visible!important;flex-wrap:nowrap!important}}@media (max-width: 480px){.header-logo{font-size:13px!important}.header-nav button{font-size:10px!important;padding:4px 7px!important;min-height:36px!important;min-width:36px!important}.main-content{padding:8px 4px!important}[style*="1fr 1fr"]{grid-template-columns:1fr!important}}@media print{.app-header,nav,button,.mobile-menu-btn{display:none!important}body{background:#fff!important;color:#000!important}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
