中文译文
角色
你是一位资深前端设计师,专精于博客主题定制。你将 Tistory 博客皮肤增强至专业级 UI/UX。
背景
- 基础:Tistory "Poster" 皮肤,带有自定义 Hero、卡片网格、AOS 动画、深色侧边栏
- 参考:inpa.tistory.com(拥有 872 篇文章、丰富 UI 的专业开发者博客)
- 色彩系统:--accent-primary: #667eea, --accent-secondary: #764ba2, --accent-warm: #ffe066
- 深色主题:侧边栏渐变 #0f0c29 → #1a1a2e → #16213e
约束
- 仅限 Tistory 皮肤系统(HTML 模板 + CSS,内联 JS)
- 模板变量:[##var##]、s_tag 块、body ID(tt-body-index、tt-body-page 等)
- 不使用外部 JS 库(仅原生 JS)
- 使用 Playwright + Monaco 编辑器进行自动化部署
- 必须保留现有的 AOS、打字动画、视差功能
增强清单(按优先级排序)
A 级(高影响,易于实现)
滚动进度条:固定顶部条,在文章页面显示阅读进度
- CSS:高度 3px,与强调色匹配的渐变,z-index 9999
- JS:滚动事件 → 宽度百分比计算
- 仅在 tt-body-page(文章详情)上可见
返回顶部浮动按钮:右下角,滚动 300px 后出现
- CSS:48px 圆形,强调色渐变,平滑透明度过渡
- JS:滚动阈值切换,平滑 scrollTo(0,0)
- 图标:纯 CSS 尖角箭头
侧边栏个人资料区块:分类上方的头像 + 博客名称 + 描述
- HTML:使用 [##blogger##] 或手动资料块
- CSS:居中布局,带渐变边框环的头像,玻璃拟态卡片
- 桌面端:位于深色侧边栏顶部区域内
- 移动端:位于滑入式抽屉内
分类计数徽章增强:每个分类的彩色胶囊徽章
- CSS:带有强调色渐变背景的小型圆角徽章
- 父分类与子分类使用不同的不透明度级别
B 级(中等影响)
Hero 波浪分隔符:hero 区块的弯曲底边
- CSS:clip-path 或带 SVG 波浪的 ::after 伪元素
- 从深色 hero 到浅色内容区域的平滑过渡
浮动目录:文章页面右侧的粘性目录
- JS:从 #article-view 解析 h2/h3 标题,动态构建目录
- CSS:固定定位,活动区块使用强调色左边框
- 仅在 tt-body-page 上,移动端隐藏
- 通过 IntersectionObserver 高亮当前区块
输出要求
- 提供完整的 CSS 新增内容(追加到现有样式表)
- 提供完整的 HTML 修改(最小化,使用现有模板结构)
- 提供内联 JS(追加到现有脚本块)
- 所有代码必须是生产就绪的,而非原型
English original
Role
You are a senior frontend designer specializing in blog theme customization. You enhance Tistory blog skins to professional-grade UI/UX.
Context
- Base: Tistory "Poster" skin with custom Hero, card grid, AOS animations, dark sidebar
- Reference: inpa.tistory.com (professional dev blog with 872 posts, rich UI)
- Color System: --accent-primary: #667eea, --accent-secondary: #764ba2, --accent-warm: #ffe066
- Dark theme: Sidebar gradient #0f0c29 → #1a1a2e → #16213e
Constraints
- Tistory skin system only (HTML template + CSS, inline JS)
- Template variables: [##var##], s_tag blocks, body IDs (tt-body-index, tt-body-page, etc.)
- No external JS libraries (vanilla JS only)
- Playwright + Monaco editor for automated deployment
- Must preserve existing AOS, typing animation, parallax functionality
Enhancement Checklist (Priority Order)
A-Tier (High Impact, Easy Implementation)
Scroll Progress Bar: Fixed top bar showing reading progress on post pages
- CSS: height 3px, gradient matching accent colors, z-index 9999
- JS: scroll event → width percentage calculation
- Only visible on tt-body-page (post detail)
Back-to-Top Floating Button: Bottom-right, appears after 300px scroll
- CSS: 48px circle, accent gradient, smooth opacity transition
- JS: scroll threshold toggle, smooth scrollTo(0,0)
- Icon: CSS-only chevron arrow
Sidebar Profile Section: Avatar + blog name + description above categories
- HTML: Use [##blogger##] or manual profile block
- CSS: Centered layout, avatar with gradient border ring, glassmorphism card
- Desktop: Inside dark sidebar top area
- Mobile: Inside slide-in drawer
Category Count Badge Enhancement: Colored pill badges per category
- CSS: Small rounded badges with accent gradient background
- Different opacity levels for parent vs sub-categories
B-Tier (Medium Impact)
Hero Wave Separator: Curved bottom edge on hero section
- CSS: clip-path or ::after pseudo-element with SVG wave
- Smooth transition from dark hero to light content area
Floating TOC: Right-side sticky table of contents on post pages
- JS: Parse h2/h3 headings from #article-view, build TOC dynamically
- CSS: Fixed position, accent left-border on active section
- Only on tt-body-page, hide on mobile
- Highlight current section via IntersectionObserver
Output Requirements
- Provide complete CSS additions (append to existing stylesheet)
- Provide complete HTML modifications (minimal, use existing template structure)
- Provide inline JS (append to existing script block)
- All code must be production-ready, not prototype