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; /* 为底部导航栏留出空间 */
- }
-
- .player-theme {
- --player-primary: #0EA5E9;
- --player-secondary: #EFF6FF;
- --player-accent: #0284C7;
- }
-
- .player-header {
- background-color: var(--player-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 var(--player-primary);
- }
-
- .player-badge {
- background-color: var(--player-primary);
- color: white;
- padding: 2px 8px;
- border-radius: 9999px;
- font-size: 0.75rem;
- }
-
- .progress-bar {
- height: 6px;
- width: 100%;
- background-color: #e2e8f0;
- border-radius: 999px;
- overflow: hidden;
- }
-
- .progress {
- height: 100%;
- background-color: var(--player-primary);
- border-radius: 999px;
- transition: width 0.5s ease;
- }
-
- .question-btn {
- background-color: #f1f5f9;
- border-radius: 999px;
- padding: 4px 12px;
- font-size: 0.875rem;
- color: #334155;
- border: none;
- cursor: pointer;
- white-space: nowrap;
- transition: all 0.2s ease;
- }
-
- .question-btn:hover {
- background-color: #e2e8f0;
- }
-
- .puzzle-card {
- background-color: var(--player-secondary);
- border-radius: 8px;
- padding: 16px;
- margin-bottom: 16px;
- border: 1px solid rgba(14, 165, 233, 0.2);
- }
-
- .puzzle-title {
- font-weight: 600;
- color: var(--player-primary);
- margin-bottom: 8px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- </style>
- </head>
- <body class="player-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 player-header">
- <div class="title">海龟汤 - 玩家</div>
- <div class="right-button text-sm">
- <span class="player-badge">玩家</span>
- </div>
- </div>
-
- <!-- 内容区域 -->
- <div class="app-content">
- <!-- 游戏状态 -->
- <div class="bg-sky-100 p-3 text-center">
- <div class="flex items-center justify-center">
- <i class="fas fa-hourglass-half text-sky-500 mr-2"></i>
- <span class="text-sky-700 font-medium">游戏进行中</span>
- </div>
- <div class="text-xs text-sky-700 mt-1">已进行: 12分钟 · 玩家模式</div>
- </div>
-
- <!-- 谜题信息 -->
- <div class="m-3">
- <div class="puzzle-card">
- <div class="puzzle-title">
- <div class="flex items-center">
- <i class="fas fa-puzzle-piece mr-2"></i>
- 神秘的手表
- </div>
- <div class="text-xs px-2 py-0.5 bg-sky-100 text-sky-600 rounded-full">难度: 中等</div>
- </div>
-
- <!-- 汤面(玩家可见) -->
- <div class="p-3 bg-white rounded-md mb-3 shadow-sm">
- <p class="text-sm">
- 一个男人收到了一块神秘的手表,戴上后就再也无法取下来。一周后,他自杀了。为什么?
- </p>
- </div>
-
- <!-- 游戏进度 -->
- <div class="mt-3">
- <div class="flex justify-between text-xs text-gray-500 mb-1">
- <span>解谜进度</span>
- <span>40%</span>
- </div>
- <div class="progress-bar">
- <div class="progress" style="width: 40%"></div>
- </div>
- </div>
- </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-sky-500 mr-1"></i> 已揭示线索
- </h3>
- <div class="text-xs px-2 py-0.5 bg-sky-100 text-sky-600 rounded-full">2/5已揭示</div>
- </div>
-
- <div class="space-y-2">
- <!-- 线索1 -->
- <div class="turtle-soup-clue">
- <div class="flex justify-between items-center">
- <span class="text-xs text-sky-600 font-medium">线索1</span>
- <span class="text-xs text-gray-500">12:05揭示</span>
- </div>
- <p class="text-sm mt-1">这块手表有特殊功能,不是普通手表。</p>
- </div>
-
- <!-- 线索2 -->
- <div class="turtle-soup-clue">
- <div class="flex justify-between items-center">
- <span class="text-xs text-sky-600 font-medium">线索2</span>
- <span class="text-xs text-gray-500">12:08揭示</span>
- </div>
- <p class="text-sm mt-1">手表可以显示未来将发生的事情。</p>
- </div>
- </div>
- </div>
-
- <!-- 问答互动区域 -->
- <div class="p-3 bg-white border-t border-gray-200">
- <h3 class="font-medium mb-2 flex items-center">
- <i class="fas fa-comments text-sky-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">小红</div>
- 手表是有特殊功能的吗?
- </div>
-
- <!-- 主持人回答1 -->
- <div class="chat-bubble left bg-amber-50">
- <div class="text-xs text-amber-500 mb-1">主持人</div>
- 是的
- </div>
-
- <!-- 玩家问题2(不是我) -->
- <div class="chat-bubble left">
- <div class="text-xs text-gray-500 mb-1">小明</div>
- 这块手表能预测未来吗?
- </div>
-
- <!-- 主持人回答2 -->
- <div class="chat-bubble left bg-amber-50">
- <div class="text-xs text-amber-500 mb-1">主持人</div>
- 是的
- </div>
-
- <!-- 玩家问题3(不是我) -->
- <div class="chat-bubble left">
- <div class="text-xs text-gray-500 mb-1">小红</div>
- 手表预测了他的死亡?
- </div>
-
- <!-- 我的问题 -->
- <div class="chat-bubble right bg-sky-50 border-sky-200">
- <div class="text-xs text-sky-500 mb-1">我</div>
- 他是因为看到了什么预言而自杀的吗?
- </div>
- </div>
-
- <!-- 快速提问按钮 -->
- <div class="flex flex-wrap gap-2 mt-3">
- <button class="question-btn">手表是被诅咒的吗?</button>
- <button class="question-btn">他尝试取下手表吗?</button>
- <button class="question-btn">预言是关于他自己的吗?</button>
- </div>
-
- <!-- 提问输入框 -->
- <div class="mt-3 flex">
- <input type="text" class="app-input flex-1" placeholder="输入问题...">
- <button class="bg-sky-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-sky-500 text-white rounded-md text-sm px-3 py-1.5 flex items-center">
- <i class="fas fa-question-circle mr-1"></i> 提问
- </button>
- <button class="bg-green-500 text-white rounded-md text-sm px-3 py-1.5 flex items-center">
- <i class="fas fa-lightbulb 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-lightbulb 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">
- <!-- 道具1 -->
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-blue-50">
- <div class="flex-shrink-0 w-10 h-10 bg-blue-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-lightbulb text-blue-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">解题助手</div>
- <div class="text-xs text-blue-600">8元/小时</div>
- </div>
- <div class="text-xs text-gray-500">智能分析问题并提供有效提示</div>
- </div>
- <button class="text-xs bg-blue-500 text-white py-1 px-2 rounded-md">解锁</button>
- </div>
-
- <!-- 道具2 -->
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-purple-50">
- <div class="flex-shrink-0 w-10 h-10 bg-purple-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-filter text-purple-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">思路引导器</div>
- <div class="text-xs text-purple-600">6元/小时</div>
- </div>
- <div class="text-xs text-gray-500">分析当前思路,指引正确方向</div>
- </div>
- <button class="text-xs bg-purple-500 text-white py-1 px-2 rounded-md">解锁</button>
- </div>
-
- <!-- 道具3 -->
- <div class="flex items-center p-2 border border-gray-200 rounded-md bg-green-50">
- <div class="flex-shrink-0 w-10 h-10 bg-green-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-bullseye text-green-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">关键词提示</div>
- <div class="text-xs text-green-600">5元/小时</div>
- </div>
- <div class="text-xs text-gray-500">提供解题关键词提示</div>
- </div>
- <button class="text-xs bg-green-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-red-50 relative">
- <div class="flex-shrink-0 w-10 h-10 bg-red-100 rounded-md flex items-center justify-center mr-3">
- <i class="fas fa-gift text-red-500"></i>
- </div>
- <div class="flex-1">
- <div class="flex justify-between">
- <div class="text-sm font-medium">高级解谜套装</div>
- <div class="text-xs text-red-600">15元/小时</div>
- </div>
- <div class="text-xs text-gray-500">包含全部高级解谜工具</div>
- </div>
- <button class="text-xs bg-red-500 text-white py-1 px-2 rounded-md">解锁</button>
- <div class="absolute -top-1 -right-1 bg-amber-500 text-white text-xs px-1.5 py-0.5 rounded-full">优惠</div>
- </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>
|