/* 一念造游 · Paper & Play / 创作工作台 */
:root{--bg:#f6f7f9;--surface:#fff;--ink:#182723;--sub:#62716d;--line:#e2e8e5;--primary:#18765c;--soft:#e8f2ed;--orange:#b5502b;--danger:#ba3b43;--radius:16px;--shadow:0 8px 28px #233a2d08;font-family:Inter,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);font-size:14px;line-height:1.6;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button,a.button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{opacity:.5;cursor:not-allowed}button,input,select,textarea{border-radius:9px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #5b9d83;outline-offset:3px}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.skip-link{position:fixed;top:-80px;z-index:100;background:white;padding:12px}.skip-link:focus{top:8px}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1px;line-height:1.4}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px}small{font-size:12px}.muted{color:var(--sub)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--primary);margin-bottom:14px}.sidebar{width:232px;background:var(--surface);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:30px 20px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:750;letter-spacing:1px}.brand small{display:block;font-size:8px;font-weight:600;letter-spacing:1.4px;color:var(--sub);margin-top:1px}.brand-mark{display:grid;place-content:center;width:39px;height:43px;border-radius:12px;background:var(--primary);color:white;font-size:25px;line-height:1;position:relative}.brand-mark span{position:absolute;color:#d6ed91;right:5px;bottom:1px}.button{border-radius:9px;border:1px solid var(--line);background:white;min-height:42px;padding:9px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;transition:background .18s,border-color .18s,transform .18s}.button:hover{background:#f2f6f3;border-color:#b3c8bd}.button.primary{background:var(--primary);border-color:var(--primary);color:white}.button.primary:hover{background:#105e48}.button.subtle{background:transparent}.button.small{font-size:12px;min-height:36px;padding:7px 12px}.button.danger{color:var(--danger)}.new-project{margin:33px 0 28px}.new-project>span{font-size:20px}.nav-caption{font-size:11px;color:var(--sub);padding:0 12px;margin-bottom:10px}nav{display:grid;gap:5px}nav a{min-height:46px;border-radius:9px;display:flex;align-items:center;gap:12px;padding:10px 13px;color:var(--sub);font-weight:500}nav a:hover{background:#f5f8f6}nav a.active{background:var(--soft);color:#12634a;font-weight:650}.side-bottom{margin-top:auto}.workspace-note{padding:16px 12px;font-size:12px}.workspace-note p{color:var(--sub);font-size:11px;margin:5px 0}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);margin-right:5px}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:18px 3px 0;font-size:13px}.profile small{display:block;color:var(--sub);font-size:11px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f1e7d8;color:#805834}.arrow{margin-left:auto}.workspace{margin-left:232px}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:16px}.breadcrumb{font-size:12px;color:var(--sub)}.breadcrumb span{padding:0 14px;color:#a8b4ae}.breadcrumb b{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:20px;font-size:12px}.connection{color:var(--sub)}.balance{padding:7px 13px;border:1px solid var(--line);border-radius:8px;font-weight:650}#main{padding:34px 38px 48px;max-width:1550px;margin:0 auto;min-height:calc(100vh - 140px);outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-heading p{color:var(--sub);margin-top:7px;font-size:13px}.page-heading .date{color:var(--sub);font-size:12px}.hero{background:#e8f1e9;border:1px solid #d8e6d8;border-radius:20px;display:grid;grid-template-columns:1.3fr 1fr;overflow:hidden;min-height:280px;position:relative}.hero-copy{padding:34px 36px;position:relative;z-index:1}.hero h2{font-size:35px;line-height:1.45;letter-spacing:-1px}.hero h2 em{font-style:normal;color:var(--primary)}.hero p{color:#587363;margin:13px 0 24px;font-size:13px;max-width:400px}.hero-actions{display:flex;gap:12px;align-items:center}.hero-art{position:relative;min-height:280px;background-image:radial-gradient(#b1c7b6 1px,transparent 1px);background-size:18px 18px;mask-image:linear-gradient(to right,transparent,#000 25%)}.art-board{position:absolute;width:210px;height:210px;background:#fffdf4;top:40px;left:50%;margin-left:-105px;transform:rotate(-12deg);border:8px solid #fff;box-shadow:8px 12px 0 #ccdbcc,12px 22px 40px #42674d19;border-radius:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:15px}.tile{border-radius:13px;background:#accbb1;box-shadow:inset 0 -5px 0 #0000000a}.tile:nth-child(2),.tile:nth-child(6){background:#ecc363}.tile:nth-child(3),.tile:nth-child(8){background:#dc927a}.tile:nth-child(5){background:#448c70}.tile:nth-child(7){background:#d4dfd0}.art-label{position:absolute;background:white;border:1px solid #e5e9db;border-radius:11px;padding:9px 13px;font-size:11px;box-shadow:var(--shadow);z-index:2}.art-label.one{top:35px;left:10px;transform:rotate(-5deg)}.art-label.two{bottom:27px;right:12px;transform:rotate(6deg)}.art-label b{color:var(--primary);margin-right:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0 30px}.stat{padding:18px 21px;border:1px solid var(--line);background:white;border-radius:13px;display:flex;gap:14px;align-items:center}.stat-icon{padding:10px;border-radius:10px;background:#f3f6f3;color:var(--primary);display:flex}.stat strong{display:block;font-size:24px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums}.stat small{color:var(--sub);font-size:11px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px}.section-heading h2{font-size:18px}.section-heading a{font-size:12px;color:var(--primary)}.section-heading p{font-size:12px;color:var(--sub);margin-top:4px}.project-grid,.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card,.template-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .18s,box-shadow .18s}.project-card:hover,.template-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.project-art,.template-art{height:145px;position:relative;overflow:hidden;background:#edf1e5;display:grid;place-items:center}.project-art[data-color="1"],.template-art[data-color="1"]{background:#e7edf5}.project-art[data-color="2"],.template-art[data-color="2"]{background:#f6e9dd}.project-art[data-color="3"],.template-art[data-color="3"]{background:#ebe6f3}.art-shape{width:80px;height:80px;border-radius:23px;background:#8fac89;transform:rotate(-15deg);box-shadow:20px 12px 0 #c6d5b4,-25px -8px 0 #d9e2cc;display:grid;place-items:center;color:white}.art-shape svg{width:37px;height:37px}.project-art[data-color="1"] .art-shape,.template-art[data-color="1"] .art-shape{background:#7297bc;box-shadow:20px 12px 0 #a5c1d8,-25px -8px 0 #c3d6e5}.project-art[data-color="2"] .art-shape,.template-art[data-color="2"] .art-shape{background:#c78f64;box-shadow:20px 12px 0 #dec3a7,-25px -8px 0 #ead5bf}.project-art[data-color="3"] .art-shape,.template-art[data-color="3"] .art-shape{background:#a08db8;box-shadow:20px 12px 0 #c4b5d7,-25px -8px 0 #d7cce4}.art-stamp{position:absolute;top:12px;left:13px;font-size:10px;letter-spacing:1px;color:#45594e;background:#ffffffbd;padding:3px 7px;border-radius:5px}.card-body{padding:18px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.card-title h3{overflow-wrap:anywhere}.card-description{font-size:12px;line-height:1.7;color:var(--sub);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;border-top:1px solid var(--line);padding-top:14px;font-size:11px;color:var(--sub)}.badge{font-size:10px;padding:3px 8px;border-radius:5px;background:#edf3ee;color:#36704b;display:inline-flex;white-space:nowrap}.badge.running{background:#fff0d8;color:#895511}.badge.failed{background:#fdebed;color:#b23142}.badge.demo{background:#eef0f4;color:#596879}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}.input{width:100%;background:white;border:1px solid #d5dfd9;padding:11px 13px;color:var(--ink);min-height:44px}.input::placeholder{color:#87938e}textarea.input{resize:vertical;min-height:155px;line-height:1.8}.search{flex:1;min-width:180px;max-width:400px}.toolbar select{width:auto;min-width:125px}.check{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--sub);min-height:44px}.check input{accent-color:var(--primary)}.filter-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.filter-tabs button{background:transparent;border:1px solid transparent;padding:8px 15px;min-height:40px;cursor:pointer;color:var(--sub)}.filter-tabs button.active{background:var(--ink);color:white}.count-hint{font-size:12px;color:var(--sub);margin-left:auto}.empty{background:white;border:1px dashed #c9d8ce;border-radius:14px;padding:45px 25px;text-align:center;grid-column:1/-1}.empty svg{width:30px;height:30px;color:var(--primary)}.empty h3{margin:12px 0 6px}.empty p{color:var(--sub);font-size:13px;margin-bottom:20px}.notice{font-size:12px;color:#596b60;background:#edf2ed;border:1px solid #dce7dc;padding:13px 16px;border-radius:10px;margin:16px 0;line-height:1.8}.notice.warning{background:#fff5e6;color:#84571f;border-color:#eddcc0}.notice.error{background:#fff0f0;color:var(--danger);border-color:#f1d0d0}.create-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:26px}.stepper{display:flex;gap:0;padding:0;list-style:none;margin:0 0 28px}.stepper li{flex:1;display:flex;align-items:center;gap:9px;color:var(--sub);font-size:12px;position:relative}.stepper li:not(:last-child):after{content:'';height:1px;background:var(--line);flex:1;margin:0 12px}.stepper i{font-style:normal;width:26px;height:26px;border-radius:50%;background:#eef1ee;display:grid;place-items:center}.stepper .current{color:var(--primary);font-weight:650}.stepper .current i{background:var(--primary);color:white}.field{display:block;margin:24px 0}.field>span{display:block;font-size:13px;font-weight:600;margin-bottom:9px}.field small{display:block;color:var(--sub);font-weight:400;margin-top:7px}.form-title p{color:var(--sub);font-size:13px;margin-top:6px}.chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.chips button,.tag{font-size:11px;border:1px solid var(--line);background:#f7f9f7;border-radius:7px;padding:6px 9px;cursor:pointer}.form-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:22px;margin-top:26px;gap:12px}.form-actions span{font-size:11px;color:var(--sub)}.form-error{color:var(--danger);font-size:13px;margin-top:14px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{display:block;border:1px solid var(--line);border-radius:12px;padding:17px;cursor:pointer}.choice:has(input:checked){border-color:var(--primary);background:#f0f7f1}.choice input{accent-color:var(--primary);margin-right:5px}.choice small{display:block;color:var(--sub);margin:6px 0 0 23px}.create-aside .panel{padding:23px}.create-aside h3{font-size:14px}.summary-row{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin:16px 0;color:var(--sub)}.summary-row.total{border-top:1px solid var(--line);padding-top:18px;color:var(--ink)}.summary-row.total b{font-size:22px;color:var(--primary)}.summary-row b{font-weight:600}.summary-row b small{font-size:11px}.aside-help{padding:22px 5px;color:var(--sub);font-size:12px}.aside-help h3{color:var(--ink);margin-bottom:8px}.aside-help ol{padding-left:20px;line-height:2.4}.review-item{padding:15px 0;border-bottom:1px solid var(--line)}.review-item small{display:block;color:var(--sub);margin-bottom:5px}.review-item p{white-space:pre-wrap;overflow-wrap:anywhere}.back-link{display:inline-flex;gap:8px;font-size:12px;color:var(--sub);margin-bottom:20px}.detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:22px}.stage-list{display:grid;gap:0;padding:0;list-style:none}.stage-list li{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.stage-list i{font-style:normal;width:27px;height:27px;background:#eef2ef;border-radius:50%;display:grid;place-items:center;color:var(--sub)}.stage-list .done i{background:var(--soft);color:var(--primary)}.stage-list .active i{background:var(--primary);color:white}.stage-list small{margin-left:auto;color:var(--sub)}.logs{max-height:320px;overflow:auto;font:12px/1.8 ui-monospace,monospace;background:#f5f7f5;padding:16px;border-radius:10px;margin-top:16px;overflow-wrap:anywhere}.log-line{border-bottom:1px solid var(--line);padding:7px 0}.log-line time{color:var(--sub);margin-right:9px}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.account-grid{display:grid;grid-template-columns:1fr 2fr;gap:22px}.wallet{background:#e8f1e9}.wallet strong{display:block;font-size:48px;letter-spacing:-2px;font-weight:600;margin:14px 0}.wallet p{font-size:12px;color:var(--sub);margin-bottom:20px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:var(--sub);font-weight:500;background:#f8faf8}th,td{padding:14px 12px;border-bottom:1px solid var(--line)}td.num{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.pagination{display:flex;justify-content:center;gap:14px;align-items:center;margin:25px 0;font-size:12px;color:var(--sub)}footer{padding:20px 38px;border-top:1px solid var(--line);font-size:10px;color:var(--sub);display:flex;justify-content:space-between;gap:12px}dialog{border:1px solid var(--line);border-radius:18px;padding:24px;max-width:660px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 30px 90px #10271e40;color:var(--ink)}dialog::backdrop{background:#10271e66;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dialog-head h2{font-size:18px}.icon-button{border:1px solid var(--line);width:40px;height:40px;background:white;font-size:24px;cursor:pointer;flex-shrink:0}dialog iframe{width:100%;height:65dvh;border:1px solid var(--line);border-radius:10px;background:white}#toasts{position:fixed;bottom:25px;right:25px;z-index:100;max-width:calc(100% - 50px)}.toast{background:#203c30;color:white;border-radius:10px;padding:13px 20px;box-shadow:0 8px 24px #0002;font-size:13px;margin-top:10px}.mini-guide{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:14px;margin-top:25px;background:white}.mini-guide>div{padding:22px;border-right:1px solid var(--line);font-size:12px}.mini-guide>div:last-child{border:0}.mini-guide b{display:block;margin-bottom:4px}.mini-guide span{color:var(--sub)}.mini-guide i{font-style:normal;color:var(--primary);margin-right:8px}.skeleton{padding:45px;text-align:center;color:var(--sub)}
@media(min-width:1500px){.project-grid,.template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero{grid-template-columns:1.6fr 1fr}}
@media(max-width:1150px){.sidebar{width:205px;padding:24px 15px}.workspace{margin-left:205px}#main{padding:28px}.topbar{padding:0 28px}.stats{grid-template-columns:repeat(2,1fr)}.project-grid,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.create-layout{grid-template-columns:minmax(0,1fr) 245px}.hero-copy{padding:28px}.hero h2{font-size:29px}.hero-art{min-width:180px}.detail-layout{grid-template-columns:1fr}.art-label{font-size:10px}.art-label.two{right:4px}.account-grid{grid-template-columns:1fr 1.4fr}}
@media(max-width:850px){.sidebar{position:static;width:100%;padding:16px 22px;display:flex;flex-direction:row;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.brand{font-size:18px}.brand-mark{width:31px;height:34px;font-size:22px}.brand small{display:none}.new-project{margin:0 0 0 auto;min-height:37px;padding:6px 12px;font-size:12px}.nav-caption,.side-bottom{display:none}nav{display:flex;width:100%;gap:5px;justify-content:space-between}nav a{font-size:12px;min-height:42px;padding:8px 11px;gap:7px}.workspace{margin-left:0}.topbar{height:60px}.create-layout{grid-template-columns:1fr}.create-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hero-art{min-height:270px}.connection{font-size:10px}.hero h2{font-size:29px}.account-grid{grid-template-columns:1fr}footer span{max-width:60%;text-align:right}}
@media(max-width:540px){:root{font-size:14px}.sidebar{padding:16px;gap:14px}nav a{flex-direction:column;gap:3px;padding:7px 9px;font-size:10px;flex:1}nav svg.icon{width:19px;height:19px}.topbar{padding:0 18px}.top-actions{gap:8px}.connection{display:none}#main{padding:24px 18px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.page-heading .date{display:none}.page-heading p{font-size:12px}.hero{grid-template-columns:1fr}.hero-copy{padding:27px 24px}.hero h2{font-size:29px}.hero-art{min-height:170px;mask-image:none}.art-board{width:145px;height:145px;top:0;margin-left:-72px;border-width:6px;padding:10px;gap:6px;border-radius:15px}.tile{border-radius:7px}.art-label.one{left:20px;top:12px}.art-label.two{right:20px;bottom:20px}.stats{gap:10px;margin-top:16px}.stat{padding:13px 10px;gap:10px}.stat-icon{padding:7px}.stat strong{font-size:21px}.project-grid,.template-grid{grid-template-columns:1fr}.project-art,.template-art{height:155px}.create-aside{display:block}.panel{padding:20px}.stepper{gap:5px}.stepper li{font-size:11px;gap:5px}.stepper li:after{display:none}.choice-grid{grid-template-columns:1fr}.input{font-size:16px}.toolbar .search{max-width:none;flex-basis:100%}.toolbar select{flex:1;font-size:13px}.count-hint{margin-left:0}.mini-guide{grid-template-columns:1fr}.mini-guide>div{border-right:0;border-bottom:1px solid var(--line);padding:18px}.form-actions{flex-wrap:wrap}.hero-actions{gap:8px}.hero-actions .button{font-size:12px;padding:10px 12px}.detail-actions .button{flex:1}.review-item p{font-size:13px}.section-heading h2{font-size:17px}footer{padding:18px;font-size:9px}.table-wrap{margin:0 -6px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
