game-turtle-player.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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: 250px;
  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. .question-btn {
  58. background-color: #f1f5f9;
  59. border-radius: 999px;
  60. padding: 4px 12px;
  61. font-size: 0.875rem;
  62. color: #334155;
  63. border: none;
  64. cursor: pointer;
  65. white-space: nowrap;
  66. transition: all 0.2s ease;
  67. }
  68. .question-btn:hover {
  69. background-color: #e2e8f0;
  70. }
  71. .puzzle-card {
  72. background-color: var(--player-secondary);
  73. border-radius: 8px;
  74. padding: 16px;
  75. margin-bottom: 16px;
  76. border: 1px solid rgba(14, 165, 233, 0.2);
  77. }
  78. .puzzle-title {
  79. font-weight: 600;
  80. color: var(--player-primary);
  81. margin-bottom: 8px;
  82. display: flex;
  83. align-items: center;
  84. justify-content: space-between;
  85. }
  86. </style>
  87. </head>
  88. <body class="player-theme">
  89. <div class="iphone-frame">
  90. <!-- 引入状态栏 -->
  91. <iframe src="../components/status-bar.html" frameborder="0" scrolling="no" style="width:100%; height:44px; overflow:hidden;"></iframe>
  92. <!-- 导航栏 -->
  93. <div class="app-navbar player-header">
  94. <div class="title">海龟汤 - 玩家</div>
  95. <div class="right-button text-sm">
  96. <span class="player-badge">玩家</span>
  97. </div>
  98. </div>
  99. <!-- 内容区域 -->
  100. <div class="app-content">
  101. <!-- 游戏状态 -->
  102. <div class="bg-sky-100 p-3 text-center">
  103. <div class="flex items-center justify-center">
  104. <i class="fas fa-hourglass-half text-sky-500 mr-2"></i>
  105. <span class="text-sky-700 font-medium">游戏进行中</span>
  106. </div>
  107. <div class="text-xs text-sky-700 mt-1">已进行: 12分钟 · 玩家模式</div>
  108. </div>
  109. <!-- 谜题信息 -->
  110. <div class="m-3">
  111. <div class="puzzle-card">
  112. <div class="puzzle-title">
  113. <div class="flex items-center">
  114. <i class="fas fa-puzzle-piece mr-2"></i>
  115. 神秘的手表
  116. </div>
  117. <div class="text-xs px-2 py-0.5 bg-sky-100 text-sky-600 rounded-full">难度: 中等</div>
  118. </div>
  119. <!-- 汤面(玩家可见) -->
  120. <div class="p-3 bg-white rounded-md mb-3 shadow-sm">
  121. <p class="text-sm">
  122. 一个男人收到了一块神秘的手表,戴上后就再也无法取下来。一周后,他自杀了。为什么?
  123. </p>
  124. </div>
  125. <!-- 游戏进度 -->
  126. <div class="mt-3">
  127. <div class="flex justify-between text-xs text-gray-500 mb-1">
  128. <span>解谜进度</span>
  129. <span>40%</span>
  130. </div>
  131. <div class="progress-bar">
  132. <div class="progress" style="width: 40%"></div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <!-- 已揭示线索列表 -->
  138. <div class="m-3">
  139. <div class="flex justify-between items-center mb-2">
  140. <h3 class="font-medium flex items-center">
  141. <i class="fas fa-key text-sky-500 mr-1"></i> 已揭示线索
  142. </h3>
  143. <div class="text-xs px-2 py-0.5 bg-sky-100 text-sky-600 rounded-full">2/5已揭示</div>
  144. </div>
  145. <div class="space-y-2">
  146. <!-- 线索1 -->
  147. <div class="turtle-soup-clue">
  148. <div class="flex justify-between items-center">
  149. <span class="text-xs text-sky-600 font-medium">线索1</span>
  150. <span class="text-xs text-gray-500">12:05揭示</span>
  151. </div>
  152. <p class="text-sm mt-1">这块手表有特殊功能,不是普通手表。</p>
  153. </div>
  154. <!-- 线索2 -->
  155. <div class="turtle-soup-clue">
  156. <div class="flex justify-between items-center">
  157. <span class="text-xs text-sky-600 font-medium">线索2</span>
  158. <span class="text-xs text-gray-500">12:08揭示</span>
  159. </div>
  160. <p class="text-sm mt-1">手表可以显示未来将发生的事情。</p>
  161. </div>
  162. </div>
  163. </div>
  164. <!-- 问答互动区域 -->
  165. <div class="p-3 bg-white border-t border-gray-200">
  166. <h3 class="font-medium mb-2 flex items-center">
  167. <i class="fas fa-comments text-sky-500 mr-1"></i> 问答区
  168. </h3>
  169. <div class="chat-container flex flex-col">
  170. <!-- 玩家问题1(不是我) -->
  171. <div class="chat-bubble left">
  172. <div class="text-xs text-gray-500 mb-1">小红</div>
  173. 手表是有特殊功能的吗?
  174. </div>
  175. <!-- 主持人回答1 -->
  176. <div class="chat-bubble left bg-amber-50">
  177. <div class="text-xs text-amber-500 mb-1">主持人</div>
  178. 是的
  179. </div>
  180. <!-- 玩家问题2(不是我) -->
  181. <div class="chat-bubble left">
  182. <div class="text-xs text-gray-500 mb-1">小明</div>
  183. 这块手表能预测未来吗?
  184. </div>
  185. <!-- 主持人回答2 -->
  186. <div class="chat-bubble left bg-amber-50">
  187. <div class="text-xs text-amber-500 mb-1">主持人</div>
  188. 是的
  189. </div>
  190. <!-- 玩家问题3(不是我) -->
  191. <div class="chat-bubble left">
  192. <div class="text-xs text-gray-500 mb-1">小红</div>
  193. 手表预测了他的死亡?
  194. </div>
  195. <!-- 我的问题 -->
  196. <div class="chat-bubble right bg-sky-50 border-sky-200">
  197. <div class="text-xs text-sky-500 mb-1">我</div>
  198. 他是因为看到了什么预言而自杀的吗?
  199. </div>
  200. </div>
  201. <!-- 快速提问按钮 -->
  202. <div class="flex flex-wrap gap-2 mt-3">
  203. <button class="question-btn">手表是被诅咒的吗?</button>
  204. <button class="question-btn">他尝试取下手表吗?</button>
  205. <button class="question-btn">预言是关于他自己的吗?</button>
  206. </div>
  207. <!-- 提问输入框 -->
  208. <div class="mt-3 flex">
  209. <input type="text" class="app-input flex-1" placeholder="输入问题...">
  210. <button class="bg-sky-500 text-white ml-2 px-3 py-2 rounded-md">
  211. <i class="fas fa-paper-plane"></i>
  212. </button>
  213. </div>
  214. </div>
  215. <!-- 游戏按钮 -->
  216. <div class="p-3 sticky bottom-0 bg-white border-t border-gray-200">
  217. <div class="flex items-center justify-between mb-2">
  218. <button class="bg-sky-500 text-white rounded-md text-sm px-3 py-1.5 flex items-center">
  219. <i class="fas fa-question-circle mr-1"></i> 提问
  220. </button>
  221. <button class="bg-green-500 text-white rounded-md text-sm px-3 py-1.5 flex items-center">
  222. <i class="fas fa-lightbulb mr-1"></i> 猜测
  223. </button>
  224. </div>
  225. <!-- 道具购买区 -->
  226. <div class="bg-blue-50 rounded-lg p-2 mb-2 border border-blue-200">
  227. <div class="flex justify-between items-center">
  228. <div class="flex items-center">
  229. <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
  230. <i class="fas fa-lightbulb text-blue-500"></i>
  231. </div>
  232. <div>
  233. <div class="text-sm font-medium">解谜助手</div>
  234. <div class="text-xs text-gray-500">提高解谜效率</div>
  235. </div>
  236. </div>
  237. <button class="bg-blue-500 text-white text-xs py-1 px-2 rounded-md" id="openPropsBtn">
  238. 解锁道具
  239. </button>
  240. </div>
  241. </div>
  242. <!-- 道具弹窗 -->
  243. <div id="propsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
  244. <div class="bg-white w-11/12 rounded-lg max-h-[80vh] overflow-y-auto">
  245. <div class="p-3 border-b border-gray-200 flex justify-between items-center sticky top-0 bg-white">
  246. <h3 class="font-bold">解谜道具</h3>
  247. <button id="closePropsBtn" class="text-gray-500">
  248. <i class="fas fa-times"></i>
  249. </button>
  250. </div>
  251. <div class="p-3">
  252. <div class="space-y-3">
  253. <!-- 道具1 -->
  254. <div class="flex items-center p-2 border border-gray-200 rounded-md bg-blue-50">
  255. <div class="flex-shrink-0 w-10 h-10 bg-blue-100 rounded-md flex items-center justify-center mr-3">
  256. <i class="fas fa-lightbulb text-blue-500"></i>
  257. </div>
  258. <div class="flex-1">
  259. <div class="flex justify-between">
  260. <div class="text-sm font-medium">解题助手</div>
  261. <div class="text-xs text-blue-600">8元/小时</div>
  262. </div>
  263. <div class="text-xs text-gray-500">智能分析问题并提供有效提示</div>
  264. </div>
  265. <button class="text-xs bg-blue-500 text-white py-1 px-2 rounded-md">解锁</button>
  266. </div>
  267. <!-- 道具2 -->
  268. <div class="flex items-center p-2 border border-gray-200 rounded-md bg-purple-50">
  269. <div class="flex-shrink-0 w-10 h-10 bg-purple-100 rounded-md flex items-center justify-center mr-3">
  270. <i class="fas fa-filter text-purple-500"></i>
  271. </div>
  272. <div class="flex-1">
  273. <div class="flex justify-between">
  274. <div class="text-sm font-medium">思路引导器</div>
  275. <div class="text-xs text-purple-600">6元/小时</div>
  276. </div>
  277. <div class="text-xs text-gray-500">分析当前思路,指引正确方向</div>
  278. </div>
  279. <button class="text-xs bg-purple-500 text-white py-1 px-2 rounded-md">解锁</button>
  280. </div>
  281. <!-- 道具3 -->
  282. <div class="flex items-center p-2 border border-gray-200 rounded-md bg-green-50">
  283. <div class="flex-shrink-0 w-10 h-10 bg-green-100 rounded-md flex items-center justify-center mr-3">
  284. <i class="fas fa-bullseye text-green-500"></i>
  285. </div>
  286. <div class="flex-1">
  287. <div class="flex justify-between">
  288. <div class="text-sm font-medium">关键词提示</div>
  289. <div class="text-xs text-green-600">5元/小时</div>
  290. </div>
  291. <div class="text-xs text-gray-500">提供解题关键词提示</div>
  292. </div>
  293. <button class="text-xs bg-green-500 text-white py-1 px-2 rounded-md">解锁</button>
  294. </div>
  295. <!-- 套餐 -->
  296. <div class="flex items-center p-2 border border-gray-200 rounded-md bg-red-50 relative">
  297. <div class="flex-shrink-0 w-10 h-10 bg-red-100 rounded-md flex items-center justify-center mr-3">
  298. <i class="fas fa-gift text-red-500"></i>
  299. </div>
  300. <div class="flex-1">
  301. <div class="flex justify-between">
  302. <div class="text-sm font-medium">高级解谜套装</div>
  303. <div class="text-xs text-red-600">15元/小时</div>
  304. </div>
  305. <div class="text-xs text-gray-500">包含全部高级解谜工具</div>
  306. </div>
  307. <button class="text-xs bg-red-500 text-white py-1 px-2 rounded-md">解锁</button>
  308. <div class="absolute -top-1 -right-1 bg-amber-500 text-white text-xs px-1.5 py-0.5 rounded-full">优惠</div>
  309. </div>
  310. <div class="mt-3 py-2 text-center border-t border-gray-200">
  311. <div class="text-xs text-gray-500">道具随时可开启/关闭,按实际使用时长计费</div>
  312. </div>
  313. </div>
  314. </div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. <!-- 引入底部导航栏 -->
  320. <iframe src="../components/nav-bar.html" frameborder="0" scrolling="no" style="width:100%; height:50px; overflow:hidden; position:fixed; bottom:0;"></iframe>
  321. </div>
  322. <script>
  323. document.addEventListener("DOMContentLoaded", function() {
  324. // 道具弹窗控制
  325. const openPropsBtn = document.getElementById('openPropsBtn');
  326. const closePropsBtn = document.getElementById('closePropsBtn');
  327. const propsModal = document.getElementById('propsModal');
  328. openPropsBtn.addEventListener('click', function() {
  329. propsModal.classList.remove('hidden');
  330. });
  331. closePropsBtn.addEventListener('click', function() {
  332. propsModal.classList.add('hidden');
  333. });
  334. // 点击弹窗外部关闭
  335. propsModal.addEventListener('click', function(e) {
  336. if (e.target === propsModal) {
  337. propsModal.classList.add('hidden');
  338. }
  339. });
  340. });
  341. </script>
  342. </body>
  343. </html>