*{box-sizing:border-box}body{min-width:320px;margin:0;background:#f3f7fd;color:#0b2147;font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid #e5e7eb;backdrop-filter:blur(14px)}.nav{width:min(1160px,calc(100% - 32px));min-height:68px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:10px;color:#0b2f6f;font-weight:800;white-space:nowrap}.brand img{width:40px;height:40px;border-radius:9px;object-fit:cover}.nav-links{display:flex;align-items:center;gap:4px;color:#374151;font-size:14px;font-weight:700}.nav-links a{padding:9px 13px;border-radius:8px;white-space:nowrap}.nav-links a:hover,.nav-links .active{color:#1357d8;background:#eef5ff}.lang-switch{margin-left:6px;padding-left:10px;border-left:1px solid #e5e7eb}.lang-switch select{height:34px;padding:0 30px 0 12px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#0f172a;font-size:13px;font-weight:800}.shell{width:min(1160px,calc(100% - 32px));margin:0 auto;padding:38px 0 64px}.intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px}.intro h1{margin:3px 0 8px;font-size:clamp(30px,4vw,46px);line-height:1.14}.intro p{margin:0;color:#516580}.eyebrow{color:#1768e9;font-size:12px;font-weight:900;letter-spacing:.14em}.local-badge{white-space:nowrap;color:#1266a9;background:#e6f6ff;border:1px solid #cae8f8;border-radius:99px;padding:6px 12px;font-size:12px;font-weight:800}.workspace{overflow:hidden;background:#fff;border:1px solid #dce6f4;border-radius:16px;box-shadow:0 16px 42px rgba(18,50,99,.08)}.topbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px 20px;border-bottom:1px solid #e4ebf4}.topbar-group{display:flex;flex-direction:column;gap:3px}.topbar label,.color-input,.canvas-header{font-size:13px;font-weight:800}.topbar select,.topbar input{height:39px;padding:4px 10px;border:1px solid #cad7ea;border-radius:8px;background:#fff;color:#0b2147}.topbar input{width:105px}.topbar-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}button{min-height:38px;padding:6px 11px;border:1px solid #ccdaeb;border-radius:8px;background:#fff;color:#124685;font-size:13px;font-weight:750}button:hover{border-color:#1768e9;background:#eef5ff}.primary,.selected{background:#1768e9;color:#fff;border-color:#1768e9}.primary:hover,.selected:hover{background:#0e55c6;color:#fff}.editor-grid{display:grid;grid-template-columns:185px minmax(0,1fr);min-height:480px}.tools{padding:16px;border-right:1px solid #e4ebf4;background:#f8fbff}.tool-section+.tool-section{margin-top:24px}.tool-section h2,.timeline h2{margin:0 0 10px;font-size:14px}.tool-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tool-buttons button{padding:5px 6px}.swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.swatches button{width:27px;height:27px;min-height:27px;padding:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #b8c9de}.swatches button.selected{box-shadow:0 0 0 2px #1768e9}.color-input{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}.color-input input{width:42px;height:35px;border:0;background:transparent}.canvas-area{min-width:0;padding:17px 20px 22px}.canvas-header{display:flex;justify-content:space-between;margin-bottom:10px}.canvas-header span{color:#64748b}.canvas-scroll{overflow-x:auto;background:#eaf1fb;border:1px solid #dce6f4;border-radius:10px;padding:18px}.canvas-scroll canvas{display:block;max-width:none;background:#000;image-rendering:pixelated;touch-action:none;cursor:crosshair}.canvas-hint{margin:8px 0 22px;color:#64748b;font-size:12px}.preview-wrap{padding:15px;background:#08172f;border:1px solid #233f69;border-radius:10px;color:#dcecff}.preview-wrap>div{display:flex;justify-content:space-between;margin-bottom:10px;font-size:13px;font-weight:800}.preview-wrap small{color:#8ee8ff}.preview-wrap canvas{display:block;max-width:100%;height:auto;max-height:180px;margin:auto;background:#000;image-rendering:pixelated}.timeline{padding:18px 20px 20px;border-top:1px solid #e4ebf4}.timeline-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.timeline-head h2{margin:0}.timeline-head>div{display:flex;flex-wrap:wrap;gap:7px}.frame-list{display:flex;gap:10px;overflow-x:auto;padding:13px 2px 5px}.frame-item{flex:none;width:132px;padding:7px;text-align:left;background:#f7faff}.frame-item.selected{background:#e6f0ff;color:#0752c4}.frame-item canvas{display:block;width:100%;height:auto;background:#000;image-rendering:pixelated;margin-bottom:4px}.status{min-height:25px;margin:12px 0;color:#425b80;font-size:13px}footer{text-align:center;padding:22px;background:#fff;color:#64748b;font-size:13px}@media(max-width:850px){.nav{align-items:flex-start;flex-direction:column;padding:10px 0}.nav-links{width:100%;overflow-x:auto}.editor-grid{grid-template-columns:1fr}.tools{border-right:0;border-bottom:1px solid #e4ebf4}.tool-section{display:inline-block;vertical-align:top;margin-right:24px}.tool-section+.tool-section{margin-top:0}.tool-buttons{display:flex;flex-wrap:wrap}.swatches{display:flex;flex-wrap:wrap}.topbar-actions{margin-left:0}}@media(max-width:540px){.intro{display:block}.local-badge{display:inline-block;margin-top:14px}.shell{padding-top:25px}.topbar,.canvas-area,.timeline{padding-left:12px;padding-right:12px}.canvas-scroll{padding:8px}.topbar-actions{width:100%}.topbar-actions button{flex:1}.frame-item{width:112px}}
