diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8d7d96a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,24 @@
+# Runtime data, cache and logs
+data/
+cache/
+*.log
+
+# Backups and temporary files
+备份/
+*.bak
+*.tmp
+.DS_Store
+
+# Environment and secrets
+.env
+.env.*
+*key*.txt
+credentials*.json
+
+# Editor and build artifacts
+.idea/
+.vscode/
+node_modules/
+vendor/
+dist/
+build/
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..df35ff8
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,42 @@
+# FlexPhoto 更新日志
+
+> 本文件记录本插件的所有修改与变化。仓库建立于 2026-12-03,此前历史见插件目录内的 `更新日志.MD`。
+
+## 2026-12-03 · 1.1.3:兼容七牛 EXIF 包裹层,横排不再被顶掉
+
+- 同步源码更新 2 个文件(新增/修改 2,删除 0)。
+
+## 插件信息
+
+- 名称:FlexPhoto(图片横排)
+- 版本:1.1.3
+- 作者:石头厝
+- 说明:正文里的多图等宽等高横排,配合 Fancybox 放大
+
+## 记录格式约定
+
+每次修改按如下格式在**最上方**追加一条记录(新的在上):
+
+```
+## YYYY-MM-DD · 版本号 —— 一句话概述
+
+- 改动点 1
+- 改动点 2
+- 影响范围 / 注意事项(若有)
+```
+
+## 2026-12-03 · 1.1.3 —— 兼容第三方图片包裹层
+
+- `style.css` 新增兼容层:`.flexphoto > .qiniu-exif-container` 与 `.flexphoto .flexphoto-link > .qiniu-exif-container` 都按 flex 子项处理,由包裹层承担 `--flexphoto-ratio` 比例、列宽与圆角裁切
+- 包裹层内的 `figure` 退化为「撑满即可」(`flex:1`、`width:auto`、`aspect-ratio:auto`),避免 4:3 被二次约束压扁高度
+- 包裹层内的 `img` 统一 `100% × 100% + object-fit:cover`,与原有缩略图裁切口径一致
+- 样式表引用加 `?20261203a` 防缓存
+- 纯 CSS 改动,不改 `buildPhotoItem()` 的结构产出;无包裹层时选择器不命中,原有排版不受影响
+
+## 2026-11-22 · 1.1.2 —— 统一作者与链接
+
+- `Plugin.php` 头部 `@author` 统一为「石头厝」,`@link` 统一为 `https://www.shitoucuo.com/`
+
+## 2026-11-22 · 1.1.2 —— 建立规范化备份与更新日志
+
+- 建立 `备份/` 文件夹与更新日志,作为后续修改的记录起点
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..0a57600
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,19 @@
+# 贡献指南
+
+欢迎对本项目提出改进建议或提交代码。
+
+## 提交前检查
+
+- 仅提交插件实现代码、静态资源与必要文档;不要提交 `data/`、`cache/`、调试日志、备份目录或 API Key 等敏感信息。
+- 变更涉及 Typecho 钩子或 PHP 版本兼容时,请确认兼容 Typecho 1.3 与 PHP 8.5。
+- 影响用户配置或后台展示的改动,请同步更新 `README.md` 与 `CHANGELOG.md`。
+
+## 提交流程
+
+1. Fork 仓库并创建功能分支。
+2. 完成修改后提交 Pull Request,说明改动目的与影响范围。
+3. 重要变更请补充变更记录。
+
+## 问题反馈
+
+请通过仓库 Issue 反馈问题,并附上插件版本、Typecho / PHP 版本与复现步骤。
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7951bd8
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 石头厝
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/Plugin.php b/Plugin.php
new file mode 100644
index 0000000..69b3bdd
--- /dev/null
+++ b/Plugin.php
@@ -0,0 +1,139 @@
+header = array('FlexPhoto_Plugin', 'skinhead');
+ Typecho_Plugin::factory('Widget_Abstract_Contents')->contentEx = array('FlexPhoto_Plugin','tutu');
+ Typecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx = array('FlexPhoto_Plugin','tus');
+ }
+
+ /**
+ * 禁用插件方法,如果禁用失败,直接抛出异常
+ *
+ * @static
+ * @access public
+ * @return void
+ * @throws Typecho_Plugin_Exception
+ */
+ public static function deactivate(){}
+
+ /**
+ * 获取插件配置面板
+ *
+ * @access public
+ * @param Typecho_Widget_Helper_Form $form 配置面板
+ * @return void
+ */
+ public static function config(Typecho_Widget_Helper_Form $form)
+ {
+ }
+
+ /**
+ * 个人用户的配置面板
+ *
+ * @access public
+ * @param Typecho_Widget_Helper_Form $form
+ * @return void
+ */
+ public static function personalConfig(Typecho_Widget_Helper_Form $form){}
+
+ public static function skinhead(){
+ ?>
+
+ )?\{flex(.*?)\}(.*?)\{\/flex\}(<\/p>)?(
)?/s';
+
+ $rp = '
', '
'], '', $match[2]) .'/flex}'; + + /* 逐个匹配 img 标签,保留原标签里的关键信息(data-src / alt), + 并自行生成 Fancybox 触发元素,避免依赖主题对 img 属性顺序的强制要求 */ + $new = preg_replace_callback('/
+
+
+{/flex}
+```
+
+指定各端列数(手机,平板,桌面,写 `0` 表示跟随图片数量):
+
+```
+{flex set="2,2,3"}
+...
+{/flex}
+```
+
+## 功能
+
+- **等宽等高**:默认按 `4/3` 比例裁切,每排高度一致;比例由 `.flexphoto` 的 `--flexphoto-ratio` 一处控制
+- **响应式列数**:`set="手机,平板,桌面"` 通过 CSS 变量下发,1024px / 768px 两个断点切换
+- **Fancybox 集成**:每张图自行生成 `figure > a.flexphoto-link[data-fancybox=gallery]`,不依赖主题对 `img` 属性顺序的要求
+- **摘要清理**:`excerptEx` 里只剥掉标记,不在列表页输出横排结构
+- **包裹层兼容**:第三方插件若把 `