game-turtle-player.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>海龟汤 - 玩家视图</title>
  7. <!-- Tailwind CSS -->
  8. <script src="https://cdn.tailwindcss.com"></script>
  9. <!-- FontAwesome -->
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  11. <!-- 自定义样式 -->
  12. <link rel="stylesheet" href="../css/custom.css">
  13. <style>
  14. .app-content {
  15. padding-bottom: 60px; /* 为底部导航栏留出空间 */
  16. }
  17. .player-theme {
  18. --player-primary: #0EA5E9;
  19. --player-secondary: #EFF6FF;
  20. --player-accent: #0284C7;
  21. }
  22. .player-header {
  23. background-color: var(--player-primary);
  24. color: white;
  25. }
  26. .chat-container {
  27. max-height: 120px;
  28. overflow-y: auto;
  29. }
  30. .turtle-soup-clue {
  31. padding: 10px;
  32. border-radius: 6px;
  33. background-color: white;
  34. margin-bottom: 8px;
  35. border-left: 3px solid var(--player-primary);
  36. }
  37. .player-badge {
  38. background-color: var(--player-primary);
  39. color: white;
  40. padding: 2px 8px;
  41. border-radius: 9999px;
  42. font-size: 0.75rem;
  43. }
  44. .progress-bar {
  45. height: 6px;
  46. width: 100%;
  47. background-color: #e2e8f0;
  48. border-radius: 999px;
  49. overflow: hidden;
  50. }
  51. .progress {
  52. height: 100%;
  53. background-color: var(--player-primary);
  54. border-radius: 999px;
  55. transition: width 0.5s ease;
  56. }
  57. .puzzle-card {
  58. background-color: var(--player-secondary);
  59. border-radius: 8px;
  60. padding: 16px;
  61. margin-bottom: 16px;
  62. border: 1px solid rgba(14, 165, 233, 0.2);
  63. }
  64. .puzzle-title {
  65. font-weight: 600;
  66. color: var(--player-primary);
  67. margin-bottom: 8px;
  68. display: flex;
  69. align-items: center;
  70. justify-content: space-between;
  71. }
  72. .keywords-container {
  73. background-color: #dbeafe;
  74. border-radius: 6px;
  75. padding: 10px;
  76. margin-top: 12px;
  77. border-left: 3px solid #3b82f6;
  78. }
  79. </style>
  80. </head>
  81. <body class="player-theme">
  82. <div class="iphone-frame">
  83. <!-- 引入状态栏 -->
  84. <iframe src="../components/status-bar.html" frameborder="0" scrolling="no" style="width:100%; height:44px; overflow:hidden;"></iframe>
  85. <!-- 导航栏 -->
  86. <div class="app-navbar player-header">
  87. <div class="title">海龟汤 - 玩家</div>
  88. <div class="right-button text-sm">
  89. <span class="player-badge">玩家</span>
  90. </div>
  91. </div>
  92. <!-- 内容区域 -->
  93. <div class="app-content">
  94. <!-- 游戏状态 -->
  95. <div class="bg-sky-100 p-3 text-center">
  96. <div class="flex items-center justify-center">
  97. <i class="fas fa-hourglass-half text-sky-500 mr-2"></i>
  98. <span class="text-sky-700 font-medium">游戏进行中</span>
  99. </div>
  100. <div class="text-xs text-sky-700 mt-1">已进行: 12分钟 · 玩家模式</div>
  101. </div>
  102. <!-- 谜题信息 -->
  103. <div class="m-3">
  104. <div class="puzzle-card">
  105. <div class="puzzle-title">
  106. <div class="flex items-center">
  107. <i class="fas fa-puzzle-piece mr-2"></i>
  108. 神秘的手表
  109. </div>
  110. <div class="text-xs px-2 py-0.5 bg-sky-100 text-sky-600 rounded-full">难度: 中等</div>
  111. </div>
  112. <!-- 汤面(玩家可见) -->
  113. <div class="p-3 bg-white rounded-md mb-3 shadow-sm">
  114. <p class="text-sm">
  115. 一个男人收到了一块神秘的手表,戴上后就再也无法取下来。一周后,他自杀了。为什么?
  116. </p>
  117. </div>
  118. <!-- 游戏进度 -->
  119. <div class="mt-3">
  120. <div class="flex justify-between text-xs text-gray-500 mb-1">
  121. <span>解谜进度</span>
  122. <span>40%</span>
  123. </div>
  124. <div class="progress-bar">
  125. <div class="progress" style="width: 40%"></div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <!-- 已揭示线索列表 -->
  131. <div class="m-3">
  132. <div class="flex justify-between items-center mb-2">
  133. <h3 class="font-medium flex items-center">
  134. <i class="fas fa-key text-sky-500 mr-1"></i> 已揭示线索
  135. </h3>
  136. <div class="text-xs px-2 py-0.5 bg-sky-100 text-sky-600 rounded-full">2/5已揭示</div>
  137. </div>
  138. <div class="space-y-2">
  139. <!-- 线索1 -->
  140. <div class="turtle-soup-clue">
  141. <div class="flex justify-between items-center">
  142. <span class="text-xs text-sky-600 font-medium">线索1</span>
  143. <span class="text-xs text-gray-500">12:05揭示</span>
  144. </div>
  145. <p class="text-sm mt-1">这块手表有特殊功能,不是普通手表。</p>
  146. </div>
  147. <!-- 线索2 -->
  148. <div class="turtle-soup-clue">
  149. <div class="flex justify-between items-center">
  150. <span class="text-xs text-sky-600 font-medium">线索2</span>
  151. <span class="text-xs text-gray-500">12:08揭示</span>
  152. </div>
  153. <p class="text-sm mt-1">手表可以显示未来将发生的事情。</p>
  154. </div>
  155. <!-- 关键词区域 -->
  156. <div class="keywords-container">
  157. <div class="flex justify-between items-center">
  158. <span class="text-xs text-blue-600 font-medium flex items-center">
  159. <i class="fas fa-search mr-1"></i> 关键词提示
  160. </span>
  161. <span class="text-xs text-gray-500">12:15购买</span>
  162. </div>
  163. <div class="flex flex-wrap gap-1 mt-1">
  164. <span class="text-xs bg-blue-100 text-blue-700 px-2 py-0.5 rounded-full">预知</span>
  165. <span class="text-xs bg-blue-100 text-blue-700 px-2 py-0.5 rounded-full">命运</span>
  166. <span class="text-xs bg-blue-100 text-blue-700 px-2 py-0.5 rounded-full">恐惧</span>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <!-- 游戏控制和道具区域 -->
  172. <div class="p-3 sticky bottom-0 bg-white border-t border-gray-200">
  173. <!-- 结束游戏后显示的操作区域 -->
  174. <div class="bg-green-50 rounded-lg p-3 mb-2 border border-green-200 hidden" id="gameEndedOptions">
  175. <div class="flex justify-between items-center">
  176. <div>
  177. <div class="text-sm font-medium text-green-700">游戏已结束</div>
  178. <div class="text-xs text-gray-500">等待主持人开始新游戏</div>
  179. </div>
  180. <button class="bg-sky-500 text-white text-xs py-1.5 px-3 rounded-md flex items-center">
  181. <i class="fas fa-thumbs-up mr-1"></i> 准备好了
  182. </button>
  183. </div>
  184. </div>
  185. <!-- 道具购买区 -->
  186. <div class="bg-blue-50 rounded-lg p-2 border border-blue-200">
  187. <div class="flex justify-between items-center">
  188. <div class="flex items-center">
  189. <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
  190. <i class="fas fa-lightbulb text-blue-500"></i>
  191. </div>
  192. <div>
  193. <div class="text-sm font-medium">解谜助手</div>
  194. <div class="text-xs text-gray-500">提高解谜效率</div>
  195. </div>
  196. </div>
  197. <button class="bg-blue-500 text-white text-xs py-1 px-2 rounded-md" id="openPropsBtn">
  198. 解锁道具
  199. </button>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <!-- 道具弹窗 -->
  205. <div id="propsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
  206. <div class="bg-white w-11/12 rounded-lg max-h-[80vh] overflow-y-auto">
  207. <div class="p-3 border-b border-gray-200 flex justify-between items-center sticky top-0 bg-white">
  208. <h3 class="font-bold">解谜道具</h3>
  209. <button id="closePropsBtn" class="text-gray-500">
  210. <i class="fas fa-times"></i>
  211. </button>
  212. </div>
  213. <div class="p-3">
  214. <div class="text-xs text-gray-500 mb-3">
  215. 解锁道具可以帮助你更快地解开谜题,计费按使用时长计算。
  216. </div>
  217. <div class="space-y-3">
  218. <!-- 初级道具 -->
  219. <div class="flex items-center p-3 border border-gray-200 rounded-md bg-white">
  220. <div class="flex-shrink-0 w-10 h-10 bg-blue-100 rounded-md flex items-center justify-center mr-3">
  221. <i class="fas fa-search text-blue-500"></i>
  222. </div>
  223. <div class="flex-1">
  224. <div class="flex justify-between">
  225. <div class="text-sm font-medium">初级道具 - 关键词</div>
  226. <div class="text-xs text-blue-600">15元/小时</div>
  227. </div>
  228. <div class="text-xs text-gray-500">提示故事关键词,帮助理解故事背景</div>
  229. </div>
  230. <button class="text-xs bg-blue-100 text-blue-700 py-1.5 px-2 rounded-md">已购买</button>
  231. </div>
  232. <!-- 高级道具 -->
  233. <div class="flex items-center p-3 border border-gray-200 rounded-md bg-white relative">
  234. <div class="flex-shrink-0 w-10 h-10 bg-indigo-100 rounded-md flex items-center justify-center mr-3">
  235. <i class="fas fa-key text-indigo-500"></i>
  236. </div>
  237. <div class="flex-1">
  238. <div class="flex justify-between">
  239. <div class="text-sm font-medium">高级道具 - 关键线索</div>
  240. <div class="text-xs text-indigo-600">30元/小时</div>
  241. </div>
  242. <div class="text-xs text-gray-500">直接揭示一条未公开的关键线索</div>
  243. </div>
  244. <button class="text-xs bg-indigo-500 text-white py-1.5 px-2 rounded-md">购买</button>
  245. <div class="absolute -top-1 -right-1 bg-red-500 text-white text-xs px-1.5 py-0.5 rounded-full">热门</div>
  246. </div>
  247. <div class="mt-3 py-2 text-center border-t border-gray-200">
  248. <div class="text-sm font-medium">当前套餐: 初级道具 15元/小时</div>
  249. <div class="text-xs text-gray-500 mt-1">计时中: 已使用 22分钟,剩余38分钟</div>
  250. <button class="mt-2 text-xs bg-blue-500 text-white py-1.5 px-3 rounded-md">
  251. 延长套餐时间
  252. </button>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. <!-- 引入底部导航栏 -->
  259. <iframe src="../components/nav-bar.html" frameborder="0" scrolling="no" style="width:100%; height:50px; overflow:hidden; position:fixed; bottom:0;"></iframe>
  260. </div>
  261. <script>
  262. document.addEventListener("DOMContentLoaded", function() {
  263. // 道具弹窗控制
  264. const openPropsBtn = document.getElementById('openPropsBtn');
  265. const closePropsBtn = document.getElementById('closePropsBtn');
  266. const propsModal = document.getElementById('propsModal');
  267. openPropsBtn.addEventListener('click', function() {
  268. propsModal.classList.remove('hidden');
  269. });
  270. closePropsBtn.addEventListener('click', function() {
  271. propsModal.classList.add('hidden');
  272. });
  273. // 点击弹窗外部关闭
  274. propsModal.addEventListener('click', function(e) {
  275. if (e.target === propsModal) {
  276. propsModal.classList.add('hidden');
  277. }
  278. });
  279. });
  280. </script>
  281. </body>
  282. </html>