From 24300733eee7922dd94616397f86182d89543bdd Mon Sep 17 00:00:00 2001 From: pardnchiu Date: Sat, 21 Dec 2024 16:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=8B=E7=B4=B9=E9=A0=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 228 +++++++++++++++++++++----------------- README.zh.md | 216 ++++++++++++++++++++---------------- agreement.html | 44 ++++---- doc.html | 37 ++++--- index.html | 111 ++++++------------- live.html | 107 ++++++++++++++++-- static/css/index.css | 2 +- static/js/doc.js | 0 static/js/live.js | 96 ---------------- static/json/en/intro.json | 27 +++++ static/json/zh/intro.json | 27 +++++ static/sass/_home.scss | 56 +++++++++- 12 files changed, 534 insertions(+), 417 deletions(-) delete mode 100644 static/js/doc.js delete mode 100644 static/js/live.js create mode 100644 static/json/en/intro.json create mode 100644 static/json/zh/intro.json diff --git a/README.md b/README.md index 9e43f4f..2a63362 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# NanoMD +# NanoMD: Lightweight Markdown Editor -*(Formerly known as PDMarkdownKit, renamed to NanoMD starting from version `1.8.0`)* +> [!NOTE] +> (Formerly known as PDMarkdownKit, renamed to NanoMD starting from version `1.8.0`) -> A pure JavaScript-based Markdown editor, built with native APIs, supports standard Markdown syntax with various extended features, including real-time preview, scroll synchronization, automatic detection of YouTube videos, and more.
-> Additionally, with its built-in virtual DOM technology, it updates only the modified parts, ensuring efficient rendering and smooth editing experiences, making it ideal for online editing scenarios. +> A modern Markdown editor built with pure JavaScript, focusing on performance and user experience. Leveraging virtual DOM technology to provide smooth real-time preview and editing experience. ![tag](https://img.shields.io/badge/tag-JavaScript%20Library-bb4444) ![size](https://img.shields.io/github/size/pardnchiu/NanoMD/dist%2FNanoMD.js)
@@ -16,105 +16,129 @@ ## Features -- Separate editor and viewer modules with real-time preview and scroll synchronization support. -- Supports standard Markdown syntax, including headings, bold, italic, links, images, code blocks, etc. -- Extended features such as subscript/superscript syntax, image resizing, alignment, and automatic YouTube / Vimeo link detection with video embedding. -- Includes undo/redo functions, multiple hotkeys, and supports importing/exporting files in Markdown and HTML formats. -- Implements virtual DOM concepts for efficient rendering by updating the page on-demand. -- Integrated [Google Icon](https://fonts.google.com/icons) and [code-prettify](https://github.com/googlearchive/code-prettify) for syntax highlighting. - -## Documentation & Demo - -- **Documentation**: [nanomd.pardn.io/doc.html](https://nanomd.pardn.io/doc.html) -- **Demo**: [nanomd.pardn.io/live.html](https://nanomd.pardn.io/live.html) -- **Website**: [nanomd.pardn.io](https://nanomd.pardn.io) +### High-Performance Editing +- Smart virtual DOM updates for optimal performance +- Real-time split-screen preview with WYSIWYG experience +- Intelligent scroll synchronization +- Optimized for large documents with zero lag + +### Advanced Markdown Support +- Complete standard syntax support +- Extended features: + - Code formatting and syntax highlighting + - Real-time math formula rendering + - Automatic table formatting + - Checkable task lists + - Quick block quotes + +### Media Integration +- Automatic YouTube and Vimeo video embedding with previews +- Smart image handling: + - Automatic thumbnail generation + - Flexible size control + - Multiple alignment options +- Responsive media support + +### Technical Advantages +- Pure JavaScript implementation, no external dependencies +- Efficient virtual DOM implementation +- Modular architecture design +- Complete ES Module support + +## Documentation + +- Website: [nanomd.pardn.io](https://nanomd.pardn.io) +- Documentation: [nanomd.pardn.io/doc.html](https://nanomd.pardn.io/doc.html) +- Demo: [nanomd.pardn.io/live.html](https://nanomd.pardn.io/live.html) ## Installation -- **Install via npm** - ```bash - npm i @pardnchiu/nanomd - ``` - -- **Include via CDN** - - **Include the `NanoMD` library** - ```html - - - - - - ``` - - **Module version** - ```javascript - // Version 1.8.0 and above - import { MDEditor, MDViewer } from "https://cdn.jsdelivr.net/npm/@pardnchiu/nanomd@[VERSION]/dist/NanoMD.esm.js"; - - // Version 1.6.0-1.7.1 - import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.module.js"; - - // Version 1.5.2 and below - import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.js"; - ``` - -## Usage - -- **Initialize `editor` and `viewer`** - ```Javascript - // Version 1.8.0 and above - // Unified: MDEditor, MDViewer - - // Version 1.7.1 and below - // IIFE: PDMarkdownEditor, PDMarkdownViewer - // ESM: editor, viewer - - const domEditor = new MDEditor({ - id: "", // Default: PDMDEditor - defaultContent: "", // Default content to display initially - hotKey: 1, // Enable hotkeys, default: 1 - preventRefresh: 0, // Prevent page refresh, default: 0 - tabPin: 0, // 1 | 0 | true | false - wrap: 1, // 1 | 0 | true | false - style: { - mode: "", // auto | light | dark, default: auto - fill: 1, // Adjust size to parent element, default: 1 - fontFamily: "", // Default: 'Noto Sans TC', sans-serif - showRow: 0, // Show line numbers, default: 1 - placeholder: { - text: "Content", // Default: Type here ... - color: "#ff000080" // Default: #0000ff1a - }, - focus: { - backgroundColor: "#ff00001a", // Default: #0000ffff - color: "#ff0000" // Default: #bfbfbf - } - } - }); - - const domViewer = new MDViewer({ - id: "", // Default: PDMDViewer - emptyContent: "", // Default content when editor is empty - style: { - mode: "", // auto | light | dark, default: auto - fill: "", // Adjust size to parent element, default: 1 | true - fontFamily: "", // Default: 'Noto Sans TC', sans-serif +### Install via npm +```bash +npm i @pardnchiu/nanomd +``` + +### Include via CDN + +#### Include the `NanoMD` library +```html + + + + + +``` + +#### Module version +```javascript +// Version 1.8.0 and above +import { MDEditor, MDViewer } from "https://cdn.jsdelivr.net/npm/@pardnchiu/nanomd@[VERSION]/dist/NanoMD.esm.js"; + +// Version 1.6.0-1.7.1 +import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.module.js"; + +// Version 1.5.2 and below +import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.js"; +``` + +## How to use + +### Initialize `editor` and `viewer` +```Javascript +// Version 1.8.0 and above +// Unified: MDEditor, MDViewer + +// Version 1.7.1 and below +// IIFE: PDMarkdownEditor, PDMarkdownViewer +// ESM: editor, viewer + +const domEditor = new MDEditor({ + id: "", // Element to replace + defaultContent: "", // Default content to display initially + hotKey: 1, // Enable hotkeys, default: 1 + preventRefresh: 0, // Prevent page refresh, default: 0 + tabPin: 0, // 1 | 0 | true | false + wrap: 1, // 1 | 0 | true | false + style: { + mode: "", // auto | light | dark, default: auto + fill: 1, // Adjust size to parent element, default: 1 + fontFamily: "", // Default: 'Noto Sans TC', sans-serif + showRow: 0, // Show line numbers, default: 1 + placeholder: { + text: "Content", // Default: Type here ... + color: "#ff000080" // Default: #0000ff1a }, - sync: { - editor: domEditor, // Associated editor - delay: 50, // Update delay in ms, default: 300 - scrollSync: 1, // Synchronize scrolling with editor, default: 0 | false - }, - hashtag: { - path: "?keyword=", // Path for hashtags, converting # to links - target: "_blank" // Target for hashtag links, default: _blank + focus: { + backgroundColor: "#ff00001a", // Default: #0000ffff + color: "#ff0000" // Default: #bfbfbf } - }); - - // If no element is specified, the player must be manually added to the DOM - (...).appendChild(domEditor.body); - (...).appendChild(domViewer.body); - - ``` + } +}); + +const domViewer = new MDViewer({ + id: "", // Element to replace + emptyContent: "", // Default content when editor is empty + style: { + mode: "", // auto | light | dark, default: auto + fill: "", // Adjust size to parent element, default: 1 | true + fontFamily: "", // Default: 'Noto Sans TC', sans-serif + }, + sync: { + editor: domEditor, // Associated editor + delay: 50, // Update delay in ms, default: 300 + scrollSync: 1, // Synchronize scrolling with editor, default: 0 | false + }, + hashtag: { + path: "?keyword=", // Path for hashtags, converting # to links + target: "_blank" // Target for hashtag links, default: _blank + } +}); + +// If no element is specified, the player must be manually added to the DOM +(...).appendChild(domEditor.body); +(...).appendChild(domViewer.body); + +``` ## License @@ -128,11 +152,15 @@ For detailed terms and conditions, please see the [Software Usage Agreement](htt ## Creator - +

邱敬幃 Pardn Chiu

-[![](https://skillicons.dev/icons?i=linkedin)](https://linkedin.com/in/pardnchiu) + + + + + *** diff --git a/README.zh.md b/README.zh.md index 3cc4dfe..410185e 100644 --- a/README.zh.md +++ b/README.zh.md @@ -1,9 +1,11 @@ -# NanoMD + -*(原名:PDMarkdownKit,自 `1.8.0` 版本起更名為 NanoMD)* +# NanoMD: 輕量化 Markdown 編輯器 -> 一個純 JavaScript 實現的 Markdown 編輯器,使用原生 API,支援標準 Markdown 語法並擴展多種功能,包括即時預覽、滾動同步、自動檢測 YouTube 視頻等功能。
-> 同時,內建虛擬 DOM 技術,僅更新變動部分,確保即時編輯中的高效渲染與流暢體驗,適合在線編輯場景。 +> [!NOTE] +> (原名:PDMarkdownKit,自 `1.8.0` 版本起更名為 NanoMD) + +> 純 JavaScript 打造的現代化 Markdown 編輯器,專注效能與使用體驗。採用虛擬 DOM 技術,提供流暢的即時預覽與編輯體驗。 ![tag](https://img.shields.io/badge/tag-JavaScript%20Library-bb4444) ![size](https://img.shields.io/github/size/pardnchiu/NanoMD/dist%2FNanoMD.js)
@@ -12,106 +14,130 @@ [![jsdeliver](https://img.shields.io/jsdelivr/npm/hm/@pardnchiu/nanomd)](https://www.jsdelivr.com/package/npm/@pardnchiu/nanomd)
[![](https://img.shields.io/badge/read-English%20Version-ffffff)](https://github.com/pardnchiu/NanoMD/blob/main/README.md) -## 特點 - -- 提供獨立的編輯與顯示模組,支持即時預覽和滾動同步。 -- 支持標準的 Markdown 語法,包括標題、粗體、斜體、連結、圖片、代碼區塊等。 -- 擴展功能如增加上下標語法,調整圖片大小、對齊,與偵測 Youtube / Vimeo 連結與影片插入。 -- 提供撤銷與重做功能,以及多項快捷鍵,並支持 Markdown 和 HTML 格式的檔案匯入與匯出。 -- 引入虛擬 DOM 概念,按需更新頁面,減少渲染所需資源。 -- 集成 [Google Icon](https://fonts.google.com/icons) 圖示與 [code-prettify](https://github.com/googlearchive/code-prettify) 語法高亮。 +## 核心特色 + +### 極速編輯體驗 +- 虛擬 DOM 智能更新,確保卓越效能 +- 即時分屏預覽,所見即所得 +- 智能滾動同步,無縫對應定位 +- 針對大型文件優化,順暢零延遲 + +### Markdown 進階支援 +- 完整標準語法支援 +- 擴展功能支援: + - 程式碼格式化與高亮 + - 數學公式即時渲染 + - 自動表格格式化 + - 可勾選任務清單 + - 快速引用區塊 + +### 多媒體整合能力 +- YouTube、Vimeo 影片自動嵌入與預覽 +- 智能圖片處理: + - 自動縮圖預覽 + - 靈活的尺寸控制 + - 多樣的對齊選項 +- 響應式媒體支援 + +### 技術優勢 +- 純 JavaScript 實現,無外部依賴 +- 高效虛擬 DOM 實作 +- 模組化架構設計 +- 完整 ES Module 支援 + +## 文件 + +- 網站: [nanomd.pardn.io](https://nanomd.pardn.io) +- 說明文件: [nanomd.pardn.io/doc.html](https://nanomd.pardn.io/doc.html) +- 線上編輯器: [nanomd.pardn.io/live.html](https://nanomd.pardn.io/live.html) -## 文件與展示 +## 安裝方式 -說明文件: [nanomd.pardn.io/doc.html](https://nanomd.pardn.io/doc.html) -線上編輯器: [nanomd.pardn.io/live.html](https://nanomd.pardn.io/live.html) -網站: [nanomd.pardn.io](https://nanomd.pardn.io) +### 從 npm 安裝 +```bash +npm i @pardnchiu/nanomd +``` -## 安裝方式 +### 從 CDN 引入 -- **從 npm 安裝** - ```bash - npm i @pardnchiu/nanomd - ``` +#### 引入 `NanoMD` 套件 +```html + + -- **從 CDN 引入** - - **引入 `NanoMD` 套件** - ```html - - + + +``` - - - ``` - - **Module 版本** - ```javascript - // 1.8.0 版本以上 - import { MDEditor, MDViewer } from "https://cdn.jsdelivr.net/npm/@pardnchiu/nanomd@[VERSION]/dist/NanoMD.esm.js"; +#### Module 版本 +```javascript +// 1.8.0 版本以上 +import { MDEditor, MDViewer } from "https://cdn.jsdelivr.net/npm/@pardnchiu/nanomd@[VERSION]/dist/NanoMD.esm.js"; - // 1.6.0-1.7.1 版本 - import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.module.js"; +// 1.6.0-1.7.1 版本 +import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.module.js"; - // 1.5.2 版本以下 - import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.js"; - ``` +// 1.5.2 版本以下 +import { editor, viewer } from "https://cdn.jsdelivr.net/npm/pdmarkdownkit@[VERSION]/dist/PDMarkdownKit.js"; +``` ## 使用方法 -- **初始化 `MDEditor` 和 `MDViewer`** - ```Javascript - // 1.8.0 版本以上 - // 統一使用: MDEditor, MDViewer - - // 1.7.1 版本以下 - // IIFE: PDMarkdownEditor, PDMarkdownViewer - // ESM: editor, viewer - - const domEditor = new MDEditor({ - id: "", // 指定元素取代元件 - defaultContent: "", // 預設內容,初始顯示 - hotKey: 1, // 啟用快捷鍵,預設為 1 - preventRefresh: 0, // 防止頁面重整,預設值:0 - tabPin: 0, // 1 | 0 | true | false - wrap: 1, // 1 | 0 | true | false - style: { - mode: "", // auto | light | dark, 預設: auto - fill: 1, // 隨父元素大小調整,預設值:1 - fontFamily: "", // 預設:'Noto Sans TC', sans-serif - showRow: 0, // 顯示行數,預設:1 - placeholder: { - text: "Content", // 預設:Type here ... - color: "#ff000080" // 預設:#0000ff1a - }, - focus: { - backgroundColor: "#ff00001a", // 預設:#0000ffff - color: "#ff0000" // 預設:#bfbfbf - } - } - }); - - const domViewer = new MDViewer({ - id: "", // 指定元素取代元件 - emptyContent: "", // 預設內容,當編輯器為空時顯示 - style: { - mode: "", // auto | light | dark, 預設: auto - fill: "", // 隨父元素大小調整,預設值:1 | true - fontFamily: "", // 預設:'Noto Sans TC', sans-serif - }, - sync: { - editor: domEditor, // 關聯的編輯器 - delay: 50, // 更新延遲,單位ms,預設 300 - scrollSync: 1, // 與編輯器同步滾動,預設值:0 | false +### 初始化 `MDEditor` 和 `MDViewer` +```Javascript +// 1.8.0 版本以上 +// 統一使用: MDEditor, MDViewer + +// 1.7.1 版本以下 +// IIFE: PDMarkdownEditor, PDMarkdownViewer +// ESM: editor, viewer + +const domEditor = new MDEditor({ + id: "", // 指定元素取代元件 + defaultContent: "", // 預設內容,初始顯示 + hotKey: 1, // 啟用快捷鍵,預設為 1 + preventRefresh: 0, // 防止頁面重整,預設值:0 + tabPin: 0, // 1 | 0 | true | false + wrap: 1, // 1 | 0 | true | false + style: { + mode: "", // auto | light | dark, 預設: auto + fill: 1, // 隨父元素大小調整,預設值:1 + fontFamily: "", // 預設:'Noto Sans TC', sans-serif + showRow: 0, // 顯示行數,預設:1 + placeholder: { + text: "Content", // 預設:Type here ... + color: "#ff000080" // 預設:#0000ff1a }, - hashtag: { - path: "?keyword=", // 標籤路徑,用於檢測 # 並轉換為Link - target: "_blank" // 標籤打開方式,預設 _blank + focus: { + backgroundColor: "#ff00001a", // 預設:#0000ffff + color: "#ff0000" // 預設:#bfbfbf } - }); - - // 若無指定元件,需手動將播放器加入至 DOM 中 - (...).appendChild(domEditor.body); - (...).appendChild(domViewer.body); - ``` + } +}); + +const domViewer = new MDViewer({ + id: "", // 指定元素取代元件 + emptyContent: "", // 預設內容,當編輯器為空時顯示 + style: { + mode: "", // auto | light | dark, 預設: auto + fill: "", // 隨父元素大小調整,預設值:1 | true + fontFamily: "", // 預設:'Noto Sans TC', sans-serif + }, + sync: { + editor: domEditor, // 關聯的編輯器 + delay: 50, // 更新延遲,單位ms,預設 300 + scrollSync: 1, // 與編輯器同步滾動,預設值:0 | false + }, + hashtag: { + path: "?keyword=", // 標籤路徑,用於檢測 # 並轉換為Link + target: "_blank" // 標籤打開方式,預設 _blank + } +}); + +// 若無指定元件,需手動將播放器加入至 DOM 中 +(...).appendChild(domEditor.body); +(...).appendChild(domViewer.body); +``` ## 授權條款 @@ -124,11 +150,15 @@ ## 開發者 - +

邱敬幃 Pardn Chiu

-[![](https://skillicons.dev/icons?i=linkedin)](https://linkedin.com/in/pardnchiu) + + + + + *** diff --git a/agreement.html b/agreement.html index 6c3295d..fc95ac6 100644 --- a/agreement.html +++ b/agreement.html @@ -119,24 +119,30 @@ "sameAs": [ "https://github.com/pardnchiu" ], - "email": "dev@pardn.io" + "email": "dev@pardn.io", }, + "image": "https://nanomd.pardn.io/static/image/website.jpg", } + +
-
- -
+
+ + + {{ change }} + + - - @@ -143,6 +134,102 @@ + \ No newline at end of file diff --git a/static/css/index.css b/static/css/index.css index 2db092b..992585f 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -1 +1 @@ -*{--col-txt-dark: #000;--col-txt-normal: #333;--col-txt-light: #666;--col-system: #BE554B;--col-test: #ffd4d4;position:relative;margin:0;padding:0;font-size:1em;font-family:"Noto Sans TC",sans-serif;letter-spacing:0;border:none;outline:none;background-color:rgba(0,0,0,0);color:hsl(223, 82%, 6%);word-wrap:break-word;box-sizing:border-box;-ms-overflow-style:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:manipulation;-webkit-touch-callout:inherit;-webkit-user-select:inherit;-khtml-user-select:inherit;-moz-user-select:inherit;-ms-user-select:inherit;user-select:inherit}*::-webkit-scrollbar{display:none}*.rz::-webkit-scrollbar{display:block;width:.25rem;background-color:hsl(223, 14%, 97%)}*.rz::-webkit-scrollbar-thumb{background-color:hsl(223, 11%, 81%)}*.rz.vert{resize:vertical}* [user-select=false],* [user-select="0"]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}* [user-select=true],* [user-select="1"]{-webkit-touch-callout:initial;-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:initial}*::before,*::after{box-sizing:border-box}*::-moz-selection{color:#fff;background:hsl(223, 75%, 52%)}*::selection{color:#fff;background:hsl(223, 75%, 52%)}img{content:url("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");object-fit:cover}img[src]:not([src=""]){content:unset}img[data-src]{background:linear-gradient(to right, #EEF0F3, #E0E2E8, #EEF0F3)}textarea{resize:none}input,textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none}input::placeholder,textarea::placeholder{color:hsl(223, 11%, 81%);opacity:1}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:hsl(223, 11%, 81%)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:hsl(223, 11%, 81%)}a[href]:not([href=""]),button{cursor:pointer}span,b,strong,i,em,time{line-height:inherit;font-size:inherit;color:inherit}html{position:fixed;display:block;width:100%;height:100%;overflow:hidden}body{position:relative;display:flex;width:100%;height:100%;background:#fff;overflow:hidden scroll}body.home{flex-flow:column;justify-content:flex-start}body.home *:not(i.fa-solid):not(i.fa-regular):not(i.fa-brands){font-family:"Saira Stencil One",sans-serif}body.home>*{flex-shrink:0}body.home button *{pointer-events:none}body.home>nav{position:sticky;top:0;left:0;right:0;display:flex;justify-content:center;align-items:center;padding:0 1rem;width:100%;height:4rem;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);z-index:1000}body.home>nav>section{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:100%;max-width:1440px}body.home>nav>section>section.center{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;justify-content:center;align-items:center;gap:.75rem;padding:0 .25rem;height:2.5rem;border:1px solid rgba(0,0,0,.2039215686);border-radius:1.25rem}body.home>nav>section>section.center[data-index="0"] a:nth-child(1){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="0"] a:nth-child(1)::after{opacity:1}body.home>nav>section>section.center[data-index="1"] a:nth-child(2){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="1"] a:nth-child(2)::after{opacity:1}body.home>nav>section>section.center[data-index="2"] a:nth-child(3){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="2"] a:nth-child(3)::after{opacity:1}body.home>nav>section>section.center[data-index="3"] a:nth-child(4){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="3"] a:nth-child(4)::after{opacity:1}body.home>nav>section>section.center a{position:relative;display:flex;align-items:center;gap:.375rem;padding:0 .75rem;line-height:2rem;text-decoration:none;font-size:.875rem;letter-spacing:.5px;color:#000;border-radius:1rem;box-shadow:0 0 0 rgba(0,0,0,0);transition:.3s}body.home>nav>section>section.center a::after{content:"";z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:linear-gradient(to top right, #4444cc, #4444ff);border-radius:1rem;opacity:0;transition:.3s}body.home>nav>section>section:not(.center){display:flex;justify-content:center;align-items:center;gap:1rem}body.home>nav>section>section:not(.center) a{display:flex;align-items:center;gap:.5rem;line-height:2rem;text-decoration:none;border-radius:.5rem;transition:.3s;right:calc(-100% - 2rem);padding:0 .5rem}body.home>nav>section>section:not(.center) a i{font-size:1rem;transition:.3s}body.home>nav>section>section:not(.center) a span{margin-left:-0.5rem;max-width:0;white-space:nowrap;overflow:hidden;opacity:0;transition:.3s}@media screen and (min-width: 480px){body.home>nav>section>section:not(.center) a{right:0}}@media screen and (min-width: 640px){body.home>nav>section>section:not(.center) a{background:linear-gradient(to top right, rgba(0, 0, 0, 0.0509803922), rgba(0, 0, 0, 0.1019607843))}body.home>nav>section>section:not(.center) a i{font-size:1rem}body.home>nav>section>section:not(.center) a span{margin-left:0;max-width:3rem;opacity:1}}@media(hover: hover){body.home>nav>section>section:not(.center) a:hover{top:-1px;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>nav>section>section:not(.center) a:active{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}}body.home>nav>section div{display:flex;justify-content:flex-start;align-items:center;flex-flow:column;gap:.25rem;padding:0 .75rem;height:2rem;border:1px solid rgba(0,0,0,.2039215686);border-radius:.5rem;overflow:hidden;cursor:pointer;transition:.3s}body.home>nav>section div[data-show="1"]{margin-top:2.5rem;padding:.25rem .75rem;height:4.625rem;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem)}body.home>nav>section div[data-index="0"] p:nth-child(1){order:0}body.home>nav>section div[data-index="1"] p:nth-child(2){order:0}body.home>nav>section div *{flex-shrink:0}body.home>nav>section div>p{order:1;line-height:2rem;font-size:.875rem}body.home>nav>section img{left:calc(-100% - 2rem);width:3rem;height:3rem;transition:.3s}@media screen and (min-width: 480px){body.home>nav>section img{left:0}}body.home>header{z-index:1;position:relative;display:flex;justify-content:center;align-items:center;width:100%;background:linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.0509803922));transition:.3s;padding:3rem 1rem 0}@media screen and (min-width: 480px){body.home>header{padding:5rem 1rem 0}}@media screen and (min-width: 640px){body.home>header{padding:8rem 1rem 0}}body.home>header>section{display:flex;flex-flow:column;justify-content:center;align-items:center;width:100%;max-width:90rem;gap:2.5rem;transition:.3s}body.home>header>section>section.logo{display:flex;justify-content:center;align-items:center;flex-flow:column}@media screen and (min-width: 480px){body.home>header>section>section.logo{flex-flow:row}}body.home>header>section>section.logo>img{width:8rem;height:8rem}body.home>header>section>section.logo>strong{display:flex;flex-flow:column;align-items:center;margin-top:-0.125rem;font-size:2.5rem;font-weight:bolder;transition:.3s}@media screen and (min-width: 480px){body.home>header>section>section.logo>strong{align-items:flex-start}}@media screen and (min-width: 640px){body.home>header>section>section.logo>strong{font-size:3rem}}body.home>header>section>section.logo>strong>span{margin-top:-0.25rem;width:100%;transition:.3s;font-size:1.25rem;text-align:center}@media screen and (min-width: 480px){body.home>header>section>section.logo>strong>span{text-align:left}}@media screen and (min-width: 640px){body.home>header>section>section.logo>strong>span{font-size:1.5rem}}body.home>header>section>section.button{display:flex;justify-content:center;align-items:center;flex-flow:row wrap;gap:.5rem 1rem}body.home>header>section>section.button>span{display:block;width:100%}body.home>header>section>section.button a{display:flex;align-items:center;gap:.5rem;top:0;padding:0 1rem;line-height:2.5rem;text-decoration:none;border:1px solid rgba(0,0,0,.2039215686);border-radius:.5rem;letter-spacing:1px;transition:.3s}body.home>header>section>section.button a:nth-child(1){color:#fff;background-color:#000;border:1px solid #000;box-shadow:0 0 0 rgba(0,0,0,0)}@media(hover: hover){body.home>header>section>section.button a:nth-child(1):hover{top:-1px;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>header>section>section.button a:nth-child(1):active{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}}body.home>header>section>section.button a:nth-child(2){color:#fff;background-color:#ba311c;border:1px solid #ba311c;box-shadow:0 0 0 rgba(0,0,0,0)}body.home>header>section>section.button a:nth-child(2):hover{top:-1px;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>header>section>section.button a:nth-child(2):active{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}body.home>header>section>section.button a:last-child{border:none}body.home>header>section>img{margin-top:1.5rem;width:100%;max-width:64rem;aspect-ratio:16/9.9;border:.5px solid rgba(0,0,0,.1019607843);border-radius:1rem;box-shadow:0 .75rem 1rem rgba(0,0,0,.1019607843)}body.home>header>section>a{display:flex;align-items:center;gap:.5rem;top:0;margin-top:3rem;padding:0 1.5rem;line-height:2.75rem;text-decoration:none;background:linear-gradient(to top right, #4444cc, #4444ff);color:#fff;border-radius:.5rem;letter-spacing:1px;transition:.3s}body.home>header>section>a i{right:0;font-size:1.25rem;transition:.3s}@media(hover: hover){body.home>header>section>a:hover i:last-child{right:-0.5rem}}body.home>section.home-quote{position:relative;display:flex;justify-content:center;align-items:center;padding:6rem 1rem 0;width:100%;background-color:rgba(0,0,0,.0509803922)}body.home>section.home-quote>section{position:relative;display:flex;flex-flow:column;justify-content:center;align-items:center;gap:1rem;width:initial;max-width:100%;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);border:4px dashed rgba(0,0,0,.2039215686);border-radius:.5rem}body.home>section.home-quote>section p{padding:1.5rem 3rem}body.home>section.home-quote>section i.fa-solid{position:absolute}body.home>section.home-quote>section i.fa-quote-left{top:.75rem;left:2.5rem;font-size:2.75rem;color:rgba(0,0,0,0);background:linear-gradient(to bottom right, rgba(0, 0, 0, 0.2039215686) 0%, rgba(0, 0, 0, 0));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0)}body.home>section.home-quote>section i.fa-quote-right{bottom:0;right:.75rem;font-size:2.75rem}body.home>section.home-intro{position:relative;display:flex;justify-content:center;align-items:center;padding:6rem 1rem;width:100%;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.0509803922) 30%, #ffffff)}body.home>section.home-intro>section{position:relative;display:flex;flex-flow:column;justify-content:center;align-items:flex-start;gap:1rem;top:0;width:100%;max-width:64rem}body.home>section.home-intro>section>i.fa-solid{position:absolute;top:-1rem;left:0;font-size:5rem;color:rgba(0,0,0,.1019607843)}body.home>section.home-intro>section>strong{max-width:720px;transition:.3s;font-size:1.5rem}@media screen and (min-width: 640px){body.home>section.home-intro>section>strong{font-size:2rem}}body.home>section.home-intro>section>section{display:flex;flex-flow:column;width:100%;aspect-ratio:16/9;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);border:1px solid rgba(0,0,0,.0509803922);border-radius:1.5rem;box-shadow:0 .75rem 1rem rgba(0,0,0,.1019607843);transition:.3s;padding:1.25rem}@media screen and (min-width: 480px){body.home>section.home-intro>section>section{padding:1.5rem}}@media screen and (min-width: 640px){body.home>section.home-intro>section>section{padding:2rem}}body.home>section.home-intro>section>section>strong{font-weight:500;transition:.3s;font-size:1.5rem}@media screen and (min-width: 480px){body.home>section.home-intro>section>section>strong{font-size:1.75rem}}body.home>section.home-intro>section>section p{margin-top:.5rem;letter-spacing:1px;transition:.3s}body.home>section.home-intro>section>section a{display:flex;align-items:center;gap:.25rem;margin:1.5rem 0;text-decoration:none;color:#44f;transition:.3s}@media(hover: hover){body.home>section.home-intro>section>section a:hover{gap:.5rem}}body.home>section.home-intro>section>section>figure{position:relative;width:100%;border-radius:1rem;background-color:rgba(0,0,0,.0509803922);overflow:hidden;transition:.3s;aspect-ratio:2/1}@media screen and (min-width: 640px){body.home>section.home-intro>section>section>figure{aspect-ratio:3/1}}body.home>section.home-intro>section>section>figure img{width:100%;aspect-ratio:2/1}@media screen and (min-width: 640px){body.home>section.home-intro>section>section>figure img{aspect-ratio:3/1}}body.home>section.home-intro>section>section>figure figcaption{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.2039215686);font-size:2rem;letter-spacing:.125rem}body.home>section.home-intro>section>section>section{display:flex;justify-content:center;align-items:center;flex-flow:row wrap;gap:1rem;margin-top:2rem}body.home>section.home-intro>section>section>section[data-index="0"] button:nth-child(1){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="0"] button:nth-child(1):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="1"] button:nth-child(2){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="1"] button:nth-child(2):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="2"] button:nth-child(3){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="2"] button:nth-child(3):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="3"] button:nth-child(4){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="3"] button:nth-child(4):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="4"] button:nth-child(5){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="4"] button:nth-child(5):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="5"] button:nth-child(6){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="5"] button:nth-child(6):after{opacity:1}body.home>section.home-intro>section>section>section button{position:relative;top:0;margin-bottom:0;padding:0 .75rem;line-height:2rem;font-size:.875rem;letter-spacing:1px;color:#000;border:1px solid rgba(0,0,0,.2039215686);border-radius:.25rem;transition:.3s;overflow:hidden}@media(hover: hover){body.home>section.home-intro>section>section>section button:hover{border:1px solid #000}}body.home>section.home-intro>section>section>section button::after{content:"";z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:linear-gradient(to top right, #4444cc, #4444ff);border-radius:.25rem;opacity:0;transition:.3s}body.home>section.doc-body{position:relative;display:flex;justify-content:center;align-items:center;padding:1rem 1rem 0;width:100%;height:calc(100% - 4rem);background:linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.0509803922))}body.home>section.doc-body>section{position:relative;display:flex;flex-flow:row;justify-content:flex-start;align-items:flex-start;top:0;width:100%;max-width:90rem;height:calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));background-color:#f9f9f9;box-shadow:0 .25rem .5rem rgba(0,0,0,.1019607843);border:.5px solid rgba(0,0,0,.1019607843);border-radius:1rem 1rem 0 0;overflow:hidden}body.home>section.doc-body>section:not(:has(section.tab)){max-width:50rem}body.home>section.doc-body>section>*{flex-shrink:0}body.home>section.doc-body>section>section.tab{z-index:1;display:flex;flex-flow:column;align-items:flex-start;gap:.125rem;padding:1.5rem 1rem;margin-left:-16rem;width:16rem;height:100%;transition:.3s;overflow:scroll}body.home>section.doc-body>section>section.tab[data-show="1"]{margin-left:0}@media screen and (min-width: 800px){body.home>section.doc-body>section>section.tab{margin-left:0}}body.home>section.doc-body>section>section.tab>*{flex-shrink:0}body.home>section.doc-body>section>section.tab[data-index="0"] button:nth-child(1){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="0"] button:nth-child(1):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="1"] button:nth-child(2){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="1"] button:nth-child(2):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="2"] button:nth-child(3){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="2"] button:nth-child(3):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="3"] button:nth-child(4){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="3"] button:nth-child(4):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="4"] button:nth-child(5){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="4"] button:nth-child(5):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="5"] button:nth-child(6){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="5"] button:nth-child(6):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="6"] button:nth-child(7){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="6"] button:nth-child(7):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="7"] button:nth-child(8){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="7"] button:nth-child(8):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="8"] button:nth-child(9){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="8"] button:nth-child(9):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="9"] button:nth-child(10){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="9"] button:nth-child(10):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="10"] button:nth-child(11){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="10"] button:nth-child(11):after{opacity:1}body.home>section.doc-body>section>section.tab button{position:relative;display:flex;justify-content:flex-start;align-items:center;gap:.75rem;padding:0 0 0 .75rem;width:100%;line-height:2.75rem;font-size:.875rem;letter-spacing:.5px;border-radius:.5rem;transition:.3s}@media(hover: hover){body.home>section.doc-body>section>section.tab button:hover{background-color:rgba(0,0,0,.0509803922)}}body.home>section.doc-body>section>section.tab button i{width:1.25rem;text-align:center}body.home>section.doc-body>section>section.tab button::after{content:"";z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:linear-gradient(to top right, #4444cc, #4444ff);border-radius:.5rem;opacity:0;transition:.3s}body.home>section.doc-body>section>section.content{position:relative;height:100%;background-color:#fff;box-shadow:-0.25rem 0 .5rem rgba(0,0,0,.0509803922);flex-grow:1}body.home>section.doc-body>section>section.content>button{z-index:1;display:flex;justify-content:center;align-items:center;gap:.5rem;font-size:1.25rem;transition:.3s;position:fixed;top:calc(100% - env(safe-area-inset-bottom) - .75rem - 2.75rem);left:.75rem;width:2.75rem;height:2.75rem;background-color:#fff;border-radius:50%;box-shadow:0 .5rem 1rem rgba(0,0,0,.2039215686)}@media screen and (min-width: 480px){body.home>section.doc-body>section>section.content>button{position:absolute;top:1rem;left:1rem;width:1.25rem;height:1.25rem;box-shadow:0 0 0 rgba(0,0,0,0)}}@media screen and (min-width: 800px){body.home>section.doc-body>section>section.content>button{display:none}}body.home>section.doc-body>section>section.content>button *{pointer-events:none}body.home>section.doc-body>section>section.content .pd-md-viewer{font-family:sans-serif;transition:.3s;padding:1rem 1rem 5rem}@media screen and (min-width: 480px){body.home>section.doc-body>section>section.content .pd-md-viewer{padding:1rem 1.5rem 5rem}}@media screen and (min-width: 640px){body.home>section.doc-body>section>section.content .pd-md-viewer{padding:1rem 2rem 5rem}}body.home>section.doc-body>section>section.content .pd-md-viewer *{font-family:inherit}body.home>footer{position:relative;display:flex;justify-content:center;align-items:center;flex-flow:column;gap:.75rem;padding:3rem 0;width:100%;background-color:#000;color:#fff}body.home>footer p,body.home>footer a{text-decoration:none;color:#fff}body.editor{flex-flow:row wrap}@media screen and (min-width: 64rem){body.editor[data-mode=dark] section.right{box-shadow:-4px 0 8px rgba(255,255,255,.0509803922) !important}}body.editor[data-show="1"] section.right{right:0;width:100%;opacity:1;background-color:#fff}body.editor>section.left{z-index:0;width:100%;transition:.3s;background-color:#fff}@media screen and (min-width: 64rem){body.editor>section.left{width:50%;background-color:#f9f9f9}}@media screen and (min-width: 100rem){body.editor>section.left{width:50rem}}body.editor>section.right{z-index:1;position:absolute;top:0;bottom:0;overflow:hidden;box-shadow:-4px 0 8px rgba(0,0,0,0);transition:.3s;right:-100%;width:50%;opacity:0}@media screen and (min-width: 64rem){body.editor>section.right{right:0;width:50% !important;box-shadow:-4px 0 8px rgba(0,0,0,.0509803922);opacity:1}}@media screen and (min-width: 100rem){body.editor>section.right{width:calc(100% - 50rem) !important}}body.editor>section.right .pd-md-viewer{padding:0 1rem 50vh}@media screen and (min-width: 64rem){body.editor>section.right .pd-md-viewer{padding:0 2rem 50vh}}@media screen and (min-width: 100rem){body.editor>section.right .pd-md-viewer{padding:0 4rem 50vh}}body.editor>section.button{z-index:1000;position:absolute;bottom:1.5rem;right:1.5rem;width:3.5rem;display:flex;flex-flow:column;justify-content:flex-end;background-color:#fff;box-shadow:0 2px 16px rgba(0,0,0,.2039215686);border-radius:1.75rem;transition:.3s;transition-delay:2s;transition-property:height;height:3.5rem;overflow:hidden}@media(hover: hover){body.editor>section.button:hover{height:17.5rem;transition-delay:0s}}@media screen and (min-width: 64rem)and (hover: hover){body.editor>section.button:hover{height:14rem;transition-delay:0s}}body.editor>section.button>i{flex-shrink:0;line-height:3.5rem;text-align:center;font-size:1.5rem;transition:.3s;cursor:pointer}@media screen and (min-width: 64rem){body.editor>section.button>i.fa-eye{height:0;opacity:0}} +*{--col-txt-dark: #000;--col-txt-normal: #333;--col-txt-light: #666;--col-system: #BE554B;--col-test: #ffd4d4;position:relative;margin:0;padding:0;font-size:1em;font-family:"Noto Sans TC",sans-serif;letter-spacing:0;border:none;outline:none;background-color:rgba(0,0,0,0);color:hsl(223, 82%, 6%);word-wrap:break-word;box-sizing:border-box;-ms-overflow-style:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:manipulation;-webkit-touch-callout:inherit;-webkit-user-select:inherit;-khtml-user-select:inherit;-moz-user-select:inherit;-ms-user-select:inherit;user-select:inherit}*::-webkit-scrollbar{display:none}*.rz::-webkit-scrollbar{display:block;width:.25rem;background-color:hsl(223, 14%, 97%)}*.rz::-webkit-scrollbar-thumb{background-color:hsl(223, 11%, 81%)}*.rz.vert{resize:vertical}* [user-select=false],* [user-select="0"]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}* [user-select=true],* [user-select="1"]{-webkit-touch-callout:initial;-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:initial}*::before,*::after{box-sizing:border-box}*::-moz-selection{color:#fff;background:hsl(223, 75%, 52%)}*::selection{color:#fff;background:hsl(223, 75%, 52%)}img{content:url("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");object-fit:cover}img[src]:not([src=""]){content:unset}img[data-src]{background:linear-gradient(to right, #EEF0F3, #E0E2E8, #EEF0F3)}textarea{resize:none}input,textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none}input::placeholder,textarea::placeholder{color:hsl(223, 11%, 81%);opacity:1}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:hsl(223, 11%, 81%)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:hsl(223, 11%, 81%)}a[href]:not([href=""]),button{cursor:pointer}span,b,strong,i,em,time{line-height:inherit;font-size:inherit;color:inherit}html{position:fixed;display:block;width:100%;height:100%;overflow:hidden}body{position:relative;display:flex;width:100%;height:100%;background:#fff;overflow:hidden scroll}body.home{flex-flow:column;justify-content:flex-start}body.home *:not(i.fa-solid):not(i.fa-regular):not(i.fa-brands){font-family:"Saira Stencil One",sans-serif}body.home>*{flex-shrink:0}body.home button *{pointer-events:none}body.home>nav{position:sticky;top:0;left:0;right:0;display:flex;justify-content:center;align-items:center;padding:0 1rem;width:100%;height:4rem;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);z-index:1000}body.home>nav>section{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:100%;max-width:1440px}body.home>nav>section>section.center{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;justify-content:center;align-items:center;gap:.75rem;padding:0 .25rem;height:2.5rem;border:1px solid rgba(0,0,0,.2039215686);border-radius:1.25rem}body.home>nav>section>section.center[data-index="0"] a:nth-child(1){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="0"] a:nth-child(1)::after{opacity:1}body.home>nav>section>section.center[data-index="1"] a:nth-child(2){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="1"] a:nth-child(2)::after{opacity:1}body.home>nav>section>section.center[data-index="2"] a:nth-child(3){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="2"] a:nth-child(3)::after{opacity:1}body.home>nav>section>section.center[data-index="3"] a:nth-child(4){color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2039215686)}body.home>nav>section>section.center[data-index="3"] a:nth-child(4)::after{opacity:1}body.home>nav>section>section.center a{position:relative;display:flex;align-items:center;gap:.375rem;padding:0 .75rem;line-height:2rem;text-decoration:none;font-size:.875rem;letter-spacing:.5px;color:#000;border-radius:1rem;box-shadow:0 0 0 rgba(0,0,0,0);transition:.3s}body.home>nav>section>section.center a::after{content:"";z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:linear-gradient(to top right, #4444cc, #4444ff);border-radius:1rem;opacity:0;transition:.3s}body.home>nav>section>section:not(.center){display:flex;justify-content:center;align-items:center;gap:1rem}body.home>nav>section>section:not(.center) a{display:flex;align-items:center;gap:.5rem;line-height:2rem;text-decoration:none;border-radius:.5rem;transition:.3s;right:calc(-100% - 2rem);padding:0 .5rem}body.home>nav>section>section:not(.center) a:has(img){padding:0}@media(hover: hover){body.home>nav>section>section:not(.center) a:has(img):hover{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}}body.home>nav>section>section:not(.center) a:has(img) img{background-color:#fff}body.home>nav>section>section:not(.center) a i{font-size:1rem;transition:.3s}body.home>nav>section>section:not(.center) a span{margin-left:-0.5rem;max-width:0;white-space:nowrap;overflow:hidden;opacity:0;transition:.3s}@media screen and (min-width: 480px){body.home>nav>section>section:not(.center) a{right:0}}@media screen and (min-width: 640px){body.home>nav>section>section:not(.center) a{background:linear-gradient(to top right, rgba(0, 0, 0, 0.0509803922), rgba(0, 0, 0, 0.1019607843))}body.home>nav>section>section:not(.center) a i{font-size:1rem}body.home>nav>section>section:not(.center) a span{margin-left:0;max-width:3rem;opacity:1}}@media(hover: hover){body.home>nav>section>section:not(.center) a:hover{top:-1px;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>nav>section>section:not(.center) a:active{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}}body.home>nav>section div{display:flex;justify-content:flex-start;align-items:center;flex-flow:column;gap:.25rem;padding:0 .75rem;height:2rem;border:1px solid rgba(0,0,0,.2039215686);border-radius:.5rem;overflow:hidden;cursor:pointer;transition:.3s}body.home>nav>section div[data-show="1"]{margin-top:2.5rem;padding:.25rem .75rem;height:4.625rem;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem)}body.home>nav>section div[data-index="0"] p:nth-child(1){order:0}body.home>nav>section div[data-index="1"] p:nth-child(2){order:0}body.home>nav>section div *{flex-shrink:0}body.home>nav>section div>p{order:1;line-height:2rem;font-size:.875rem}body.home>nav>section img{left:calc(-100% - 2rem);width:3rem;height:3rem;transition:.3s}@media screen and (min-width: 480px){body.home>nav>section img{left:0}}body.home>header{z-index:1;position:relative;display:flex;justify-content:center;align-items:center;width:100%;background:linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.0509803922));transition:.3s;padding:3rem 1rem 0}@media screen and (min-width: 480px){body.home>header{padding:5rem 1rem 0}}@media screen and (min-width: 640px){body.home>header{padding:8rem 1rem 0}}body.home>header>section{display:flex;flex-flow:column;justify-content:center;align-items:center;width:100%;max-width:90rem;gap:2.5rem;transition:.3s}body.home>header>section>section.logo{display:flex;justify-content:center;align-items:center;flex-flow:column}@media screen and (min-width: 480px){body.home>header>section>section.logo{flex-flow:row}}body.home>header>section>section.logo>img{width:8rem;height:8rem}body.home>header>section>section.logo>strong{display:flex;flex-flow:column;align-items:center;margin-top:-0.125rem;font-size:2.5rem;font-weight:bolder;transition:.3s}@media screen and (min-width: 480px){body.home>header>section>section.logo>strong{align-items:flex-start}}@media screen and (min-width: 640px){body.home>header>section>section.logo>strong{font-size:3rem}}body.home>header>section>section.logo>strong>span{margin-top:-0.25rem;width:100%;transition:.3s;font-size:1.25rem;text-align:center}@media screen and (min-width: 480px){body.home>header>section>section.logo>strong>span{text-align:left}}@media screen and (min-width: 640px){body.home>header>section>section.logo>strong>span{font-size:1.5rem}}body.home>header>section>section.button{display:flex;justify-content:center;align-items:center;flex-flow:row wrap;gap:.5rem 1rem}body.home>header>section>section.button>span{display:block;width:100%}body.home>header>section>section.button a{display:flex;align-items:center;gap:.5rem;top:0;padding:0 1rem;line-height:2.5rem;text-decoration:none;border:1px solid rgba(0,0,0,.2039215686);border-radius:.5rem;letter-spacing:1px;transition:.3s}body.home>header>section>section.button a:nth-child(1){color:#fff;background-color:#000;border:1px solid #000;box-shadow:0 0 0 rgba(0,0,0,0)}@media(hover: hover){body.home>header>section>section.button a:nth-child(1):hover{top:-1px;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>header>section>section.button a:nth-child(1):active{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}}body.home>header>section>section.button a:nth-child(2){color:#fff;background-color:#ba311c;border:1px solid #ba311c;box-shadow:0 0 0 rgba(0,0,0,0)}body.home>header>section>section.button a:nth-child(2):hover{top:-1px;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>header>section>section.button a:nth-child(2):active{top:0;box-shadow:0 0 0 rgba(0,0,0,0)}body.home>header>section>section.button a:last-child{border:none}body.home>header>section>img{margin-top:1.5rem;width:100%;max-width:64rem;aspect-ratio:16/9.9;border:.5px solid rgba(0,0,0,.1019607843);border-radius:1rem;box-shadow:0 .75rem 1rem rgba(0,0,0,.1019607843)}body.home>header>section>a{display:flex;align-items:center;gap:.5rem;top:0;margin-top:3rem;padding:0 1.5rem;line-height:2.75rem;text-decoration:none;background:linear-gradient(to top right, #4444cc, #4444ff);color:#fff;border-radius:.5rem;letter-spacing:1px;transition:.3s}body.home>header>section>a i{right:0;font-size:1.25rem;transition:.3s}@media(hover: hover){body.home>header>section>a:hover i:last-child{right:-0.5rem}}body.home>section.home-quote{position:relative;display:flex;justify-content:center;align-items:center;padding:6rem 1rem 0;width:100%;background-color:rgba(0,0,0,.0509803922)}body.home>section.home-quote>section{position:relative;display:flex;flex-flow:column;justify-content:center;align-items:center;gap:1rem;width:initial;max-width:100%;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);border:4px dashed rgba(0,0,0,.2039215686);border-radius:.5rem}body.home>section.home-quote>section p{padding:1.5rem 3rem}body.home>section.home-quote>section i.fa-solid{position:absolute}body.home>section.home-quote>section i.fa-quote-left{top:.75rem;left:2.5rem;font-size:2.75rem;color:rgba(0,0,0,0);background:linear-gradient(to bottom right, rgba(0, 0, 0, 0.2039215686) 0%, rgba(0, 0, 0, 0));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:rgba(0,0,0,0)}body.home>section.home-quote>section i.fa-quote-right{bottom:0;right:.75rem;font-size:2.75rem}body.home>section.home-intro{position:relative;display:flex;justify-content:center;align-items:center;padding:6rem 1rem;width:100%;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.0509803922) 30%, #ffffff)}body.home>section.home-intro>section{position:relative;display:flex;flex-flow:column;justify-content:center;align-items:flex-start;gap:1rem;top:0;width:100%;max-width:64rem}body.home>section.home-intro>section>i.fa-solid{position:absolute;top:-1rem;left:0;font-size:5rem;color:rgba(0,0,0,.1019607843)}body.home>section.home-intro>section>strong{max-width:720px;transition:.3s;font-size:1.5rem}@media screen and (min-width: 640px){body.home>section.home-intro>section>strong{font-size:2rem}}body.home>section.home-intro>section>section{display:flex;flex-flow:column;width:100%;aspect-ratio:16/9;background-color:rgba(255,255,255,.8078431373);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);border:1px solid rgba(0,0,0,.0509803922);border-radius:1.5rem;box-shadow:0 .75rem 1rem rgba(0,0,0,.1019607843);transition:.3s;padding:1.25rem}@media screen and (min-width: 480px){body.home>section.home-intro>section>section{padding:1.5rem}}@media screen and (min-width: 640px){body.home>section.home-intro>section>section{padding:2rem}}body.home>section.home-intro>section>section>strong{font-weight:500;transition:.3s;font-size:1.5rem}@media screen and (min-width: 480px){body.home>section.home-intro>section>section>strong{font-size:1.75rem}}body.home>section.home-intro>section>section p{margin-top:.5rem;letter-spacing:1px;transition:.3s}body.home>section.home-intro>section>section a{display:flex;align-items:center;gap:.25rem;margin:1.5rem 0;text-decoration:none;color:#44f;transition:.3s}@media(hover: hover){body.home>section.home-intro>section>section a:hover{gap:.5rem}}body.home>section.home-intro>section>section>figure{position:relative;width:100%;border-radius:1rem;background-color:rgba(0,0,0,.0509803922);overflow:hidden;transition:.3s;aspect-ratio:2/1}@media screen and (min-width: 640px){body.home>section.home-intro>section>section>figure{aspect-ratio:3/1}}body.home>section.home-intro>section>section>figure img{width:100%;aspect-ratio:2/1}@media screen and (min-width: 640px){body.home>section.home-intro>section>section>figure img{aspect-ratio:3/1}}body.home>section.home-intro>section>section>figure figcaption{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.2039215686);font-size:2rem;letter-spacing:.125rem}body.home>section.home-intro>section>section>section{display:flex;justify-content:center;align-items:center;flex-flow:row wrap;gap:1rem;margin-top:2rem}body.home>section.home-intro>section>section>section[data-index="0"] button:nth-child(1){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="0"] button:nth-child(1):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="1"] button:nth-child(2){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="1"] button:nth-child(2):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="2"] button:nth-child(3){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="2"] button:nth-child(3):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="3"] button:nth-child(4){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="3"] button:nth-child(4):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="4"] button:nth-child(5){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="4"] button:nth-child(5):after{opacity:1}body.home>section.home-intro>section>section>section[data-index="5"] button:nth-child(6){top:-2px;margin-bottom:2px;color:#fff;border:0px solid rgba(0,0,0,0);box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.home-intro>section>section>section[data-index="5"] button:nth-child(6):after{opacity:1}body.home>section.home-intro>section>section>section button{position:relative;top:0;margin-bottom:0;padding:0 .75rem;line-height:2rem;font-size:.875rem;letter-spacing:1px;color:#000;border:1px solid rgba(0,0,0,.2039215686);border-radius:.25rem;transition:.3s;overflow:hidden}@media(hover: hover){body.home>section.home-intro>section>section>section button:hover{border:1px solid #000}}body.home>section.home-intro>section>section>section button::after{content:"";z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:linear-gradient(to top right, #4444cc, #4444ff);border-radius:.25rem;opacity:0;transition:.3s}body.home>section.doc-body{position:relative;display:flex;justify-content:center;align-items:center;padding:1rem 1rem 0;width:100%;height:calc(100% - 4rem);background:linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.0509803922))}body.home>section.doc-body>section{position:relative;display:flex;flex-flow:row;justify-content:flex-start;align-items:flex-start;top:0;width:100%;max-width:90rem;height:calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));background-color:#f9f9f9;box-shadow:0 .25rem .5rem rgba(0,0,0,.1019607843);border:.5px solid rgba(0,0,0,.1019607843);border-radius:1rem 1rem 0 0;overflow:hidden}body.home>section.doc-body>section:not(:has(section.tab)){max-width:50rem}body.home>section.doc-body>section>*{flex-shrink:0}body.home>section.doc-body>section>section.tab{z-index:1;display:flex;flex-flow:column;align-items:flex-start;gap:.125rem;padding:1.5rem 1rem;margin-left:-16rem;width:16rem;height:100%;transition:.3s;overflow:scroll}body.home>section.doc-body>section>section.tab[data-show="1"]{margin-left:0}@media screen and (min-width: 800px){body.home>section.doc-body>section>section.tab{margin-left:0}}body.home>section.doc-body>section>section.tab>*{flex-shrink:0}body.home>section.doc-body>section>section.tab[data-index="0"] button:nth-child(1){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="0"] button:nth-child(1):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="1"] button:nth-child(2){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="1"] button:nth-child(2):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="2"] button:nth-child(3){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="2"] button:nth-child(3):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="3"] button:nth-child(4){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="3"] button:nth-child(4):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="4"] button:nth-child(5){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="4"] button:nth-child(5):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="5"] button:nth-child(6){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="5"] button:nth-child(6):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="6"] button:nth-child(7){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="6"] button:nth-child(7):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="7"] button:nth-child(8){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="7"] button:nth-child(8):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="8"] button:nth-child(9){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="8"] button:nth-child(9):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="9"] button:nth-child(10){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="9"] button:nth-child(10):after{opacity:1}body.home>section.doc-body>section>section.tab[data-index="10"] button:nth-child(11){color:#fff;box-shadow:0 .25rem .5rem rgba(0,0,0,.2039215686)}body.home>section.doc-body>section>section.tab[data-index="10"] button:nth-child(11):after{opacity:1}body.home>section.doc-body>section>section.tab button{position:relative;display:flex;justify-content:flex-start;align-items:center;gap:.75rem;padding:0 0 0 .75rem;width:100%;line-height:2.75rem;font-size:.875rem;letter-spacing:.5px;border-radius:.5rem;transition:.3s}@media(hover: hover){body.home>section.doc-body>section>section.tab button:hover{background-color:rgba(0,0,0,.0509803922)}}body.home>section.doc-body>section>section.tab button i{width:1.25rem;text-align:center}body.home>section.doc-body>section>section.tab button::after{content:"";z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;background:linear-gradient(to top right, #4444cc, #4444ff);border-radius:.5rem;opacity:0;transition:.3s}body.home>section.doc-body>section>section.content{position:relative;height:100%;background-color:#fff;box-shadow:-0.25rem 0 .5rem rgba(0,0,0,.0509803922);flex-grow:1}body.home>section.doc-body>section>section.content>button{z-index:1;display:flex;justify-content:center;align-items:center;gap:.5rem;font-size:1.25rem;transition:.3s;position:fixed;top:calc(100% - env(safe-area-inset-bottom) - .75rem - 2.75rem);left:.75rem;width:2.75rem;height:2.75rem;background-color:#fff;border-radius:50%;box-shadow:0 .5rem 1rem rgba(0,0,0,.2039215686)}@media screen and (min-width: 480px){body.home>section.doc-body>section>section.content>button{position:absolute;top:1rem;left:1rem;width:1.25rem;height:1.25rem;box-shadow:0 0 0 rgba(0,0,0,0)}}@media screen and (min-width: 800px){body.home>section.doc-body>section>section.content>button{display:none}}body.home>section.doc-body>section>section.content>button *{pointer-events:none}body.home>section.doc-body>section>section.content .pd-md-viewer{font-family:sans-serif;transition:.3s;padding:1rem 1rem 5rem}@media screen and (min-width: 480px){body.home>section.doc-body>section>section.content .pd-md-viewer{padding:1rem 1.5rem 5rem}}@media screen and (min-width: 640px){body.home>section.doc-body>section>section.content .pd-md-viewer{padding:1rem 2rem 5rem}}body.home>section.doc-body>section>section.content .pd-md-viewer *{font-family:inherit}body.home>footer{position:relative;display:flex;justify-content:center;align-items:center;flex-flow:column;gap:.75rem;padding:3rem 0;width:100%;background-color:#000;color:#fff}body.home>footer a{padding:.125rem 0;color:#fff;text-decoration:none;border-bottom:.5px solid #fff}body.home>footer p{color:rgba(255,255,255,.8)}body.home>footer p:last-child{color:#fff}body.home>a.lang{z-index:1000;position:fixed;right:1.5rem;bottom:1.5rem;display:flex;align-items:center;gap:.5rem;padding:0 1rem;line-height:2.5rem;text-decoration:none;color:#000;background-color:rgba(255,255,255,.8);backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);border-radius:.75rem;box-shadow:0 4px 8px rgba(0,0,0,.1019607843)}body.editor{flex-flow:row wrap}@media screen and (min-width: 64rem){body.editor[data-mode=dark] section.right{box-shadow:-4px 0 8px rgba(255,255,255,.0509803922) !important}}body.editor[data-show="1"] section.right{right:0;width:100%;opacity:1;background-color:#fff}body.editor>section.left{z-index:0;width:100%;transition:.3s;background-color:#fff}@media screen and (min-width: 64rem){body.editor>section.left{width:50%;background-color:#f9f9f9}}@media screen and (min-width: 100rem){body.editor>section.left{width:50rem}}body.editor>section.right{z-index:1;position:absolute;top:0;bottom:0;overflow:hidden;box-shadow:-4px 0 8px rgba(0,0,0,0);transition:.3s;right:-100%;width:50%;opacity:0}@media screen and (min-width: 64rem){body.editor>section.right{right:0;width:50% !important;box-shadow:-4px 0 8px rgba(0,0,0,.0509803922);opacity:1}}@media screen and (min-width: 100rem){body.editor>section.right{width:calc(100% - 50rem) !important}}body.editor>section.right .pd-md-viewer{padding:0 1rem 50vh}@media screen and (min-width: 64rem){body.editor>section.right .pd-md-viewer{padding:0 2rem 50vh}}@media screen and (min-width: 100rem){body.editor>section.right .pd-md-viewer{padding:0 4rem 50vh}}body.editor>section.button{z-index:1000;position:absolute;bottom:1.5rem;right:1.5rem;width:3.5rem;display:flex;flex-flow:column;justify-content:flex-end;background-color:#fff;box-shadow:0 2px 16px rgba(0,0,0,.2039215686);border-radius:1.75rem;transition:.3s;transition-delay:2s;transition-property:height;height:3.5rem;overflow:hidden}@media(hover: hover){body.editor>section.button:hover{height:17.5rem;transition-delay:0s}}@media screen and (min-width: 64rem)and (hover: hover){body.editor>section.button:hover{height:14rem;transition-delay:0s}}body.editor>section.button>i{flex-shrink:0;line-height:3.5rem;text-align:center;font-size:1.5rem;transition:.3s;cursor:pointer}@media screen and (min-width: 64rem){body.editor>section.button>i.fa-eye{height:0;opacity:0}} diff --git a/static/js/doc.js b/static/js/doc.js deleted file mode 100644 index e69de29..0000000 diff --git a/static/js/live.js b/static/js/live.js deleted file mode 100644 index 9116dae..0000000 --- a/static/js/live.js +++ /dev/null @@ -1,96 +0,0 @@ -// import { MDEditor, MDViewer } from "../../dist/NanoMD.esm.js" - -let elm_editor, elm_viewer; - -document.addEventListener("DOMContentLoaded", async _ => { - const url = new URL(location.href); - const currentLanguage = navigator.language || navigator.userLanguage; - const lang = url.searchParams.get("lang"); - let isZh = /^zh/i.test(currentLanguage); - - if (lang != null) { - isZh = /^zh/i.test(lang); - }; - - let pre = ""; - - await fetch("./static/md/" + (isZh ? "zh" : "en") + "/live.md") - .then(response => response.text()) - .then(data => { - pre = data; - }) - .catch(error => { - console.error(error); - }); - - const app = new QUI({ - id: "app", - data: { - lang: isZh ? "zh" : "en" - }, - event: { - click_show: e => { - const is_show = parseInt(document.body.dataset.show) === 1; - - document.body.dataset.show = is_show ? 0 : 1; - }, - click_mode: e => { - const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches || elm_editor.body.dataset.mode === "dark" || elm_viewer.body.dataset.mode === "dark"; - - document.getElementById("app").dataset.mode = isDarkMode ? "light" : "dark"; - elm_editor.changeMode(isDarkMode ? "light" : "dark") - elm_viewer.changeMode(isDarkMode ? "light" : "dark") - }, - click_html: e => { - elm_editor.downloadHtml(); - }, - click_markdown: e => { - elm_editor.downloadMd(); - }, - click_info: e => { - alert("NanoMD\n還沒想好這一塊的設計\n也沒處理好暗色模式的配色") - } - }, - when: { - rendered: _ => { - const keyword = (new URL(location.href)).searchParams.get("keyword"); - - if (keyword) { - alert("標籤:" + keyword) - }; - - elm_editor = new MDEditor({ - id: "editor", - defaultContent: pre, - tabPin: 1, - wrap: 1, - style: { - mode: "", // auto | light | dark, 預設: auto - fill: 1, // 隨父元素大小調整,預設值:1 - fontFamily: "", // 預設:'Noto Sans TC', sans-serif - showRow: 0, // 顯示行數,預設:1 - placeholder: { - text: "Content", // 預設:Type here ... - color: "#ff000080" // 預設:#0000ff1a - }, - focus: { - backgroundColor: "#ff00001a", // 預設:#0000ffff - color: "#ff0000" // 預設:#bfbfbf - } - } - }); - elm_viewer = new MDViewer({ - id: "viewer", - sync: { - editor: elm_editor, - scroll: 1, - }, - hashtag: { - path: "?keyword=", - target: "_blank" - } - }); - } - } - }); -}); diff --git a/static/json/en/intro.json b/static/json/en/intro.json new file mode 100644 index 0000000..fa716de --- /dev/null +++ b/static/json/en/intro.json @@ -0,0 +1,27 @@ +{ + "lightweight & powerful": { + "title": "A lightweight and powerful editor", + "description": "Developed with pure JavaScript and native APIs.
Provides an efficient, stable, and lightweight editing experience.", + "href": "" + }, + "standard syntax": { + "title": "Supports standard Markdown syntax", + "description": "Fully supports standard features such as fonts, links, images, lists, tables, code blocks, and quotes,
with additional extensions to enhance the user experience.", + "href": "" + }, + "live preview": { + "title": "WYSIWYG live preview", + "description": "Provides live preview with scroll synchronization.
Allows you to see both editing and results clearly for easy visual editing.", + "href": "" + }, + "auto detection": { + "title": "Automatic detection and embedding features", + "description": "Automatically detects links and embeds related content,
currently supports multiple services such as YouTube and Vimeo.", + "href": "" + }, + "easy embedding": { + "title": "Modular design for easy embedding", + "description": "Simply add a few lines of code to quickly integrate the editor into your website,
flexible configuration and easy operation.", + "href": "" + } +} \ No newline at end of file diff --git a/static/json/zh/intro.json b/static/json/zh/intro.json new file mode 100644 index 0000000..45ce791 --- /dev/null +++ b/static/json/zh/intro.json @@ -0,0 +1,27 @@ +{ + "輕量強大": { + "title": "輕量且功能強大的編輯器", + "description": "基於純 JavaScript 和原生 API 所開發。
實現高效、穩定且無負擔的編輯體驗。", + "href": "" + }, + "標準語法": { + "title": "支持標準 Markdown 語法", + "description": "完整支持字體、連結、圖片、列表、表格、代碼塊與引用等標準功能,
並提供額外擴展以提升使用體驗。", + "href": "" + }, + "即時預覽": { + "title": "所見即所得的即時預覽", + "description": "提供即時預覽,與滾動同步功能。
讓編輯和結果一目了然,輕鬆實現可視化編輯。", + "href": "" + }, + "自動偵測": { + "title": "自動偵測並嵌入的功能", + "description": "自動檢測連結並嵌入相關內容,
目前已支持 Youtube、Vimeo 多種服務。", + "href": "" + }, + "方便嵌入": { + "title": "輕鬆嵌入的模組化設計", + "description": "只需添加幾行代碼,即可快速將編輯器整合至網站,
配置靈活,操作簡單。", + "href": "" + } +} \ No newline at end of file diff --git a/static/sass/_home.scss b/static/sass/_home.scss index 17eb58b..9d827d0 100644 --- a/static/sass/_home.scss +++ b/static/sass/_home.scss @@ -115,6 +115,22 @@ right: calc(-100% - $_32); padding: 0 $_8; + &:has(img) { + padding: 0; + + @media (hover: hover) { + + &:hover { + top: 0; + box-shadow: 0 0 0 transparent; + } + } + + img { + background-color: #fff; + } + } + i { font-size: $_16; transition: 0.3s; @@ -401,7 +417,7 @@ } @media (hover: hover) { - + &:hover i:last-child { right: -$_8; } @@ -860,10 +876,44 @@ background-color: #000; color: #fff; - p, + // p, + // a { + // text-decoration: none; + // color: #fff; + // } + a { - text-decoration: none; + padding: 0.125rem 0; color: #fff; + text-decoration: none; + border-bottom: 0.5px solid #fff; + } + + p { + color: #ffffffcc; } + + p:last-child { + color: #ffffff; + } + } + + >a.lang { + z-index: 1000; + position: fixed; + right: 1.5rem; + bottom: 1.5rem; + display: flex; + align-items: center; + gap: 0.5rem; + padding: 0 1rem; + line-height: 2.5rem; + text-decoration: none; + color: #000; + background-color: #ffffffcc; + backdrop-filter: blur(1rem); + -webkit-backdrop-filter: blur(1rem); + border-radius: 0.75rem; + box-shadow: 0 4px 8px #0000001a; } } \ No newline at end of file