:root{color:#191a18;background:#efeee9;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--app-bg: #efeee9;--paper: #f8f7f3;--paper-strong: #ffffff;--ink: #191a18;--muted: #72756f;--soft: #e3e2dc;--line: #d7d6d0;--accent: #e95e3f;--accent-dark: #ba3e25;--accent-soft: #fff0eb;--success: #2d7a61;--studio: #111311;--studio-line: #2c302c}*{box-sizing:border-box}html,body,#app{width:100%;min-width:320px;height:100%;margin:0}body{overflow:hidden;background:var(--app-bg)}button,input,textarea{font:inherit}button,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait}button:focus-visible,label:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}svg{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{display:grid;grid-template-rows:68px minmax(0,1fr);width:100%;height:100%}.app-header{z-index:10;display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,420px) minmax(220px,1fr);align-items:center;padding:0 22px 0 18px;background:#f8f7f3f5;border-bottom:1px solid var(--line)}.brand-block{display:flex;align-items:center;gap:13px;min-width:0}.brand-mark{position:relative;display:grid;place-items:center;width:44px;height:44px;overflow:hidden;color:#fff8f3;background:var(--ink);border-radius:10px}.brand-mark:after{position:absolute;right:-8px;bottom:-9px;width:25px;height:25px;content:"";background:var(--accent);border-radius:50%}.brand-mark span{z-index:1;font-size:22px;font-weight:800;line-height:1}.brand-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.brand-copy strong{font-size:18px;font-weight:750;line-height:1;letter-spacing:.06em}.brand-copy span{color:#898c86;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:10px;letter-spacing:.1em}.brand-tagline{margin-left:8px;padding-left:18px;overflow:hidden;color:#62655f;font-size:14px;font-weight:500;line-height:1.4;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid var(--line)}.header-document{display:flex;align-items:center;justify-content:center;gap:16px;min-width:0}.document-title{max-width:300px;overflow:hidden;color:#484b46;font-size:15px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.save-state{display:inline-flex;align-items:center;gap:9px;color:#6d706a;font-size:14px;white-space:nowrap}.save-state i{width:8px;height:8px;background:var(--success);border-radius:50%;box-shadow:0 0 0 3px #2d7a6117;transition:.16s ease}.save-state.saving i{background:#d49328;animation:save-pulse .9s ease infinite alternate}.save-state.error{color:#a83d2b}.save-state.error i{background:#c0442f}@keyframes save-pulse{to{opacity:.4}}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 13px;color:var(--ink);font-size:11px;font-weight:650;background:transparent;border:1px solid transparent;border-radius:7px;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}.button svg{width:15px;height:15px}.button:hover{transform:translateY(-1px)}.button-secondary{color:#5e615b;border-color:var(--line);background:#f4f3ee}.button-secondary:hover{background:#fff;border-color:#c5c4be}.button-primary{padding:0 17px;color:#fff;background:var(--accent);border-color:var(--accent);box-shadow:0 5px 14px #ba3e2526}.button-primary:hover{background:#d84f31;border-color:#d84f31}.button-primary:disabled{opacity:.74}.button-primary.loading svg{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mobile-tabs{display:none}.studio{--editor-width: 600px;display:grid;grid-template-columns:minmax(0,1fr) 9px var(--editor-width);min-width:0;min-height:0;overflow:hidden}.panel-splitter{position:relative;z-index:4;display:grid;place-items:center;width:9px;min-width:9px;cursor:col-resize;touch-action:none;background:#dfddd6;border-right:1px solid #cac8c0;border-left:1px solid #c5c4be;transition:background .12s ease}.panel-splitter:hover,body.is-resizing .panel-splitter{background:#d3d0c7}.panel-splitter:focus-visible{z-index:6;outline:2px solid var(--accent);outline-offset:-2px}.splitter-grip{width:3px;height:44px;background:#8f918b;border-radius:3px;box-shadow:0 -7px #8f918b6b,0 7px #8f918b6b;transition:background .12s ease,height .12s ease}.panel-splitter:hover .splitter-grip,body.is-resizing .splitter-grip{height:56px;background:var(--accent)}body.is-resizing,body.is-resizing *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.preview-workspace,.editor-workspace{min-width:0;min-height:0}.preview-workspace{display:flex;flex-direction:column;color:#eef0eb;background:var(--studio);border-right:0}.editor-workspace{display:flex;flex-direction:column;overflow-y:auto;background:var(--paper)}.workspace-header{display:flex;flex:none;align-items:center;justify-content:space-between;min-height:78px;padding:14px 20px}.preview-header{border-bottom:1px solid var(--studio-line)}.preview-output-facts{display:flex;align-items:center;gap:12px;margin-top:7px;color:#989e98;font-size:11px;line-height:1.4}.preview-output-facts span{display:inline-flex;align-items:baseline;gap:8px;white-space:nowrap}.preview-output-facts strong{color:#eff1ec;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;font-weight:500}.preview-output-facts i{width:1px;height:14px;background:#3a3f3a}.editor-header{padding-right:16px;background:var(--paper);border-bottom:1px solid var(--line)}.workspace-title{display:flex;align-items:center;gap:13px;min-width:0}.eyebrow{display:block;margin-bottom:4px;color:#80847d;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:8px;font-weight:500;line-height:1;letter-spacing:.13em}.preview-header .eyebrow{color:#777c76}.workspace-title h1{margin:0;color:var(--ink);font-size:16px;font-weight:680;line-height:1.25;letter-spacing:-.015em}.preview-header .workspace-title h1{color:#f6f7f3}.preview-actions{display:flex;align-items:center;gap:12px}.segmented{display:inline-grid;grid-auto-flow:column;gap:3px;padding:3px;background:#0b0d0b;border:1px solid #303530;border-radius:8px}.segmented button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:28px;padding:0 9px;color:#858a84;font-size:9px;font-weight:600;background:transparent;border:0;border-radius:5px;transition:.14s ease}.segmented button svg{width:13px;height:13px}.segmented button.active{color:#f7f8f5;background:#292e29;box-shadow:0 1px 3px #00000040}.mode-switch button{height:38px;padding:0 14px;gap:7px;font-size:12px}.mode-switch button svg{width:17px;height:17px}.zoom-control{display:flex;align-items:center;height:46px;overflow:hidden;background:#171a17;border:1px solid #303530;border-radius:8px}.zoom-control button{display:grid;place-items:center;width:42px;height:100%;padding:0;color:#949a94;background:transparent;border:0}.zoom-control button:hover{color:#fff;background:#252925}.zoom-control button:last-child{border-left:1px solid #303530}.zoom-control svg{width:17px;height:17px}.zoom-control span{display:inline-flex;align-items:center;justify-content:center;width:58px;color:#c5c9c3;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:11px}.preview-stage{flex:1;min-height:0;overflow:auto;background-color:#111311;background-image:linear-gradient(rgb(255 255 255 / 2.8%) 1px,transparent 1px),linear-gradient(90deg,rgb(255 255 255 / 2.8%) 1px,transparent 1px);background-size:32px 32px;scrollbar-color:#424742 transparent;scrollbar-width:thin}.preview-artboard{width:max-content;min-width:100%;padding:32px 24px 40px}.phone-scale{position:relative;width:402px;height:680px;margin:0 auto;transition:width .17s ease,height .17s ease}.phone-device{position:absolute;top:0;left:0;width:418px;min-height:700px;padding:8px;overflow:hidden;background:#050605;border:1px solid #555b55;border-radius:34px;box-shadow:0 28px 70px #00000073,0 0 0 1px #ffffff0a inset;transform-origin:top left;transition:transform .17s ease}.phone-screen{position:relative;min-height:680px;overflow:hidden;color:var(--fg);background:var(--bg);border-radius:27px;transition:color .16s ease,background .16s ease}.phone-button{position:absolute;width:3px;background:#303430;border-radius:3px}.phone-button-left{top:126px;left:-4px;height:72px}.phone-button-right{top:152px;right:-4px;height:52px}.article-content{min-height:680px;padding:44px 20px 66px}.phone-home{position:absolute;right:0;bottom:9px;left:0;width:116px;height:4px;margin:0 auto;background:color-mix(in srgb,var(--fg) 26%,transparent);border-radius:4px;pointer-events:none}.theme-dark{color-scheme:dark;--bg: #191b1d;--fg: #f3f4f6;--muted: #959ba7;--accent: #759df1;--border: #30343a;--quote: #22262c}.theme-light{color-scheme:light;--bg: #ffffff;--fg: #1d2024;--muted: #747b85;--accent: #2d61bd;--border: #e2e5e8;--quote: #f3f5f7}.theme-paper{color-scheme:light;--bg: #f3eee4;--fg: #2f2b25;--muted: #7d7467;--accent: #7b5b3d;--border: #dbd1c2;--quote: #e8dfd1}.theme-blue{color-scheme:light;--bg: #f5f8ff;--fg: #1d2940;--muted: #71809a;--accent: #245eca;--border: #d9e3f5;--quote: #e9f0fc}.client-export-page{position:fixed;top:0;left:0;z-index:0;width:402px;min-height:0;padding:32px 20px 64px;color:var(--fg);background:var(--bg);opacity:0;pointer-events:none}.preview-caption{display:flex;align-items:center;justify-content:space-between;width:418px;max-width:100%;margin:0 auto 16px;color:#9ba19b;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.4}.live-state{display:inline-flex;align-items:center;gap:7px}.live-state i{width:6px;height:6px;background:#5dc28b;border-radius:50%;box-shadow:0 0 0 4px #5dc28b14}.editor-file-actions{display:flex;align-items:center;gap:5px}.icon-action{display:grid;place-items:center;width:31px;height:31px;padding:0;color:#5d615b;background:transparent;border:1px solid transparent;border-radius:6px;cursor:pointer;transition:.14s ease}.icon-action:hover{color:var(--ink);background:#fff;border-color:var(--line)}.icon-action:disabled{color:#b2b4af;cursor:not-allowed;opacity:.45}.icon-action:disabled:hover{color:#b2b4af;background:transparent;border-color:transparent}.icon-action svg{width:15px;height:15px}.format-toolbar{display:flex;flex:none;align-items:center;justify-content:space-between;min-height:52px;padding:0 18px;background:#f0efea;border-bottom:1px solid var(--line)}.format-buttons{display:flex;align-items:center;gap:2px;min-width:0}.format-buttons button{display:grid;place-items:center;width:38px;height:38px;padding:0;color:#686b65;background:transparent;border:0;border-radius:5px}.format-buttons button:hover{color:var(--ink);background:#fff}.format-buttons svg{width:18px;height:18px}.character-count{flex:none;min-width:96px;padding:9px 12px;color:#858881;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:500;text-align:center;border-left:1px solid var(--line)}.editor-surface{position:relative;flex:none;height:clamp(360px,46vh,500px);background:#fbfaf7}.editor-surface:before{position:absolute;top:0;bottom:0;left:44px;width:1px;content:"";background:#ecebe6;pointer-events:none}#editor{width:100%;height:100%;padding:20px 20px 36px 58px;resize:none;color:#353833;font-family:SFMono-Regular,Cascadia Code,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.85;white-space:pre-wrap;-moz-tab-size:2;tab-size:2;background:linear-gradient(90deg,#f5f4ef 0 43px,transparent 43px),#fbfaf7;border:0;outline:0;caret-color:var(--accent);scrollbar-color:#c9c8c2 transparent;scrollbar-width:thin}#editor::placeholder{color:#a1a39e}#editor::selection{color:#191a18;background:#ffd8cc}.settings-panel{background:var(--paper);border-bottom:1px solid var(--line)}.settings-heading{display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:12px 20px;border-bottom:1px solid var(--line)}.settings-heading h2{margin:0;color:var(--ink);font-size:17px;font-weight:680;letter-spacing:-.01em}.settings-heading .eyebrow{margin-bottom:5px;font-size:10px}.settings-toggle{display:grid;place-items:center;width:34px;height:34px;padding:0;color:#6e716b;background:transparent;border:1px solid var(--line);border-radius:6px}.settings-toggle svg{width:16px;height:16px;transition:transform .16s ease}.settings-toggle.collapsed svg{transform:rotate(-90deg)}.settings-content{padding:20px}.settings-content[hidden]{display:none}.setting-block{display:flex;flex-direction:column;gap:12px}.setting-label{color:#5c5f59;font-size:13px;font-weight:650}.theme-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.theme-option{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:12px 5px 11px;color:#6f726c;font-size:13px;font-weight:600;background:transparent;border:1px solid var(--line);border-radius:8px;transition:.14s ease}.theme-option:hover{color:var(--ink);border-color:#b9b8b1}.theme-option.selected{color:var(--ink);background:#fff;border-color:var(--accent);box-shadow:0 0 0 1px #e95e3f17}.swatch{width:100%;height:40px;border:1px solid rgb(0 0 0 / 10%);border-radius:4px}.swatch-dark{background:#191b1d;box-shadow:0 0 0 3px #eceae5 inset}.swatch-light{background:#fff;box-shadow:0 0 0 3px #e7e6e1 inset}.swatch-paper{background:#f0e8da}.swatch-blue{background:#e9f0fc}.type-controls{display:grid;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.range-control{display:grid;gap:9px}.range-control>span{display:flex;align-items:center;justify-content:space-between;color:#5d605a;font-size:13px;font-weight:650}.range-control output{color:#7f827b;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:500}input[type=range]{width:100%;height:18px;margin:0;accent-color:var(--accent);cursor:pointer}.export-settings-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;margin-top:22px;padding-top:19px;border-top:1px solid var(--line)}.format-setting{display:grid;width:100%;grid-template-rows:18px 30px;gap:12px}.export-settings-row .setting-label{line-height:18px}.format-switch{display:grid;grid-template-columns:1fr 1fr;width:100%;height:30px;padding:2px;background:#ebeae5;border-color:#d9d8d2}.format-switch button{height:24px;color:#777a74;font-size:13px;background:transparent}.format-switch button.active{color:var(--ink);background:#fff;box-shadow:0 1px 3px #00000014}.drop-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:24px;visibility:hidden;background:#111311a3;opacity:0;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:opacity .14s ease,visibility .14s ease}.drop-overlay.visible{visibility:visible;opacity:1}.drop-target{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;width:min(520px,100%);height:min(300px,60vh);color:#f7f7f3;background:#171a17;border:1px dashed #767c76;border-radius:8px;box-shadow:0 24px 60px #0000004d}.drop-target svg{width:28px;height:28px;color:var(--accent)}.drop-target strong{font-size:16px}.drop-target span{color:#8b908b;font-size:10px}.toast{position:fixed;bottom:24px;left:50%;z-index:50;max-width:min(460px,calc(100vw - 32px));padding:11px 15px;color:#f6f7f3;font-size:11px;background:#222622;border:1px solid #3b403b;border-radius:7px;box-shadow:0 12px 38px #00000040;opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:.18s ease}.toast.show{opacity:1;transform:translate(-50%)}.toast[data-type=success]{border-color:#5dc28b73}.toast[data-type=error]{background:#3a211c;border-color:#774336}@media(max-width:1120px){.studio{grid-template-columns:minmax(0,1fr) 9px var(--editor-width)}.preview-header{align-items:flex-start;gap:12px}.preview-actions{flex-direction:column;align-items:flex-end}}@media(max-width:860px){.app-shell{grid-template-rows:60px 50px minmax(0,1fr)}.app-header{grid-template-columns:minmax(0,1fr) auto;padding:0 13px}.header-document,.brand-copy span,.brand-tagline,.reset-button span{display:none}.reset-button{width:36px;padding:0}.mobile-tabs{display:grid;grid-template-columns:1fr 1fr;padding:6px;background:#e5e4df;border-bottom:1px solid #d3d2cc}.mobile-tab{display:flex;align-items:center;justify-content:center;gap:7px;color:#747770;font-size:11px;font-weight:650;background:transparent;border:0;border-radius:6px}.mobile-tab svg{width:14px;height:14px}.mobile-tab.active{color:var(--ink);background:var(--paper);box-shadow:0 1px 4px #00000014}.studio{display:block;min-height:0}.panel-splitter{display:none}.studio>[data-panel]{display:none;height:100%}.studio[data-mobile-view=preview]>[data-panel=preview],.studio[data-mobile-view=editor]>[data-panel=editor]{display:flex}.preview-workspace{border-right:0}.preview-header{min-height:72px;align-items:center;padding:12px 15px}.preview-actions{flex-direction:row;align-items:center}.preview-stage{overscroll-behavior:contain}.preview-artboard{padding:27px 12px 34px}.editor-workspace{overflow-y:auto}.editor-surface{height:max(320px,44vh)}}@media(max-width:560px){.app-header{gap:8px}.brand-mark{width:38px;height:38px}.brand-copy strong{font-size:14px}.button-primary{width:38px;padding:0}.button-primary span{display:none}.workspace-header{min-height:67px;padding:11px 14px}.preview-header{flex-wrap:wrap;align-items:flex-start;gap:10px}.preview-actions{width:100%;justify-content:flex-end}.workspace-title h1{font-size:14px}.preview-header .mode-switch button span{display:none}.preview-header .mode-switch button{width:38px;padding:0}.preview-output-facts{gap:8px;font-size:11px}.preview-output-facts span{gap:6px}.preview-output-facts strong{font-size:12px}.zoom-control>button:nth-child(1),.zoom-control>button:nth-child(3){display:none}.format-toolbar{padding:0 10px}.format-buttons{overflow-x:auto;scrollbar-width:none}.format-buttons::-webkit-scrollbar{display:none}.format-buttons button{flex:0 0 auto}.character-count{padding-left:8px}#editor{padding-right:15px;padding-left:52px;font-size:11px}.settings-heading,.settings-content{padding-right:14px;padding-left:14px}.export-settings-row{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.article-content,.article{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:var(--font-size, 16px);line-height:var(--line-height, 1.75);color:var(--fg);overflow-wrap:anywhere;-webkit-font-smoothing:antialiased}.article-content h1,.article h1{margin:0 0 28px;font-size:1.55em;font-weight:700;line-height:1.35;letter-spacing:-.02em}.article-content h2,.article h2{margin:42px 0 20px;font-size:1.25em;font-weight:700;line-height:1.4}.article-content h3,.article h3{margin:32px 0 18px;font-size:1.08em;font-weight:650;line-height:1.45}.article-content h4,.article h4{margin:26px 0 14px;font-size:1em;font-weight:650}.article-content p,.article p{margin:0 0 var(--paragraph-gap, 22px)}.article-content strong,.article strong{font-weight:700}.article-content em,.article em{font-style:italic}.article-content del,.article del{color:var(--muted)}.article-content a,.article a{color:var(--accent);text-decoration:none;overflow-wrap:anywhere}.article-content ul,.article-content ol,.article ul,.article ol{margin:0 0 var(--paragraph-gap, 22px);padding-left:1.45em}.article-content li,.article li{margin:0 0 8px;padding-left:.15em}.article-content li>p,.article li>p{margin-bottom:8px}.article-content blockquote,.article blockquote{margin:24px 0;padding:14px 16px;color:var(--fg);background:var(--quote);border-left:3px solid var(--accent);border-radius:0 8px 8px 0}.article-content blockquote p:last-child,.article blockquote p:last-child{margin-bottom:0}.article-content hr,.article hr{margin:32px 0;border:0;border-top:1px solid var(--border)}.article-content code,.article code{padding:2px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;background:var(--quote);border-radius:4px}.article-content pre,.article pre{margin:20px 0 24px;padding:16px;overflow:hidden;white-space:pre-wrap;word-break:break-word;background:var(--quote);border-radius:10px}.article-content pre code,.article pre code{padding:0;font-size:.82em;background:transparent}.article-content table,.article table{display:block;width:100%;margin:22px 0 26px;overflow-x:auto;border-collapse:collapse;font-size:.88em}.article-content th,.article-content td,.article th,.article td{padding:9px 10px;text-align:left;vertical-align:top;border:1px solid var(--border)}.article-content th,.article th{font-weight:650;background:var(--quote)}.article-content img,.article img{display:block;max-width:100%;height:auto;margin:20px auto;border-radius:8px}.article-content input[type=checkbox],.article input[type=checkbox]{width:1em;height:1em;margin:0 .45em 0 0;accent-color:var(--accent);vertical-align:-.08em}.article-content .empty-preview,.article .empty-preview{color:var(--muted)}
