*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans SC,sans-serif;background:#f5f5f7;color:#1d1d1f;overflow:hidden}#container{width:100vw;height:100vh;background:linear-gradient(135deg,#fafafa,#f0f0f2)}.controls{position:fixed;top:20px;left:20px;z-index:100;display:flex;flex-direction:column;gap:12px;background:#fffffff2;padding:16px;border-radius:12px;box-shadow:0 4px 24px #00000014;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-width:200px}.control-group{display:flex;flex-direction:column;gap:6px}.control-group label{font-size:12px;font-weight:500;color:#86868b;text-transform:uppercase;letter-spacing:.5px}.control-group select,.control-group input[type=range]{width:100%}.control-group select{padding:8px 32px 8px 12px;border:1px solid #d2d2d7;border-radius:8px;font-size:14px;background:#fff;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 8px center;background-size:16px}.control-group select:focus{outline:none;border-color:#0071e3;box-shadow:0 0 0 3px #0071e333}.control-group input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:6px;background:#d2d2d7;border-radius:3px;cursor:pointer}.control-group input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#0071e3;cursor:pointer;border:2px solid white;box-shadow:0 2px 6px #00000026}.controls button{padding:10px 16px;border:none;border-radius:8px;background:#0071e3;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s,transform .1s}.controls button:hover{background:#0077ed}.controls button:active{transform:scale(.98)}.controls button.secondary{background:#e5e5ea;color:#1d1d1f}.controls button.secondary:hover{background:#d1d1d6}.info-panel{position:fixed;bottom:20px;left:20px;z-index:100;padding:16px;border-radius:12px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 24px #00000014;min-width:180px}.info-panel h3{margin-bottom:12px;font-size:14px;font-weight:600;color:#1d1d1f}.stats{display:flex;flex-direction:column;gap:6px}.stat{display:flex;justify-content:space-between;font-size:13px}.stat span:first-child{color:#86868b}.stat span:last-child{font-weight:500;color:#1d1d1f}.help-text{margin-top:12px;font-size:11px;color:#86868b;line-height:1.5}.word-detail{position:fixed;bottom:20px;right:20px;z-index:100;padding:24px;border-radius:16px;background:#fffffffa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 8px 32px #0000001f;min-width:240px;max-width:320px;transition:opacity .2s,transform .2s}.word-detail.hidden{opacity:0;pointer-events:none;transform:translateY(10px)}.word-detail .close-btn{position:absolute;top:12px;right:12px;width:28px;height:28px;border:none;border-radius:50%;background:#e5e5ea;color:#86868b;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.word-detail .close-btn:hover{background:#d1d1d6}.word-hanzi{font-size:48px;font-weight:700;color:#1d1d1f;margin-bottom:8px;line-height:1.2}.word-pinyin{font-size:20px;color:#0071e3;margin-bottom:12px;font-weight:500}.word-definition{font-size:14px;color:#48484a;line-height:1.5;margin-bottom:16px}.word-hsk{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.word-hsk.hsk-1{background:#34c759;color:#fff}.word-hsk.hsk-2{background:#5ac8fa;color:#fff}.word-hsk.hsk-3{background:#007aff;color:#fff}.word-hsk.hsk-4{background:#5856d6;color:#fff}.word-hsk.hsk-5{background:#af52de;color:#fff}.word-hsk.hsk-6{background:#ff3b30;color:#fff}.word-hsk.hsk-unknown{background:#8e8e93;color:#fff}@media(max-width:640px){.controls{top:10px;left:10px;right:10px;padding:10px 12px;min-width:0;flex-direction:row;flex-wrap:wrap;gap:8px}.control-group{flex:1 1 0;min-width:0}.control-group label{font-size:11px}.control-group select{padding:6px 28px 6px 8px;font-size:13px}.controls button{padding:8px 12px;font-size:13px;flex:1 1 0;min-width:0;white-space:nowrap}.info-panel{bottom:10px;left:10px;right:10px;padding:10px 14px;min-width:0}.info-panel h3{display:none}.stats{flex-direction:row;gap:12px}.help-text{display:none}.word-detail{bottom:0;left:0;right:0;border-radius:16px 16px 0 0;min-width:0;max-width:none;padding:20px}.word-hanzi{font-size:36px}.word-pinyin{font-size:18px}}.node{cursor:pointer}.node rect{transition:stroke .15s,fill .15s}.node:hover rect{stroke:#0071e3;stroke-width:2}.node:hover circle{filter:brightness(1.2)}.node text{pointer-events:none;-webkit-user-select:none;user-select:none}.hsk-badge{font-size:9px;font-weight:600}.hsk-1-fill{fill:#34c759}.hsk-2-fill{fill:#5ac8fa}.hsk-3-fill{fill:#007aff}.hsk-4-fill{fill:#5856d6}.hsk-5-fill{fill:#af52de}.hsk-6-fill{fill:#ff3b30}.hsk-unknown-fill{fill:#8e8e93}.loading{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);font-size:18px;color:#86868b;z-index:1000}.loading:after{content:"";display:inline-block;width:20px;height:20px;margin-left:10px;border:2px solid #d2d2d7;border-top-color:#0071e3;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}
