<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss.xsl" type="text/xsl"?><rss version="2.0"><channel><title>AZ Studio · 全站更新</title><description>真实项目、版本记录与可复现结论</description><link>https://azsou.com/</link><language>zh-cn</language><item><title>纯静态站点的严格 CSP：内联脚本哈希、独立策略与第三方脚本</title><link>https://azsou.com/articles/static-site-strict-csp/</link><guid isPermaLink="true">https://azsou.com/articles/static-site-strict-csp/</guid><description>azsou.com v2 是一个纯静态站：Astro 构建出 HTML，部署在 Vercel，没有自己的应用服务器。很多人觉得静态站「没什么可攻击的」，用不着内容安全策略（CSP）。但站里有论坛、评论、留言板，用户写的内容会出现在页面上；只要渲染链路有一处疏漏，一段注入的脚本就能读走访客的登录会话。CSP 是最后一道防线：就算 HTML 里真的混进了 &lt;script&gt; ，浏览器也拒绝执行。这篇记…</description><pubDate>Sun, 25 Oct 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>接入 AdSense 之前：Consent Mode v2、认证 CMP 与 ads.txt 准备清单</title><link>https://azsou.com/articles/consent-mode-adsense-prep/</link><guid isPermaLink="true">https://azsou.com/articles/consent-mode-adsense-prep/</guid><description>个人站点想靠广告覆盖服务器和域名的费用，Google AdSense 几乎是第一个选择。但在提交申请之前，有几件和「隐私」有关的事必须先做好：同意管理平台（CMP）、Google 同意模式（Consent Mode v2）、ads.txt，以及隐私政策和 Cookie 政策。这些事情做晚了，轻则欧洲访客看不到广告，重则审核不通过。这篇是 azsou.com 在接入前整理的清单，每一条都附上依据，…</description><pubDate>Sun, 25 Oct 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>给 AI 编程代理设闸门：一个个人站点的 9 个 CI 任务</title><link>https://azsou.com/articles/ai-agent-ci-gates/</link><guid isPermaLink="true">https://azsou.com/articles/ai-agent-ci-gates/</guid><description>azsou.com v2 的大部分代码是在 AI 编程代理的参与下写出来的：重构内容结构、写迁移、补测试、修 Lighthouse 的分数。AI 代理写代码很快，但它不会因为「上次改坏了」而心有余悸，也不会记得某个页面在 iPhone 宽度下按钮会被底栏挡住。真正让这种协作可持续的，不是提示词写得多好，而是一套不讲情面的闸门：每次推送都跑完整的检查，任何一项不过就不合并。这篇记录本站 CI 的九…</description><pubDate>Sun, 25 Oct 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>拼音首字母搜索：不引库的 30 行实现与取舍</title><link>https://azsou.com/articles/pinyin-initial-search/</link><guid isPermaLink="true">https://azsou.com/articles/pinyin-initial-search/</guid><description>站内搜索想支持 dwjgjx → 单文件工具箱 这种首拼命中。第一反应是引 pinyin 库，但最小的浏览器端拼音库也要几十 KB——为 30 个中文标题背一个词典，性价比不成立。 结论： 条目量小于几百时，手工标注 py 字段 + 一行匹配逻辑，比任何拼音库都便宜、可控、零依赖。 为什么不引拼音库 拼音库的成本不只是体积：多音字策略、繁简处理、构建链引入，每一样都在单文件哲学的反面。而站内需要…</description><pubDate>Sat, 25 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>本地优先的评论与论坛：localStorage 数据模型设计</title><link>https://azsou.com/articles/local-first-comments-forum/</link><guid isPermaLink="true">https://azsou.com/articles/local-first-comments-forum/</guid><description>V62/V63 给站点加评论和论坛时还没有后端。当时的做法是本地优先：交互全量实现，数据落在访客自己的 localStorage，界面处处写明。 结论： 本地优先不是妥协，是把「数据模型设计」提前到后端存在之前——schema 对了，接后端只是换存储。 为什么本地优先 假后端（伪造别人的评论）违反站点的编辑原则；没有交互又验证不了设计。本地优先是第三条路：真交互、真数据、真隔离，只是数据的主人恰…</description><pubDate>Fri, 24 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>两键导航与帮助面板：个人站的键盘可达性</title><link>https://azsou.com/articles/keyboard-reachability/</link><guid isPermaLink="true">https://azsou.com/articles/keyboard-reachability/</guid><description>V63 给站点加了 Gmail 式两键导航：g 然后 h/a/g/t/w/f/n，八个视图一秒直达；? 呼出快捷键帮助。这篇记录实现里容易踩的四个坑。 结论： 两键序列的全部复杂度都在「什么时候不触发」：输入框里、修饰键按着、序列超时，三个否定条件比肯定逻辑更重要。 为什么是 g 前缀 单键直达会和浏览器/输入法抢按键；g 前缀把冲突面收敛到一个键，且 Gmail/GitHub 用户零学习成本。…</description><pubDate>Thu, 23 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>CSS @layer 迁移：从 3473 个 !important 到 0</title><link>https://azsou.com/articles/layer-migration-zero-important/</link><guid isPermaLink="true">https://azsou.com/articles/layer-migration-zero-important/</guid><description>V52 期站点样式膨胀到 28 个补丁层、3473 个 !important。V53 归并砍掉九成，V55 用 @layer 收编剩余，V60.1 清到 0。这篇复盘完整路径。 结论： !important 的本质是「没有层序管理时的最后手段」。@layer 把优先级变成结构问题：未分层覆盖区永远压过分层基线，重要性标记就失去了存在理由。 债是怎么欠下的 逐版本补丁模式下，每个新层都要压过旧层的…</description><pubDate>Wed, 22 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>Service Worker 离线外壳：缓存策略与更新提示实测</title><link>https://azsou.com/articles/sw-offline-shell/</link><guid isPermaLink="true">https://azsou.com/articles/sw-offline-shell/</guid><description>V58 给站点加了 Service Worker 离线外壳。单文件站点的缓存问题比多资源站简单得多，但「更新时机」的两难一点不少。这篇是部署套件里 az-sw.js 的设计说明与实测记录。 结论： 单文件 + SW 的正确形态：外壳 cache-first 保离线，版本号进缓存名保更新，升级提示交给页面而不是静默换血。 单文件站要什么缓存 整站就一个 HTML（外加 manifest/favic…</description><pubDate>Tue, 21 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>生成式 SVG 素材：17 个母题的确定性视觉系统</title><link>https://azsou.com/articles/generative-svg-assets/</link><guid isPermaLink="true">https://azsou.com/articles/generative-svg-assets/</guid><description>站内 40 个视觉槽位——首页大图、游戏封面、作品图、论坛分类图——全部来自一个 Node 脚本：17 个母题函数，按调色板与种子组合出场景，输出 base64 SVG。 结论： 生成式素材换来的不是「好看」，是三件工程品质：零版权风险、逐字节可复现、主题风格强一致。 为什么自己画 占位图服务有版权与网络依赖；AI 生图不可复现且风格漂移。自绘 SVG 把素材纳入构建：改一个种子，diff 里看…</description><pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>FableMotion S3：从模块化到时间轴终版 UI</title><link>https://azsou.com/articles/fablemotion-s3-timeline/</link><guid isPermaLink="true">https://azsou.com/articles/fablemotion-s3-timeline/</guid><description>这次迭代最难的不是实现新功能，而是阻止旧功能在合并时再次消失。时间轴、画布、关键帧和 Graph Editor 曾各自可用，但它们之间缺少清晰边界，导致一次局部修复就可能污染整条编辑链路。 结论： 先冻结稳定基线，再让每个模块通过明确接口交换状态。复制整段 UI 模板修补，迟早会回归。 问题是怎么形成的 早期版本把显示、状态和交互耦合在一起。时间轴重绘会顺带修改选区，选区变化又触发属性面板刷新，…</description><pubDate>Sun, 19 Jul 2026 00:00:00 GMT</pubDate><category>FableMotion</category></item><item><title>运动路径、洋葱皮与关键帧交互</title><link>https://azsou.com/articles/motion-paths-onion-skin/</link><guid isPermaLink="true">https://azsou.com/articles/motion-paths-onion-skin/</guid><description>S3 之前，运动路径只存在于数据里：想知道对象怎么走，要么按播放，要么读关键帧表。这次把路径直接画到舞台上，顺带把洋葱皮和关键帧拖拽也重做了一遍。 结论： 路径、洋葱皮、关键帧三者共享同一份采样缓存。分开实现时它们各自都对，叠在一起就互相矛盾。 为什么路径要画在舞台上 路径是位置属性的时间积分，画在舞台上才能一眼看出过冲和折返。实现上用 Graph Editor 的曲线求值器按帧采样，超过 24…</description><pubDate>Sat, 18 Jul 2026 00:00:00 GMT</pubDate><category>FableMotion</category></item><item><title>Chrome MV3 动态域名授权与用户激活</title><link>https://azsou.com/articles/chrome-mv3-domain-activation/</link><guid isPermaLink="true">https://azsou.com/articles/chrome-mv3-domain-activation/</guid><description>Image Atlas 需要在用户点开陌生图床时请求该域名的读取权限。MV3 之下这件事只有一条合法路径： permissions.request 必须发生在用户手势的同步调用栈里。任何&quot;提前想好&quot;的设计都会碰壁。 结论： 把授权请求留在用户点击的那一帧，其余全部按&quot;没有权限&quot;设计。体验反而更稳定，审查也一次通过。 为什么不能预授权 host_permissions 里的通配域名会在安装时吓退用…</description><pubDate>Sat, 18 Jul 2026 00:00:00 GMT</pubDate><category>浏览器扩展</category></item><item><title>跨域 frame 扫描如何避免拖垮主流程</title><link>https://azsou.com/articles/cross-origin-frame-scan/</link><guid isPermaLink="true">https://azsou.com/articles/cross-origin-frame-scan/</guid><description>Image Atlas 要在任意页面上找图，而真实页面平均带着十几个跨域 iframe——广告位、嵌入播放器、评论区。第一版把它们串行扫完，主页面的扫描结果要等 6 秒才出来。 结论： 把&quot;扫得全&quot;和&quot;扫得快&quot;拆成两个队列：主文档即时返回，frame 结果流式补充。用户 300ms 内看到第一批图，剩下的陆续到。 问题：一个页面几十个 frame 实测新闻站首页：14 个 iframe，其中 9…</description><pubDate>Fri, 17 Jul 2026 00:00:00 GMT</pubDate><category>浏览器扩展</category></item><item><title>职业技能树与旧存档迁移</title><link>https://azsou.com/articles/emberdeep-skill-tree-migration/</link><guid isPermaLink="true">https://azsou.com/articles/emberdeep-skill-tree-migration/</guid><description>EMBERDEEP 0.8 把四个职业的技能全部搬进一份数据表：节点、前置、互斥、成长曲线都是配置而不是代码。这不是为了优雅，是为了让 0.7 的旧存档能安全走进新系统。 结论： 先给旧存档做&quot;翻译层&quot;，再谈新系统。直接改存档结构的方案在第一晚就丢了两个测试玩家的进度，全部回滚。 数据驱动的职业系统 每个技能节点是一条记录： id、tier、requires[]、excludes[]、cost …</description><pubDate>Fri, 17 Jul 2026 00:00:00 GMT</pubDate><category>AI 游戏</category></item><item><title>EMBERDEEP 0.8</title><link>https://azsou.com/games/emberdeep/</link><guid isPermaLink="true">https://azsou.com/games/emberdeep/</guid><description>Voxel Roguelike：体素地牢、火把光照、职业与技能树。0.8 版的主线是把旧存档迁移到新的职业系统——对应文章《职业技能树与旧存档迁移》里的全部实测。 本页暂未提供公开试玩链接。你可以在下方的开发日志中查看当前版本的进展。</description><pubDate>Fri, 17 Jul 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>单文件 App 的零构建工作流与天花板</title><link>https://azsou.com/articles/single-file-zero-build/</link><guid isPermaLink="true">https://azsou.com/articles/single-file-zero-build/</guid><description>工具箱里的 12 个单文件 App 和这个站点本身共用同一套哲学：打开就是全部，复制就是部署。这篇复盘写清楚这条路的收益、纪律，和它真实的尽头。 结论： 单文件是发布物的极佳形态，但当样式层数、数据体量或协作人数越过阈值，它就不该再是开发介质。 为什么坚持单文件 零依赖、零构建、离线可用、拷贝即备份。对个人工具，这四条抵得上所有工程化收益：写完 double-click 就能用，十年后还能打开。…</description><pubDate>Thu, 16 Jul 2026 00:00:00 GMT</pubDate><category>开发实践</category></item><item><title>地牢生成可视化 0.4</title><link>https://azsou.com/games/dungeon-gen-viz/</link><guid isPermaLink="true">https://azsou.com/games/dungeon-gen-viz/</guid><description>把 EMBERDEEP 的图生成算法逐步可视化：房间图、最小生成树、回环补边、走廊挖掘，每一步都能单步观看。既是调试工具也是教学演示。</description><pubDate>Fri, 10 Jul 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>回合制战棋原型 0.3</title><link>https://azsou.com/games/tactics-prototype/</link><guid isPermaLink="true">https://azsou.com/games/tactics-prototype/</guid><description>六边形棋盘的回合制战棋原型：移动范围、先攻序、地形加成。棋盘布局的设计稿在作品区，代码在验证棋规是否成立。</description><pubDate>Sun, 05 Jul 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>声波塔防 0.6</title><link>https://azsou.com/games/audio-tower-defense/</link><guid isPermaLink="true">https://azsou.com/games/audio-tower-defense/</guid><description>用 Web Audio 实时分析驱动的塔防：敌人沿波形地形行进，塔的射速与音频频段联动。程序化声场项目的可玩化延伸。</description><pubDate>Thu, 02 Jul 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>EMBERDEEP Voxel 场景</title><link>https://azsou.com/works/emberdeep-voxel-scene/</link><guid isPermaLink="true">https://azsou.com/works/emberdeep-voxel-scene/</guid><description>EMBERDEEP 0.8 的地牢第三层实机画面：体素光照、雾效与程序化材质在同一场景里的表现。截图未做后期，保留了开发中的调试配色。 场景由地牢生成器输出，同一种子可完整复现。</description><pubDate>Wed, 01 Jul 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>战棋棋盘布局设计稿</title><link>https://azsou.com/works/wargame-board-design/</link><guid isPermaLink="true">https://azsou.com/works/wargame-board-design/</guid><description>回合制战棋原型 0.1 的棋盘布局推演：行动范围着色、威胁区叠加与镜头透视的三轮取舍。定稿采用 6×9 梯形透视棋盘——信息密度与可点击面积的平衡点。</description><pubDate>Wed, 01 Jul 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>体素雕刻过程记录</title><link>https://azsou.com/works/voxel-sculpt-process/</link><guid isPermaLink="true">https://azsou.com/works/voxel-sculpt-process/</guid><description>体素雕刻台上一件胸像从方块到成型的过程记录：对称轴锁定、逐层削减、材质试色。工具本身还在 0.3，这份记录同时也是它的功能验收样本。</description><pubDate>Wed, 01 Jul 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>体素雕刻台 0.5</title><link>https://azsou.com/games/voxel-sculpt/</link><guid isPermaLink="true">https://azsou.com/games/voxel-sculpt/</guid><description>浏览器里的体素雕刻工具：加减笔刷、镜像对称、调色板。为 EMBERDEEP 的角色与道具建模服务，导出格式与游戏管线打通。</description><pubDate>Mon, 29 Jun 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>Boids 星群沙盒 0.9</title><link>https://azsou.com/games/boids-sandbox/</link><guid isPermaLink="true">https://azsou.com/games/boids-sandbox/</guid><description>三千个体的 Boids 群体模拟沙盒：分离/对齐/聚拢参数实时可调，轨迹长曝光模式一键出图（作品区那张就是它导出的）。</description><pubDate>Thu, 25 Jun 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>重力高尔夫 0.7</title><link>https://azsou.com/games/gravity-golf/</link><guid isPermaLink="true">https://azsou.com/games/gravity-golf/</guid><description>行星引力场里打高尔夫：瞄准、蓄力、看弹道被多颗星体弯折。物理是自写的二体近似，误差在关卡尺度内可接受。</description><pubDate>Thu, 18 Jun 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>像素地牢实验 0.5</title><link>https://azsou.com/games/pixel-dungeon-lab/</link><guid isPermaLink="true">https://azsou.com/games/pixel-dungeon-lab/</guid><description>像素风地牢爬行实验：回合制移动、视野迷雾、火把照明。EMBERDEEP 的许多机制先在这里小规模验证。</description><pubDate>Mon, 15 Jun 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>FableMotion 动态排版</title><link>https://azsou.com/works/fm-motion-typography/</link><guid isPermaLink="true">https://azsou.com/works/fm-motion-typography/</guid><description>用 FableMotion 的时间轴和 Graph Editor 做的一组文字动效研究：入场节奏、字重过渡与运动路径的配合。所有关键帧都在编辑器里手工调整，没有脚本生成。 这组实验直接催生了 S3 的曲线预设功能——重复调同一条 ease 曲线七八次之后，把它存成预设就成了显而易见的需求。</description><pubDate>Mon, 01 Jun 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>Graph Editor 曲线研究</title><link>https://azsou.com/works/graph-editor-curves/</link><guid isPermaLink="true">https://azsou.com/works/graph-editor-curves/</guid><description>为 S3 的 Graph Editor 做的缓动曲线对照研究：同一段位移动画在 9 条手工曲线下的观感差异，逐帧标注了过冲、迟滞与&quot;机械感&quot;出现的位置。</description><pubDate>Mon, 01 Jun 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>Boids 轨迹长曝光</title><link>https://azsou.com/works/boids-long-exposure/</link><guid isPermaLink="true">https://azsou.com/works/boids-long-exposure/</guid><description>把 Boids 沙盒 1200 帧的位置历史叠加成一张&quot;长曝光&quot;：群体分离-对齐-聚合三条规则在时间维度上留下的轨迹束。同一种子可逐帧复现。</description><pubDate>Mon, 01 Jun 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>AI 头像风格迁移矩阵</title><link>https://azsou.com/works/avatar-style-transfer/</link><guid isPermaLink="true">https://azsou.com/works/avatar-style-transfer/</guid><description>一致性实验的续篇：固定角色特征，横轴换风格、纵轴换模型版本的迁移矩阵。结论与上一轮一致——发型与配饰锁定后，跨风格的角色可辨识度显著提升。</description><pubDate>Mon, 01 Jun 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>Three.js 魔方 1.0</title><link>https://azsou.com/games/threejs-rubik/</link><guid isPermaLink="true">https://azsou.com/games/threejs-rubik/</guid><description>Three.js 练手作：完整魔方求解交互，拖拽转层、打乱、还原动画。作为 Web 3D 系列的第一课，代码保持最小依赖。</description><pubDate>Wed, 20 May 2026 00:00:00 GMT</pubDate><category>游戏</category></item><item><title>AI 头像一致性实验</title><link>https://azsou.com/works/ai-avatar-consistency/</link><guid isPermaLink="true">https://azsou.com/works/ai-avatar-consistency/</guid><description>同一角色在 12 组提示词与 4 个模型版本下的形象一致性对比。目标不是好看，是量化&quot;像同一个人&quot;的可控性：固定种子、渐进修改提示词、记录漂移点。 结论：发型与配饰是漂移重灾区，锁定它们的描述词后一致率显著上升。完整对照表在实验记录里。</description><pubDate>Fri, 01 May 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>地牢生成时间序列</title><link>https://azsou.com/works/dungeon-gen-timeline/</link><guid isPermaLink="true">https://azsou.com/works/dungeon-gen-timeline/</guid><description>同一种子下地牢生成器四个阶段的对照：房间播撒、走廊连通、主路径标记、装饰落位。用于回归测试——任何阶段的输出变化都会在对照表里现形。</description><pubDate>Fri, 01 May 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>粒子声场可视化</title><link>https://azsou.com/works/particle-soundfield/</link><guid isPermaLink="true">https://azsou.com/works/particle-soundfield/</guid><description>程序化声场 2.x 的可视化外壳：把分层音效的能量包络映射到粒子束的密度与速度上，浏览器实时渲染。 这也是&quot;声波塔防&quot;的技术前身——先有了声音驱动粒子，才有了声音驱动敌人波次的想法。</description><pubDate>Wed, 01 Apr 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>材质 AI 上采样对照</title><link>https://azsou.com/works/material-upscale-bench/</link><guid isPermaLink="true">https://azsou.com/works/material-upscale-bench/</guid><description>地牢材质库从 256 到 1024 的三种上采样路径对照：传统插值、AI 超分、AI 超分 + 手工修补。石材细节保留率与瓦片接缝表现的量化记录。</description><pubDate>Wed, 01 Apr 2026 00:00:00 GMT</pubDate><category>作品</category></item><item><title>程序化地牢材质测试</title><link>https://azsou.com/works/procedural-dungeon-materials/</link><guid isPermaLink="true">https://azsou.com/works/procedural-dungeon-materials/</guid><description>EMBERDEEP 地牢材质管线的早期测试：同一几何体上程序化石材、苔藓与湿度层的叠加效果。参数全部暴露给数据表，供关卡按深度调用。</description><pubDate>Sun, 01 Mar 2026 00:00:00 GMT</pubDate><category>作品</category></item></channel></rss>