index.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
  6. <title>11月挑战赛 - 最终封面</title>
  7. <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
  8. <style>
  9. :root {
  10. --primary-purple: #593259;
  11. --primary-orange: #ffeaa7;
  12. }
  13. * {
  14. box-sizing: border-box;
  15. margin: 0;
  16. padding: 0;
  17. font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  18. -webkit-tap-highlight-color: transparent;
  19. user-select: none;
  20. }
  21. /* 1. 背景层:全屏铺满 */
  22. body {
  23. margin: 0;
  24. padding: 0;
  25. height: 100vh;
  26. width: 100vw;
  27. overflow: hidden;
  28. background: linear-gradient(to bottom, rgba(162, 155, 254, 0.2) 0%, rgba(45, 52, 54, 0.95) 100%),
  29. url('https://img.freepik.com/free-vector/silhouette-trail-runner-running-forest-at-night_105940-705.jpg?w=800') center/cover no-repeat;
  30. background-color: #2d3436;
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. }
  35. /* 2. 毛玻璃卡片层:距边 2% */
  36. .glass-card {
  37. width: 96%;
  38. height: 96%;
  39. /* 描边 & 圆角 */
  40. border: 2px solid rgba(255, 255, 255, 0.25);
  41. border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  42. border-radius: 40px;
  43. /* 毛玻璃效果 */
  44. background: linear-gradient(to bottom,
  45. rgba(255, 255, 255, 0.15) 0%,
  46. rgba(255, 255, 255, 0.05) 40%,
  47. rgba(0, 0, 0, 0.2) 100%
  48. );
  49. backdrop-filter: blur(10px);
  50. -webkit-backdrop-filter: blur(10px);
  51. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
  52. position: relative;
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. justify-content: center;
  57. text-align: center;
  58. cursor: pointer;
  59. overflow: hidden;
  60. }
  61. .glass-card:active {
  62. transform: scale(0.99);
  63. transition: transform 0.1s;
  64. }
  65. /* 顶部年份 */
  66. .tag-year {
  67. font-size: 18px;
  68. font-weight: 800;
  69. letter-spacing: 3px;
  70. color: #fff;
  71. margin-bottom: 2vh;
  72. background: rgba(255, 255, 255, 0.2);
  73. padding: 8px 24px;
  74. border-radius: 30px;
  75. text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  76. border: 1px solid rgba(255,255,255,0.3);
  77. box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  78. }
  79. /* 月份数字 - 超大号金色 */
  80. .title-month {
  81. font-size: 35vmin;
  82. font-weight: 900;
  83. line-height: 1;
  84. /* 金色金属渐变 */
  85. background: linear-gradient(to bottom,
  86. #ffffff 10%,
  87. #ffd700 50%,
  88. #ff9f43 100%
  89. );
  90. -webkit-background-clip: text;
  91. -webkit-text-fill-color: transparent;
  92. filter: drop-shadow(0 4px 0px rgba(255, 215, 0, 0.3));
  93. margin: 1vh 0;
  94. z-index: 2;
  95. }
  96. .title-sub {
  97. font-size: 20px;
  98. font-weight: 800;
  99. color: rgba(255, 255, 255, 0.95);
  100. letter-spacing: 6px;
  101. text-transform: uppercase;
  102. margin-top: -1vh;
  103. text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  104. }
  105. /* 底部图标容器 */
  106. .deco-icon {
  107. margin-top: 5vh;
  108. width: 80px; height: 80px;
  109. border-radius: 50%;
  110. display: flex; justify-content: center; align-items: center;
  111. background: rgba(255,255,255,0.1);
  112. border: 1px solid rgba(255,255,255,0.2);
  113. box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  114. animation: trophy-pulse 2s infinite ease-in-out;
  115. }
  116. .deco-icon i {
  117. font-size: 40px;
  118. color: #ffd700;
  119. filter: drop-shadow(0 0 5px rgba(253, 203, 110, 0.8));
  120. }
  121. /* ================= 新增:查看排行按钮 ================= */
  122. .action-btn {
  123. position: absolute;
  124. bottom: 8%; /* 距离底部的位置 */
  125. /* 按钮尺寸与样式 */
  126. padding: 14px 40px;
  127. border-radius: 50px;
  128. border: none;
  129. /* 渐变背景:浅金 -> 珊瑚色 */
  130. background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
  131. /* 文字样式:深紫色,高对比度 */
  132. color: #593259;
  133. font-size: 18px;
  134. font-weight: 900;
  135. letter-spacing: 1px;
  136. /* 阴影与光泽 */
  137. box-shadow: 0 10px 25px rgba(255, 118, 117, 0.4),
  138. inset 0 1px 0 rgba(255,255,255,0.4);
  139. display: flex;
  140. align-items: center;
  141. gap: 10px;
  142. z-index: 10;
  143. animation: btn-float 3s infinite ease-in-out;
  144. }
  145. /* 按钮悬浮动画 */
  146. @keyframes btn-float {
  147. 0%, 100% { transform: translateY(0); }
  148. 50% { transform: translateY(-5px); }
  149. }
  150. @keyframes trophy-pulse {
  151. 0% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 rgba(253, 203, 110, 0.2); }
  152. 50% { transform: scale(1.1) translateY(-5px); box-shadow: 0 0 30px 10px rgba(253, 203, 110, 0.4); }
  153. 100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 rgba(253, 203, 110, 0); }
  154. }
  155. /* 顶部反光效果 */
  156. .shine {
  157. position: absolute;
  158. top: -15%; left: -15%;
  159. width: 60%; height: 40%;
  160. background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  161. z-index: 3;
  162. pointer-events: none;
  163. filter: blur(30px);
  164. opacity: 0.6;
  165. }
  166. </style>
  167. </head>
  168. <body>
  169. <!-- 点击整个区域都能跳转 -->
  170. <div class="glass-card" onclick="redirectToDetail()">
  171. <div class="shine"></div>
  172. <div class="tag-year">2025 年</div>
  173. <div class="title-month">11</div>
  174. <div class="title-sub">月度挑战赛</div>
  175. <div class="deco-icon">
  176. <i class="fa-solid fa-trophy"></i>
  177. </div>
  178. <!-- 替代原来的文字提示,使用显眼的按钮 -->
  179. <button class="action-btn">
  180. 查看排行 <i class="fa-solid fa-arrow-right"></i>
  181. </button>
  182. </div>
  183. <!-- 本地调试保留 mock_flutter.js,正式接入时移除 -->
  184. <script src="./mock_flutter.js"></script>
  185. <script src="./bridge.js"></script>
  186. <script>
  187. function getQueryParam(name) {
  188. const params = new URLSearchParams(window.location.search);
  189. return params.get(name);
  190. }
  191. function redirectToDetail() {
  192. const token = getQueryParam('token');
  193. const id = getQueryParam('id');
  194. let detailUrl = 'detail.html';
  195. const queryParams = [];
  196. if (token) {
  197. queryParams.push(`token=${encodeURIComponent(token)}`);
  198. }
  199. if (id) {
  200. queryParams.push(`id=${encodeURIComponent(id)}`);
  201. }
  202. if (queryParams.length > 0) {
  203. detailUrl += `?${queryParams.join('&')}`;
  204. }
  205. // Add full=true for Flutter interception
  206. detailUrl += (detailUrl.includes('?') ? '&' : '?') + 'full=true';
  207. console.log("Navigating from sdk/index.html to:", detailUrl);
  208. // Use Bridge.appAction for navigation
  209. if (window.Bridge && window.Bridge.appAction) {
  210. Bridge.appAction(detailUrl);
  211. } else {
  212. console.error("Bridge or Bridge.appAction is not defined. Falling back to window.location.href.");
  213. window.location.href = detailUrl; // Fallback for pure browser environment
  214. }
  215. }
  216. </script>
  217. </body>
  218. </html>