@font-face{font-family:Outfit;src:local('Outfit');font-display:swap}@font-face{font-family:SourceHan;src:local('Source Han Sans SC'),local('Noto Sans CJK SC');font-display:swap}
:root{--blue:#0066ff;--red:#ff463d;--ink:#152130;--muted:#647084;--line:#dfe5ed;--pale:#f1f5fb;--bg:#fff;--radius:14px}*{box-sizing:border-box}body{margin:0;font:16px/1.6 Outfit,SourceHan,'PingFang SC',system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #91baff;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(38px,5.7vw,78px);line-height:1.18;letter-spacing:-.04em;font-weight:450}h2{font-size:30px;line-height:1.3;font-weight:500;letter-spacing:-.02em}h3{font-size:21px;font-weight:500}small,.meta{font-size:14px;color:var(--muted)}.wrap{max-width:1360px;padding:0 56px;margin:auto}.header{height:94px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:17px;align-items:center}.brand strong{font-size:29px;letter-spacing:-1.5px;font-weight:600}.brand span{font-size:18px;border-left:1px solid #c7d0de;padding-left:17px;line-height:1.2}.nav{display:flex;align-items:center;gap:32px;font-size:15px}.nav a.active{color:var(--blue)}.nav-right{display:flex;gap:12px;align-items:center}.avatar{width:36px;height:36px;display:inline-grid;place-items:center;background:#e8f1ff;color:var(--blue);border-radius:50%}.btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;padding:11px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;line-height:1.4}.btn:hover{background:#f4f7fc;border-color:#b9c6d8}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:#0053d4}.btn.dark{background:var(--ink);color:#fff;border-color:var(--ink)}.btn.quiet{border:0;background:transparent;padding:8px}.btn.danger{color:#bd302a;border-color:#ffc4be}.btn.small{padding:7px 13px;font-size:14px;min-height:36px}.row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:22px}.muted{color:var(--muted)}.eyebrow{font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);font-weight:500}.pill{font-size:13px;padding:4px 10px;border-radius:4px;background:#edf3fc;color:#34537d;display:inline-block;white-space:nowrap}.pill.blue{background:#e9f1ff;color:var(--blue)}.pill.red{background:#fff0ee;color:#bd302a}.notice{padding:12px 18px;border-left:3px solid var(--blue);background:#f0f6ff;color:#365071;font-size:14px}.notice.warn{background:#fff7ed;border-color:#e0a24d;color:#825524}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:35px;padding:70px 0 64px;align-items:center}.hero h1{margin:20px 0 22px}.hero p{max-width:480px;color:var(--muted);font-size:17px;line-height:1.9}.hero .row{margin-top:28px}.hero-art{position:relative;height:380px;overflow:hidden;background:#eef3fa;border-radius:3px}.hero-art .orbit{position:absolute;width:280px;height:280px;border:58px solid var(--blue);border-radius:50%;left:15%;top:12%;animation:float 8s ease-in-out infinite}.hero-art .square{position:absolute;width:145px;height:145px;background:var(--red);right:9%;bottom:11%;transform:rotate(-12deg)}.hero-art .stripe{position:absolute;width:260px;height:8px;background:#fff;transform:rotate(-38deg);left:-25px;top:170px;box-shadow:0 18px #fff,0 36px #fff}.hero-art .caption{position:absolute;left:20px;bottom:15px;font-size:12px;color:#59697c}.hero-art .art-label{position:absolute;right:24px;top:19px;font-size:15px;letter-spacing:.15em}.hero-art .tiny{position:absolute;width:28px;height:28px;border-radius:50%;background:#34a853;top:30px;left:40px}.intro-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;grid-template-columns:2fr 1fr 1fr;margin-bottom:60px}.intro-strip>div{padding:24px 28px 24px 0}.intro-strip>div+div{border-left:1px solid var(--line);padding-left:28px}.intro-strip strong{font-size:22px;font-weight:450;display:block}.section{margin:44px 0 64px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:26px;gap:16px}.section-head p{margin-top:7px;color:var(--muted)}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.module-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}.module-card:hover{transform:translateY(-4px);box-shadow:0 10px 30px #1b3d6b0b}.module-art{height:175px;display:flex;align-items:center;justify-content:center;gap:12px;position:relative;overflow:hidden;background:#f1f5fb}.module-art .swatch{width:55px;height:75px;transform:rotate(-10deg);border-radius:3px;box-shadow:6px 8px 0 #0000000b}.module-art .swatch:nth-child(2){transform:rotate(8deg);margin-top:-25px}.module-art .swatch:nth-child(3){transform:rotate(22deg)}.module-art .tile{width:58px;height:76px;border:1px solid #b5caf0;display:grid;place-items:center;border-radius:7px;font-size:28px;background:#fff;color:var(--blue);transform:rotate(-10deg)}.module-art .disc{width:100px;height:100px;border:26px solid var(--blue);border-radius:50%}.module-art .block{width:65px;height:65px;background:var(--red);transform:rotate(25deg);margin-left:-38px;margin-top:55px}.module-art .symbol{font-size:68px;line-height:1;color:var(--blue);font-weight:300}.module-body{padding:23px}.module-body h3{margin:8px 0 4px}.module-body p{color:var(--muted);font-size:14px;min-height:45px;margin:14px 0}.module-body .row{margin-top:20px}.footer{margin-top:60px;border-top:1px solid var(--line);padding:28px 0 36px;display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}.page-head{padding:46px 0 30px}.page-head h1{font-size:44px;margin:10px 0}.empty{padding:45px 24px;border:1px dashed #cbd5e3;text-align:center;color:var(--muted);border-radius:12px}.panel{padding:26px;border:1px solid var(--line);border-radius:12px;background:#fff}.panel h3{margin-bottom:16px}.list-row{padding:22px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.progress{height:5px;background:#e6edf7;border-radius:8px;overflow:hidden;margin:12px 0}.progress i{display:block;height:100%;background:var(--blue)}.login-page{min-height:calc(100vh - 160px);display:grid;grid-template-columns:1fr 460px;gap:90px;align-items:center}.login-copy h1{margin:20px 0;font-size:65px}.login-copy p{max-width:460px}.login-box{padding:35px;border:1px solid var(--line);border-radius:16px}.login-box h2{margin-bottom:8px}.field{display:grid;gap:6px;margin:15px 0}.field span,.field>label{font-size:14px;color:#425269}.field input,.field select,.field textarea,input.control,select.control{width:100%;padding:11px 12px;border:1px solid #ccd6e3;border-radius:7px;background:white;color:var(--ink);min-width:0}.field textarea{min-height:100px;resize:vertical}.field input[type=checkbox]{width:20px;height:20px}.check{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px}.check input{width:18px;height:18px;accent-color:var(--blue)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:12px 0;color:var(--muted);white-space:nowrap}.tabs button.active{color:var(--blue);border-color:var(--blue)}.quiz{max-width:850px;margin:0 auto 60px}.question{padding:30px 0;border-bottom:1px solid var(--line)}.question h3{margin-bottom:20px}.options{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.option{cursor:pointer;border:1px solid var(--line);border-radius:9px;overflow:hidden;padding:14px;display:flex;gap:12px;align-items:center;position:relative}.option:has(input:checked){border:2px solid var(--blue);background:#f6f9ff;padding:13px}.option input{accent-color:var(--blue);width:18px;height:18px}.color-chip{width:52px;height:52px;border-radius:7px;display:inline-block}.option img{width:80px;height:80px;object-fit:contain}.result{padding:20px;margin:15px 0;background:#f0f7f3;border-left:3px solid #34a853}.result.wrong{background:#fff2f0;border-color:var(--red)}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;max-width:800px;margin:30px auto}.memory-card{aspect-ratio:1.1;border:1px solid #c6d9ff;background:var(--blue);color:white;border-radius:12px;min-height:100px;padding:15px;font-size:20px}.memory-card.open{background:white;color:var(--blue)}.memory-card.matched{background:#eaf5ee;color:#247840;border-color:#b4dbbf}.memory-card:disabled{opacity:1}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.gallery-item img{width:100%;aspect-ratio:1;object-fit:contain;background:#f0f3f8;border:1px solid var(--line);border-radius:9px}.gallery-item h3{margin-top:12px}.loading{padding:100px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:99;background:#172033;color:#fff;border-radius:9px;padding:13px 24px;box-shadow:0 5px 25px #0002;display:none;max-width:90vw}#toast.show{display:block}dialog{border:1px solid var(--line);border-radius:14px;padding:30px;width:min(640px,calc(100vw - 30px));max-height:85vh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#14203766}dialog pre{white-space:pre-wrap;word-break:break-word}.admin-layout{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100vh - 95px)}.admin-nav{padding:35px 24px 35px 0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.admin-nav a{padding:11px 16px;border-radius:7px;color:#536277;font-size:15px}.admin-nav a.active{background:#eaf2ff;color:var(--blue)}.admin-content{padding:36px 0 60px 35px;min-width:0}.admin-content h1{font-size:36px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}.stat{padding:21px;border:1px solid var(--line);border-radius:10px}.stat strong{display:block;font-size:35px;font-weight:400;margin-top:8px}.table-wrap{max-width:100%;overflow:auto;margin:20px 0}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:14px 12px;vertical-align:top}th{background:#f4f7fb;font-weight:500;white-space:nowrap}td .btn{white-space:nowrap}.chart{display:flex;gap:10px;align-items:end;height:180px;padding-top:20px}.bar{flex:1;min-width:20px;background:#dceaff;position:relative;border-radius:4px 4px 0 0}.bar span{position:absolute;bottom:100%;width:100%;text-align:center;font-size:13px}.bar small{position:absolute;top:100%;font-size:12px;white-space:nowrap}.editor-layout{display:grid;grid-template-columns:210px minmax(0,1fr) 225px;gap:18px;align-items:start;margin-bottom:40px}.tool-panel{border:1px solid var(--line);border-radius:10px;padding:17px}.tool-panel h3{font-size:16px;margin-bottom:12px}.asset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.asset-btn{background:#f4f7fc;border:1px solid var(--line);border-radius:6px;padding:8px;min-width:0}.asset-btn img{width:55px;height:55px;object-fit:contain;max-width:100%}.asset-btn span{display:block;font-size:12px;line-height:1.4;color:var(--muted)}.canvas-zone{background:#eef2f7;padding:26px;border-radius:9px;min-width:0;display:grid;place-items:center;overflow:hidden}.canvas{width:100%;max-height:65vh;background:#fff;box-shadow:0 4px 20px #18355d18;touch-action:none;user-select:none;display:block}.canvas .selected{outline:none}.color-palette{display:flex;flex-wrap:wrap;gap:8px}.color-palette button{width:29px;height:29px;border:2px solid white;outline:1px solid #c9d3e0;border-radius:50%;padding:0}.color-palette button.active{outline:2px solid #263c5e}.toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.toolbar .btn{padding:7px 10px;font-size:14px}.tool-panel .field{margin:10px 0}.tool-panel input,.tool-panel select{padding:8px;font-size:14px}.editor-caption{font-size:13px;color:var(--muted);margin-top:12px}.fix-preview{padding:25px;background:#f2f5fa;border-radius:8px;margin-bottom:20px}.fix-preview strong{font-size:26px}.breadcrumb{font-size:14px;color:var(--muted);margin-top:28px}.code{font-family:ui-monospace,monospace;font-size:13px;min-height:200px!important}.mobile-tools{display:none}.full{width:100%}@keyframes float{50%{transform:translateY(-12px) rotate(7deg)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:1100px){.wrap{padding:0 28px}.hero-art{height:330px}.hero-art .orbit{left:8%;width:250px;height:250px}.nav{gap:18px}.editor-layout{grid-template-columns:160px minmax(0,1fr) 180px}.stats{grid-template-columns:repeat(2,1fr)}.admin-layout{grid-template-columns:180px minmax(0,1fr)}.login-page{gap:40px;grid-template-columns:1fr 400px}.login-copy h1{font-size:48px}}
@media(max-width:760px){.wrap{padding:0 20px}.header{height:auto;min-height:78px;flex-wrap:wrap;gap:12px;padding:16px 0}.brand strong{font-size:24px}.brand span{font-size:15px;padding-left:12px}.brand{gap:12px}.nav{order:3;width:100%;justify-content:space-between;font-size:14px;gap:12px;padding-top:5px}.nav-right .username{display:none}.nav-right{gap:4px}.hero{grid-template-columns:1fr;padding:36px 0;gap:28px}.hero h1{font-size:43px}.hero p{font-size:16px}.hero-art{height:245px}.hero-art .orbit{width:205px;height:205px;border-width:43px;left:22%;top:7%}.hero-art .square{width:110px;height:110px;right:17%}.intro-strip{grid-template-columns:1fr 1fr;margin-bottom:35px}.intro-strip>div:first-child{grid-column:1/-1;border-bottom:1px solid var(--line)}.intro-strip>div{padding:18px 0}.intro-strip>div:nth-child(2){padding-left:0;border:0}.intro-strip strong{font-size:19px}.module-grid{grid-template-columns:1fr}.module-card{display:grid;grid-template-columns:110px 1fr}.module-art{height:100%;min-height:210px;gap:4px}.module-art .swatch{width:22px;height:48px}.module-art .disc{width:65px;height:65px;border-width:16px}.module-art .block{width:35px;height:35px;margin-left:-30px}.module-art .tile{width:30px;height:45px;font-size:18px}.module-body{padding:18px}.module-body h3{font-size:20px}.module-body p{margin:8px 0;min-height:0}.module-body .row{margin-top:12px;gap:8px}.section{margin:30px 0 40px}.section-head{align-items:start}.section-head h2{font-size:26px}.footer{gap:15px;flex-direction:column}.page-head{padding:30px 0 22px}.page-head h1{font-size:34px}.grid2{grid-template-columns:1fr}.login-page{display:block;padding:35px 0}.login-copy h1{font-size:42px}.login-copy{margin-bottom:32px}.login-box{padding:24px}.options{grid-template-columns:1fr}.question{padding:24px 0}.memory-grid{gap:8px;grid-template-columns:repeat(3,1fr)}.memory-card{font-size:15px;padding:10px;min-height:85px}.gallery-grid{grid-template-columns:repeat(2,1fr);gap:16px}.gallery-item h3{font-size:17px}.admin-layout{display:block}.admin-nav{border:0;border-bottom:1px solid var(--line);flex-direction:row;overflow:auto;padding:18px 0;gap:4px}.admin-nav a{white-space:nowrap;padding:8px 12px}.admin-content{padding:24px 0 40px}.admin-content h1{font-size:29px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:29px}.panel{padding:19px}.editor-layout{display:flex;flex-direction:column;gap:12px;padding-bottom:65px}.editor-layout>section{width:100%}.editor-assets{order:2}.editor-center{order:1}.editor-inspector{order:3}.tool-panel .asset-grid{grid-template-columns:repeat(4,1fr)}.canvas-zone{padding:14px}.canvas{max-height:49vh}.editor-assets:not(.shown),.editor-inspector:not(.shown){display:none}.mobile-tools{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--line);padding:10px 15px calc(10px + env(safe-area-inset-bottom));gap:8px;justify-content:center;z-index:10}.mobile-tools .btn{flex:1;font-size:14px;padding:10px}.editor-caption{font-size:12px}.list-row{align-items:start;flex-wrap:wrap}.row{gap:10px}.toolbar{gap:5px}.toolbar .btn{min-height:42px}.notice{font-size:13px}.table-wrap{margin:15px -2px}.loading{padding:80px 20px}}
@media(max-width:360px){.wrap{padding:0 14px}.brand strong{font-size:21px}.brand span{font-size:13px}.nav{font-size:13px}.hero h1{font-size:38px}.module-card{grid-template-columns:82px 1fr}.module-body{padding:14px}.module-body h3{font-size:18px}.gallery-grid{grid-template-columns:1fr}.hero-art .orbit{left:14%}}

.hero-official{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;background:white}.hero-art:has(.hero-official)>:not(.hero-official){display:none}
