From cc5582b71914036e24f8e75c964e320fe64e84be Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 14 May 2026 19:47:35 +0800
Subject: [PATCH] 文艺短视频:将所有模版改为兼容传入视频的格式

---
 aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html           |   10 -
 aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html            |    3 
 aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html |    5 
 aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html                |   12 +
 aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html                |   20 ++-
 aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html            |   11 +
 aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html   |   16 ++
 /dev/null                                                                          |  163 ---------------------------
 aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html                |   18 ++
 aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html           |   14 +
 aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html        |    5 
 aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html                |   18 +-
 aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html             |   14 +
 13 files changed, 97 insertions(+), 212 deletions(-)

diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html
index 768bf69..962c785 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_blur_card.html
@@ -30,12 +30,10 @@
             left: 0;
             width: 100%;
             height: 100%;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
             filter: blur(24px) brightness(0.9);
             transform: scale(1.1); 
             z-index: 0;
+            overflow: hidden;
         }
 
         /* 顶部标题区 */
@@ -79,7 +77,7 @@
 
         .image-box { position: relative; width: 100%; height: 100%; }
 
-        .image-box img {
+        .image-box .template-media {
             width: 100%;
             height: 100%;
             object-fit: cover; /* 改为 cover 填满宽度 */
@@ -182,14 +180,14 @@
     </style>
 </head>
 <body>
-    <div class="bg"></div>
+    <div class="bg">{{media}}</div>
     <div class="top">
         <div class="title">{{title}}</div>
     </div>
 
     <div class="image-center">
         <div class="image-box">
-            <img src="{{image}}" alt="内容图片">
+            {{media}}
             <div class="caption">{{text}}</div>
         </div>
     </div>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
index 5ba27b0..7a6a62b 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
@@ -21,9 +21,15 @@
             color: #fff;
             position: relative;
             background: #1a1a1a;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center bottom 400px;
+        }
+
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
+            transform: translateY(-400px);
+            height: calc(100% + 400px);
         }
 
         /* 顶部区域 */
@@ -34,6 +40,7 @@
             transform: translateX(-50%);
             text-align: center;
             width: 90%;
+            z-index: 1;
         }
 
         .image {
@@ -77,6 +84,7 @@
             transform: translateX(-50%);
             text-align: center;
             width: 90%;
+            z-index: 1;
         }
 
         .main-text {
@@ -102,6 +110,8 @@
     </style>
 </head>
 <body>
+    <div class="media-bg">{{media}}</div>
+
     <!-- 顶部标题区 -->
     <div class="top-section">
         <div class="title">{{title}}</div>
@@ -116,4 +126,4 @@
         <div class="author">{{author=HITsz-TMG}}</div>
     </div>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
index 98fd049..576689e 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
@@ -28,15 +28,21 @@
             position: relative;
             width: 100%;
             height: 100%;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
             z-index: 0;
+            overflow: hidden;
+        }
+
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
         }
 
         .title {
         	position: absolute;
         	top: 300px;
+            z-index: 1;
             width: 100%;
             text-align: center;
             font-size: 92px;
@@ -56,6 +62,7 @@
         .text {
         	position: absolute;
         	bottom: 300px;
+            z-index: 1;
             width: 100%; /* 稍微调整以适应全宽图片 */
             padding: 0 60px;
             text-align: center;
@@ -148,8 +155,9 @@
 </head>
 <body>
     <div class="bg">
-    <div class="title">{{title}}</div>
-    <div class="text">{{text}}</div>
+        <div class="media-bg">{{media}}</div>
+        <div class="title">{{title}}</div>
+        <div class="text">{{text}}</div>
     </div>
     <div class="footer">
         <div class="author">
@@ -170,4 +178,4 @@
         </div>
     </div>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html
index 3341972..66b86d8 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_healing.html
@@ -32,11 +32,15 @@
             color: #2a2a2a;
             position: relative;
             background: #e8e5e0;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
             display: flex;
             flex-direction: column;
+        }
+
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
         }
 
         /* 背景遮罩层 */
@@ -128,6 +132,8 @@
 </head>
 
 <body>
+    <div class="media-bg">{{media}}</div>
+
     <div class="title">
         <div class="title-content">{{title}}</div>
     </div>
@@ -147,4 +153,4 @@
     </script>
 </body>
 
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html
index c9ab0e2..7acea30 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_long_text.html
@@ -21,14 +21,18 @@
             color: #000;
             position: relative;
             background: #e8e8e8;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
             /* 背景模糊效果 */
             display: flex;
             flex-direction: column;
             align-items: center;
             padding: 0 60px;
+        }
+
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
         }
 
         /* 背景遮罩层 */
@@ -99,6 +103,8 @@
     </style>
 </head>
 <body>
+    <div class="media-bg">{{media}}</div>
+
     <!-- 标题 -->
     <div class="title">{{title}}</div>
     
@@ -108,4 +114,4 @@
     <!-- 作者 -->
     <div class="author">{{author=HITsz-TMG}}</div>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html
index 03544cb..f9d9932 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_satirical_cartoon.html
@@ -28,16 +28,23 @@
             position: relative;
             width: 100%;
             height: 100%;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
             z-index: 0;
             display: flex;
             justify-content: center;
             align-items: center;
+            overflow: hidden;
+        }
+
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
         }
 
         .title {
+            position: relative;
+            z-index: 1;
             width: 900px;
             text-align: center;
             font-size: 92px;
@@ -131,6 +138,7 @@
 </head>
 <body>
     <div class="bg">
+        <div class="media-bg">{{media}}</div>
         <div class="title">{{title}}</div>
     </div>
     <div class="footer">
@@ -288,4 +296,4 @@
         }
     </script>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html
index 6620457..1c85eac 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_black.html
@@ -50,6 +50,7 @@
             height: 40%;
             z-index: 2;
             padding: 0 0; /* 无左右内边距 */
+            overflow: hidden;
         }
 
         /* Footer */
@@ -128,7 +129,7 @@
 </head>
 <body>
     <div class="title">{{title}}</div>
-    <image src="{{image}}" class="image-center" />
+    <div class="image-center">{{media}}</div>
     <div class="footer">
         <div class="author">
             <div class="author-name">
@@ -148,4 +149,4 @@
         </div>
     </div>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html
index de288fb..8f0bdfa 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_simple_line_drawing.html
@@ -56,6 +56,7 @@
             height: 40%;
             z-index: 2;
             padding: 0 0; /* 无左右内边距 */
+            overflow: hidden;
         }
 
         /* Footer */
@@ -136,7 +137,7 @@
     <div class="title-wrapper">
         <span class="title">{{text}}</span>
     </div>
-    <image src="{{image}}" class="image-center" />
+    <div class="image-center">{{media}}</div>
     <div class="footer">
         <div class="author">
             <div class="author-name">
@@ -156,4 +157,4 @@
         </div>
     </div>
 </body>
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html b/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html
index 001309c..772f26b 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/static_default.html
@@ -235,7 +235,7 @@
 <body>
     <!-- Background image layer (customizable via background parameter) -->
     <div class="background-image">
-        <img src="{{background=https://img.alicdn.com/imgextra/i2/O1CN01TngrfY1NTZK1xwuWd_!!6000000001571-0-tps-690-1494.jpg}}" alt="Background">
+        {{media}}
     </div>
     
     <!-- Gradient overlay -->
@@ -278,4 +278,3 @@
     </div>
 </body>
 </html>
-
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html b/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html
index 865ba6a..fdb8b4a 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/static_excerpt.html
@@ -37,6 +37,13 @@
             padding: 80px 100px;
         }
 
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
+        }
+
         /* 背景遮罩层 */
         body::before {
             content: '';
@@ -111,6 +118,8 @@
 </head>
 
 <body>
+    <div class="media-bg">{{media}}</div>
+
     <!-- 顶部标题 -->
     <div class="header">
         <div class="title">{{title}}</div>
@@ -128,4 +137,4 @@
     <div class="signature">{{signature=HITsz-TMG}}</div>
 </body>
 
-</html>
\ No newline at end of file
+</html>
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html b/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html
deleted file mode 100644
index 4c1fda9..0000000
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/video_default.html
+++ /dev/null
@@ -1,328 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <meta name="template:media-width" content="512">
-    <meta name="template:media-height" content="288">
-    <style>
-        html {
-            margin: 0;
-            padding: 0;
-            height: 100%;
-        }
-        
-        body {
-            margin: 0;
-            padding: 0;
-            width: 100%;
-            height: 100vh;
-            font-family: 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', sans-serif;
-            overflow: hidden;
-            /* background-color: #000; */
-            display: flex;
-            justify-content: center;
-            align-items: center;
-        }
-        
-        /* 主容器 - 居中并包含所有内容 */
-        .main-container {
-            position: relative;
-            width: 1080px;
-            height: 1920px;
-        }
-        
-        /* Background image layer (customizable using <img> tag) */
-        .background-image {
-            position: absolute;
-            top: 0;
-            left: 0;
-            width: 100%;
-            height: 100%;
-            z-index: 0;
-        }
-        
-        /* Video overlay - 相对于main-container居中 */
-        .video-overlay {
-            position: absolute;
-            top: 50%;
-            left: 50%;
-            transform: translate(-50%, -50%);
-            width: 1080px;
-            height: 607px;
-            /* background: #f00; */
-            z-index: 1;
-        }
-        
-        /* Title section - positioned above video */
-        .video-title-wrapper {
-            position: absolute;
-            top: calc(50% - 607px / 2 - 130px);
-            left: 50%;
-            transform: translateX(-50%);
-            z-index: 2;
-        }
-        
-        .video-title {
-            width: 900px;
-            text-align: center;
-            /* 初始字体大小,JavaScript 会根据文本长度自动调整 */
-            font-size: 72px;
-            font-weight: 700;
-            color: #ffffff;
-            line-height: 1.3;
-            letter-spacing: 3px;
-            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
-            margin-bottom: 20px;
-            /* 确保文本不会溢出 */
-            word-wrap: break-word;
-            overflow-wrap: break-word;
-            white-space: nowrap;
-        }
-        
-        /* 字幕区域 - 对齐视频底部 */
-        .content {
-            position: absolute;
-            bottom: calc(50% - 607px / 2 + 0px);
-            left: 50%;
-            transform: translateX(-50%);
-            width: 900px;
-            z-index: 4;
-        }
-        
-        .text {
-            font-size: 40px;
-            color: #ffffff;
-            text-align: center;
-            line-height: 1.6;
-            font-weight: 500;
-            text-shadow: 
-                2px 2px 4px rgba(0, 0, 0, 0.9),
-                0 0 8px rgba(0, 0, 0, 0.8),
-                0 0 16px rgba(0, 0, 0, 0.6);
-            padding: 10px 0px;
-            /* background-color: aqua; */
-        }
-        
-        /* Footer - positioned below video */
-        .footer {
-            position: absolute;
-            top: calc(50% + 607px / 2 + 50px);
-            left: 50%;
-            transform: translateX(-50%);
-            width: 900px;
-            display: flex;
-            align-items: center;
-            justify-content: space-between;
-            padding-top: 40px;
-            border-top: 2px solid rgba(255, 255, 255, 0.3);
-            z-index: 2;
-        }
-        
-        .author-section {
-            display: flex;
-            flex-direction: column;
-            gap: 8px;
-        }
-        
-        .author {
-            font-size: 32px;
-            font-weight: 600;
-            color: #ffffff;
-            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
-        }
-        
-        .author-desc {
-            font-size: 24px;
-            color: rgba(255, 255, 255, 0.9);
-            font-weight: 400;
-        }
-        
-        .logo-section {
-            display: flex;
-            flex-direction: column;
-            align-items: flex-end;
-            gap: 10px;
-        }
-        
-        .logo {
-            font-size: 28px;
-            font-weight: 600;
-            color: #ffffff;
-            letter-spacing: 2px;
-            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
-        }
-    </style>
-</head>
-<body>
-    <!-- 主容器 - 所有元素都在这里面,相对于video-overlay定位 -->
-    <div class="main-container">
-        <!-- Background image layer (customizable via background parameter) -->
-        <div class="background-image">
-            
-        </div>
-        
-        <!-- Video overlay - 居中参考点 -->
-        <div class="video-overlay"></div>
-        
-        <!-- Video title - positioned above video -->
-        <div class="video-title-wrapper">
-            <div class="video-title">{{title}}</div>
-        </div>
-        
-        <!-- 字幕区域 - 独立定位在视频底部 -->
-        <div class="content">
-            <div class="text">{{text}}</div>
-        </div>
-        
-        <!-- Footer - positioned below video -->
-        <div class="footer">
-            <div class="author-section">
-                <div class="author">{{author=HITsz-TMG}}</div>
-                <div class="author-desc">{{describe=开源AIGC智能体}}</div>
-            </div>
-            <div class="logo-section">
-                <div class="logo">{{brand=AIGC-Claw}}</div>
-            </div>
-        </div>
-    </div>
-    
-    <script>
-        /**
-         * 根据文本宽度自动调整字体大小
-         * @param {HTMLElement} element - 要调整的元素
-         * @param {number} maxWidth - 最大宽度(px)
-         * @param {number} minFontSize - 最小字体大小(px)
-         * @param {number} maxFontSize - 最大字体大小(px)
-         */
-        function autoFitFontSize(element, maxWidth, minFontSize, maxFontSize) {
-            try {
-                if (!element || !element.textContent || !element.textContent.trim()) {
-                    return;
-                }
-                
-                if (!document.body) {
-                    return;
-                }
-                
-                // 创建一个临时的测量元素
-                const measure = document.createElement('span');
-                measure.style.visibility = 'hidden';
-                measure.style.position = 'absolute';
-                measure.style.top = '-9999px';
-                measure.style.left = '-9999px';
-                measure.style.whiteSpace = 'nowrap';
-                
-                // 复制元素的样式
-                const computedStyle = window.getComputedStyle(element);
-                measure.style.fontFamily = computedStyle.fontFamily;
-                measure.style.fontSize = computedStyle.fontSize;
-                measure.style.fontWeight = computedStyle.fontWeight;
-                measure.style.letterSpacing = computedStyle.letterSpacing;
-                measure.textContent = element.textContent;
-                
-                document.body.appendChild(measure);
-                
-                // 二分查找合适的字体大小
-                let low = minFontSize;
-                let high = maxFontSize;
-                let bestSize = maxFontSize;
-                
-                // 先检查最大字体是否合适
-                measure.style.fontSize = maxFontSize + 'px';
-                if (measure.offsetWidth <= maxWidth) {
-                    bestSize = maxFontSize;
-                } else {
-                    // 使用二分查找
-                    while (high - low > 0.5) {
-                        const mid = (low + high) / 2;
-                        measure.style.fontSize = mid + 'px';
-                        
-                        if (measure.offsetWidth <= maxWidth) {
-                            bestSize = mid;
-                            low = mid;
-                        } else {
-                            high = mid;
-                        }
-                    }
-                }
-                
-                // 应用找到的字体大小
-                element.style.fontSize = bestSize + 'px';
-                
-                // 清理临时元素
-                if (measure.parentNode) {
-                    document.body.removeChild(measure);
-                }
-            } catch (error) {
-                console.error('自动调整字体大小出错:', error);
-            }
-        }
-        
-        // 页面加载完成后自动调整字体大小
-        function initAutoFit() {
-            try {
-                const titleElement = document.querySelector('.video-title');
-                if (titleElement) {
-                    // 获取容器的实际宽度
-                    const wrapper = document.querySelector('.video-title-wrapper');
-                    const maxWidth = wrapper ? wrapper.offsetWidth : 900;
-                    
-                    // 自动调整字体大小:最小12px,最大72px
-                    autoFitFontSize(titleElement, maxWidth, 12, 72);
-                }
-            } catch (error) {
-                console.error('初始化自动调整字体大小出错:', error);
-            }
-        }
-        
-        // 等待 DOM 加载完成
-        if (document.readyState === 'loading') {
-            document.addEventListener('DOMContentLoaded', initAutoFit);
-        } else {
-            // DOM 已经加载完成
-            initAutoFit();
-        }
-        
-        // 如果内容是通过模板引擎动态插入的,可以监听内容变化
-        // 使用 MutationObserver 监听文本变化
-        if (typeof MutationObserver !== 'undefined') {
-            try {
-                const observer = new MutationObserver(function(mutations) {
-                    let shouldUpdate = false;
-                    mutations.forEach(function(mutation) {
-                        if (mutation.type === 'childList' || mutation.type === 'characterData') {
-                            shouldUpdate = true;
-                        }
-                    });
-                    
-                    if (shouldUpdate) {
-                        // 延迟执行,避免频繁调用
-                        setTimeout(initAutoFit, 100);
-                    }
-                });
-                
-                // 等待 body 元素存在后再观察
-                if (document.body) {
-                    observer.observe(document.body, {
-                        childList: true,
-                        subtree: true,
-                        characterData: true
-                    });
-                } else {
-                    document.addEventListener('DOMContentLoaded', function() {
-                        if (document.body) {
-                            observer.observe(document.body, {
-                                childList: true,
-                                subtree: true,
-                                characterData: true
-                            });
-                        }
-                    });
-                }
-            } catch (error) {
-                console.error('设置 MutationObserver 出错:', error);
-            }
-        }
-    </script>
-</body>
-</html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html b/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html
deleted file mode 100644
index 3ccb016..0000000
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/video_healing.html
+++ /dev/null
@@ -1,163 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN">
-
-<head>
-    <meta charset="UTF-8">
-    <meta name="template:media-width" content="1024">
-    <meta name="template:media-height" content="1024">
-    <meta name="viewport" content="width=1080, height=1920">
-    <title>疗愈 动态 - 1080x1920</title>
-    <!-- Google Fonts - 中文字体 -->
-    <link rel="preconnect" href="https://fonts.googleapis.com">
-    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-    <link
-        href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600&family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap"
-        rel="stylesheet">
-    <style>
-        * {
-            margin: 0;
-            padding: 0;
-            box-sizing: border-box;
-        }
-
-        html,
-        body {
-            width: 1080px;
-            height: 1920px;
-            overflow: hidden;
-        }
-
-        body {
-            font-family: 'Noto Serif SC', serif;
-            color: #2a2a2a;
-            position: relative;
-            background: transparent;
-            display: flex;
-            flex-direction: column;
-        }
-
-        /* 背景遮罩层 */
-        /* body::before {
-            content: '';
-            position: absolute;
-            inset: 0;
-            background: rgba(232, 229, 224, 0.85);
-            backdrop-filter: blur(5px);
-            -webkit-backdrop-filter: blur(5x);
-            z-index: 0;
-        } */
-
-        /* Video overlay - 相对于main-container居中 */
-        .video-overlay {
-            position: absolute;
-            top: 50%;
-            left: 50%;
-            transform: translate(-50%, -50%);
-            width: 100%;
-            height: 100%;
-            /* background: #f00; */
-            z-index: -1;
-        }
-
-        /* 顶部标题 */
-        .title {
-            position: absolute;
-            width: 500px;
-            top: 40%;
-            transform: translateY(-50%);
-            right: 60px;
-            z-index: 1;
-        }
-
-        .title-content {
-            font-size: 80px;
-            font-weight: 600;
-            font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', cursive;
-            color: #2a2a2a;
-            letter-spacing: 8px;
-            text-align: right;
-            padding-bottom: 15px;
-            border-bottom: 2px solid #2a2a2a;
-            text-shadow: -1px -1px 0 #ddd,
-                1px -1px 0 #ddd,
-                -1px 1px 0 #ddd,
-                1px 1px 0 #ddd;
-        }
-
-        /* 作者 */
-        .author {
-            z-index: 1;
-            text-align: right;
-            font-size: 32px;
-            font-family: 'Noto Serif SC', serif;
-            color: #2a2a2a;
-            font-weight: 400;
-            text-shadow: -1px -1px 0 #ddd,
-                1px -1px 0 #ddd,
-                -1px 1px 0 #ddd,
-                1px 1px 0 #ddd;
-        }
-
-        /* 正文区域 */
-        .text {
-            width: 100%;
-            position: absolute;
-            font-size: 46px;
-            font-weight: 400;
-            line-height: 2.0;
-            font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
-            color: #ffffff;
-            text-align: justify;
-            text-indent: 2em;
-            letter-spacing: 1px;
-            white-space: pre-line;
-            top: 70%;
-            text-align: center;
-            text-shadow: -1px -1px 0 #222,
-                1px -1px 0 #222,
-                -1px 1px 0 #222,
-                1px 1px 0 #222;
-            padding: 0 100px;
-        }
-
-
-        .signature {
-            position: absolute;
-            font-size: 24px;
-            color: #333;
-            bottom: 20px;
-            right: 20px;
-            text-align: right;
-            text-shadow: -1px -1px 0 #ddd,
-                1px -1px 0 #ddd,
-                -1px 1px 0 #ddd,
-                1px 1px 0 #ddd;
-        }
-    </style>
-</head>
-
-<body>
-    <div class="video-overlay">
-
-    </div>
-
-    <div class="title">
-        <div class="title-content">{{title}}</div>
-    </div>
-
-    <!-- 正文内容 -->
-    <div class="text">{{text}}</div>
-
-    <!-- 署名 -->
-    <div class="signature">{{signature=HITsz-TMG}}</div>
-    <script>
-        const index = Number("{{index}}");
-
-        document.addEventListener('DOMContentLoaded', () => {
-            const titleElement = document.querySelector('.title');
-            titleElement.style.display = index > 1 ? 'none' : 'block';
-        });
-    </script>
-</body>
-
-</html>
\ No newline at end of file
diff --git a/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html b/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html
index 94d2bb2..dc3c93c 100644
--- a/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html
+++ b/aigc-director/aigc-claw/backend/templates/1920x1080/image_book.html
@@ -26,10 +26,14 @@
             font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
             background-color: #1a1a1a;
             color: #ffffff;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
             position: relative;
+        }
+
+        .media-bg {
+            position: absolute;
+            inset: 0;
+            z-index: 0;
+            overflow: hidden;
         }
 
         .container {
@@ -164,6 +168,8 @@
     </style>
 </head>
 <body>
+    <div class="media-bg">{{media}}</div>
+
     <div class="container">
         <!-- Stars background -->
         <div class="stars" id="stars"></div>
diff --git a/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html b/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html
index 5e53889..52b6b86 100644
--- a/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html
+++ b/aigc-director/aigc-claw/backend/templates/1920x1080/image_full.html
@@ -33,23 +33,19 @@
             position: relative;
             background: transparent;
             /* 移除黑色背景 */
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
         }
 
         /* 背景使用图片并做模糊处理,完全覆盖整个页面 */
         .bg {
-            position: relative;
-            width: 100%;
-            height: 100%;
-            background-image: url("{{image}}");
-            background-size: cover;
-            background-position: center;
+            position: absolute;
+            inset: 0;
             z-index: 0;
+            overflow: hidden;
         }
 
         .main {
+            position: relative;
+            z-index: 1;
             width: 100%;
             height: 1080px;
         }
@@ -169,7 +165,7 @@
 </head>
 
 <body>
-    <!-- <div class="bg"></div> -->
+    <div class="bg">{{media}}</div>
     <div class="main">
         <div class="title">{{title}}</div>
         <div class="text">{{text}}</div>
@@ -194,4 +190,4 @@
     </div>
 </body>
 
-</html>
\ No newline at end of file
+</html>

--
Gitblit v1.8.0