123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>海龟汤 - 主持人视图</title>
- <!-- Tailwind CSS -->
- <script src="https://cdn.tailwindcss.com"></script>
- <!-- FontAwesome -->
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
- <!-- 自定义样式 -->
- <link rel="stylesheet" href="../css/custom.css">
- <style>
- .app-content {
- padding-bottom: 60px; /* 为底部导航栏留出空间 */
- }
-
- .host-theme {
- --host-primary: #FFA000;
- --host-secondary: #FFF8E1;
- --host-accent: #FF6F00;
- }
-
- .host-header {
- background-color: var(--host-primary);
- color: white;
- }
-
- .chat-container {
- max-height: 250px;
- overflow-y: auto;
- }
-
- .turtle-soup-clue {
- padding: 10px;
- border-radius: 6px;
- background-color: white;
- margin-bottom: 8px;
- border-left: 3px solid #4d79ff;
- }
-
- .turtle-soup-clue.unrevealed {
- background-color: #f3f4f6;
- border-left: 3px solid #9ca3af;
- }
-
- .host-button {
- background-color: var(--host-primary);
- color: white;
- }
-
- .host-button:hover {
- background-color: var(--host-accent);
- }
-
- .host-badge {
- background-color: var(--host-primary);
- color: white;
- padding: 2px 8px;
- border-radius: 9999px;
- font-size: 0.75rem;
- }
-
- .solution-card {
- background-color: var(--host-secondary);
- border: 1px solid var(--host-primary);
- border-radius: 8px;
- padding: 12px;
- margin-bottom: 16px;
- }
-
- .solution-header {
- color: var(--host-primary);
- font-weight: 600;
- font-size: 0.875rem;
- margin-bottom: 4px;
- display: flex;
- align-items: center;
- }
-
- .solution-header i {
- margin-right: 6px;
- }
- </style>
- </head>
- <body class="host-theme">
- <div class="iphone-frame">
- <!-- 引入状态栏 -->
- <iframe src="../components/status-bar.html" frameborder="0" scrolling="no" style="width:100%; height:44px; overflow:hidden;"></iframe>
-
- <!-- 导航栏 -->
- <div class="app-navbar host-header">
- <div class="title">海龟汤 - 主持人</div>
- <div class="right-button text-sm">
- <span class="host-badge">主持人</span>
- </div>
- </div>
-
- <!-- 内容区域 -->
- <div class="app-content">
- <!-- 游戏状态 -->
- <div class="bg-amber-100 p-3 text-center">
- <div class="flex items-center justify-center">
- <i class="fas fa-hourglass-half text-amber-500 mr-2"></i>
- <span class="text-amber-700 font-medium">游戏进行中</span>
- </div>
- <div class="text-xs text-amber-700 mt-1">已进行: 12分钟 · 主持人模式</div>
- </div>
-
- <!-- 谜题信息 -->
- <div class="m-3">
- <div class="flex items-center justify-between mb-2">
- <div class="font-bold text-lg">神秘的手表</div>
- <div class="text-xs text-amber-500">难度: 中等</div>
- </div>
-
- <!-- 汤面(玩家可见) -->
- <div class="p-3 bg-white rounded-md mb-3 border-l-4 border-primary shadow-sm">
- <div class="text-xs text-primary font-medium mb-1 flex items-center">
- <i class="fas fa-eye mr-1"></i> 汤面(玩家可见)
- </div>
- <p class="text-sm">
- 一个男人收到了一块神秘的手表,戴上后就再也无法取下来。一周后,他自杀了。为什么?
- </p>
- </div>
-
- <!-- 汤底(只有主持人可见) -->
- <div class="solution-card">
- <div class="solution-header">
- <i class="fas fa-lock"></i> 汤底(仅主持人可见)
- </div>
- <p class="text-sm">
- 这个手表可以预知未来24小时内将发生的事情。男人看到了自己将在一周后死亡,尝试了各种方法改变命运但都失败了。最终,由于无法承受这种恐惧和绝望,他选择了自杀。这反而实现了手表的预言。
- </p>
- </div>
- </div>
-
- <!-- 关键线索列表 -->
- <div class="m-3">
- <div class="flex justify-between items-center mb-2">
- <h3 class="font-medium flex items-center">
- <i class="fas fa-key text-amber-500 mr-1"></i> 关键线索
- </h3>
- <div class="text-xs px-2 py-0.5 bg-amber-100 text-amber-700 rounded-full">2/5已揭示</div>
- </div>
-
- <div class="space-y-2">
- <!-- 已揭示线索 -->
- <div class="turtle-soup-clue">
- <div class="flex justify-between items-center">
- <span class="text-xs text-primary font-medium">线索1(已揭示)</span>
- <span class="text-xs text-gray-500">12:05揭示</span>
- </div>
- <p class="text-sm mt-1">这块手表有特殊功能,不是普通手表。</p>
- </div>
-
- <div class="turtle-soup-clue">
- <div class="flex justify-between items-center">
- <span class="text-xs text-primary font-medium">线索2(已揭示)</span>
- <span class="text-xs text-gray-500">12:08揭示</span>
- </div>
- <p class="text-sm mt-1">手表可以显示未来将发生的事情。</p>
- </div>
-
- <!-- 未揭示线索 -->
- <div class="turtle-soup-clue unrevealed">
- <div class="flex justify-between items-center">
- <span class="text-xs text-gray-500 font-medium">线索3(未揭示)</span>
- <button class="text-xs text-amber-600 font-medium">揭示</button>
- </div>
- <p class="text-sm mt-1 text-gray-400">男人尝试了多种方法阻止预言的实现,但都失败了。</p>
- </div>
-
- <div class="turtle-soup-clue unrevealed">
- <div class="flex justify-between items-center">
- <span class="text-xs text-gray-500 font-medium">线索4(未揭示)</span>
- <button class="text-xs text-amber-600 font-medium">揭示</button>
- </div>
- <p class="text-sm mt-1 text-gray-400">手表预测的是他的死亡,但没有预测到死亡的具体方式。</p>
- </div>
-
- <div class="turtle-soup-clue unrevealed">
- <div class="flex justify-between items-center">
- <span class="text-xs text-gray-500 font-medium">线索5(未揭示)</span>
- <button class="text-xs text-amber-600 font-medium">揭示</button>
- </div>
- <p class="text-sm mt-1 text-gray-400">手表的预言总是会实现,但方式可能有所不同。</p>
- </div>
- </div>
- </div>
-
- <!-- 问答互动区域 -->
- <div class="p-3 bg-white border-t border-gray-200">
- <h3 class="font-medium mb-3 flex items-center">
- <i class="fas fa-comments text-amber-500 mr-1"></i> 玩家问题
- </h3>
-
- <div class="chat-container flex flex-col">
- <!-- 玩家问题1 -->
- <div class="chat-bubble left">
- <div class="text-xs text-gray-500 mb-1">小红 · 2分钟前</div>
- 手表是有特殊功能的吗?
- </div>
-
- <!-- 主持人回答1 -->
- <div class="chat-bubble right bg-amber-50 border-amber-200">
- <div class="text-xs text-amber-500 mb-1">我 (主持人) · 2分钟前</div>
- 是的
- </div>
-
- <!-- 玩家问题2 -->
- <div class="chat-bubble left">
- <div class="text-xs text-gray-500 mb-1">小明 · 1分钟前</div>
- 这块手表能预测未来吗?
- </div>
-
- <!-- 主持人回答2 -->
- <div class="chat-bubble right bg-amber-50 border-amber-200">
- <div class="text-xs text-amber-500 mb-1">我 (主持人) · 1分钟前</div>
- 是的
- </div>
-
- <!-- 玩家问题3 -->
- <div class="chat-bubble left">
- <div class="text-xs text-gray-500 mb-1">小红 · 刚刚</div>
- 手表预测了他的死亡?
- </div>
- </div>
-
- <!-- 快速回答按钮 -->
- <div class="flex flex-wrap gap-2 mt-3">
- <button class="bg-amber-100 text-amber-700 text-sm py-1 px-3 rounded-full">是的</button>
- <button class="bg-gray-100 text-gray-700 text-sm py-1 px-3 rounded-full">不是</button>
- <button class="bg-gray-100 text-gray-700 text-sm py-1 px-3 rounded-full">相关</button>
- <button class="bg-gray-100 text-gray-700 text-sm py-1 px-3 rounded-full">不相关</button>
- </div>
-
- <!-- 回答输入框 -->
- <div class="mt-3 flex">
- <input type="text" class="app-input flex-1" placeholder="输入回答...">
- <button class="bg-amber-500 text-white ml-2 px-3 py-2 rounded-md">
- <i class="fas fa-paper-plane"></i>
- </button>
- </div>
- </div>
-
- <!-- 游戏控制按钮 -->
- <div class="p-3 sticky bottom-0 bg-white border-t border-gray-200">
- <div class="flex items-center justify-between mb-2">
- <button class="bg-amber-500 text-white rounded-md text-sm px-3 py-1.5 flex items-center">
- <i class="fas fa-lightbulb mr-1"></i> 揭示线索
- </button>
- <button class="bg-amber-500 text-white rounded-md text-sm px-3 py-1.5 flex items-center">
- <i class="fas fa-trophy mr-1"></i> 结束游戏
- </button>
- </div>
-
- <!-- 道具购买区 -->
- <div class="bg-blue-50 rounded-lg p-2 mb-2 border border-blue-200">
- <div class="flex justify-between items-center">
- <div class="flex items-center">
- <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
- <i class="fas fa-palette text-blue-500"></i>
- </div>
- <div>
- <div class="text-sm font-medium">游戏主题</div>
- <div class="text-xs text-gray-500">解锁多种主题内容</div>
- </div>
- </div>
- <button class="bg-blue-500 text-white text-xs py-1 px-2 rounded-md" id="openPropsBtn">
- 更换主题
- </button>
- </div>
- </div>
-
- <!-- 道具弹窗 -->
- <div id="propsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
- <div class="bg-white w-11/12 rounded-lg max-h-[80vh] overflow-y-auto">
- <div class="p-3 border-b border-gray-200 flex justify-between items-center sticky top-0 bg-white">
- <h3 class="font-bold">游戏主题</h3>
- <button id="closePropsBtn" class="text-gray-500">
- <i class="fas fa-times"></i>
- </button>
- </div>
-
- <div class="p-3">
- <div class="space-y-3">
- <!-- 主题包 -->
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-amber-50 border-amber-200">
- <div class="flex-shrink-0 w-10 h-10 bg-amber-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-bookmark text-amber-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">经典解谜</div>
- <div class="text-xs text-amber-600">免费</div>
- </div>
- <div class="text-xs text-gray-500">基础主题,包含多种经典谜题</div>
- </div>
- <div class="text-xs bg-amber-500 text-white py-1 px-2 rounded-md">已解锁</div>
- </div>
-
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-white relative">
- <div class="flex-shrink-0 w-10 h-10 bg-amber-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-ticket-alt text-amber-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">环球影城</div>
- <div class="text-xs text-amber-600">20元/小时</div>
- </div>
- <div class="text-xs text-gray-500">包含多个环球影城主题谜题</div>
- </div>
- <button class="text-xs bg-amber-500 text-white py-1 px-2 rounded-md">解锁</button>
- <div class="absolute -top-1 -right-1 bg-red-500 text-white text-xs px-1.5 py-0.5 rounded-full">新</div>
- </div>
-
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-white">
- <div class="flex-shrink-0 w-10 h-10 bg-amber-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-hat-wizard text-amber-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">迪士尼奇幻</div>
- <div class="text-xs text-amber-600">15元/小时</div>
- </div>
- <div class="text-xs text-gray-500">迪士尼主题相关谜题</div>
- </div>
- <button class="text-xs bg-amber-500 text-white py-1 px-2 rounded-md">解锁</button>
- </div>
-
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-white">
- <div class="flex-shrink-0 w-10 h-10 bg-amber-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-dragon text-amber-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">奇幻冒险</div>
- <div class="text-xs text-amber-600">12元/小时</div>
- </div>
- <div class="text-xs text-gray-500">奇幻世界主题谜题</div>
- </div>
- <button class="text-xs bg-amber-500 text-white py-1 px-2 rounded-md">解锁</button>
- </div>
-
- <div class="mt-3 py-2 text-center border-t border-gray-200">
- <div class="text-xs text-gray-500">主题随时可切换,计费按使用时长计算</div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 引入底部导航栏 -->
- <iframe src="../components/nav-bar.html" frameborder="0" scrolling="no" style="width:100%; height:50px; overflow:hidden; position:fixed; bottom:0;"></iframe>
- </div>
-
- <script>
- document.addEventListener("DOMContentLoaded", function() {
- // 道具弹窗控制
- const openPropsBtn = document.getElementById('openPropsBtn');
- const closePropsBtn = document.getElementById('closePropsBtn');
- const propsModal = document.getElementById('propsModal');
-
- openPropsBtn.addEventListener('click', function() {
- propsModal.classList.remove('hidden');
- });
-
- closePropsBtn.addEventListener('click', function() {
- propsModal.classList.add('hidden');
- });
-
- // 点击弹窗外部关闭
- propsModal.addEventListener('click', function(e) {
- if (e.target === propsModal) {
- propsModal.classList.add('hidden');
- }
- });
- });
- </script>
- </body>
- </html>
|