| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
- <title>11月挑战赛 - 最终封面</title>
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
- <style>
- :root {
- --primary-purple: #593259;
- --primary-orange: #ffeaa7;
- }
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
- -webkit-tap-highlight-color: transparent;
- user-select: none;
- }
- /* 1. 背景层:全屏铺满 */
- body {
- margin: 0;
- padding: 0;
- height: 100vh;
- width: 100vw;
- overflow: hidden;
-
- background: linear-gradient(to bottom, rgba(162, 155, 254, 0.2) 0%, rgba(45, 52, 54, 0.95) 100%),
- url('https://img.freepik.com/free-vector/silhouette-trail-runner-running-forest-at-night_105940-705.jpg?w=800') center/cover no-repeat;
- background-color: #2d3436;
-
- display: flex;
- justify-content: center;
- align-items: center;
- }
- /* 2. 毛玻璃卡片层:距边 2% */
- .glass-card {
- width: 96%;
- height: 96%;
-
- /* 描边 & 圆角 */
- border: 2px solid rgba(255, 255, 255, 0.25);
- border-bottom: 2px solid rgba(255, 255, 255, 0.1);
- border-radius: 40px;
-
- /* 毛玻璃效果 */
- background: linear-gradient(to bottom,
- rgba(255, 255, 255, 0.15) 0%,
- rgba(255, 255, 255, 0.05) 40%,
- rgba(0, 0, 0, 0.2) 100%
- );
- backdrop-filter: blur(10px);
- -webkit-backdrop-filter: blur(10px);
-
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
-
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- text-align: center;
- cursor: pointer;
- overflow: hidden;
- }
- .glass-card:active {
- transform: scale(0.99);
- transition: transform 0.1s;
- }
- /* 顶部年份 */
- .tag-year {
- font-size: 18px;
- font-weight: 800;
- letter-spacing: 3px;
- color: #fff;
- margin-bottom: 2vh;
- background: rgba(255, 255, 255, 0.2);
- padding: 8px 24px;
- border-radius: 30px;
- text-shadow: 0 1px 2px rgba(0,0,0,0.3);
- border: 1px solid rgba(255,255,255,0.3);
- box-shadow: 0 4px 15px rgba(0,0,0,0.2);
- }
- /* 月份数字 - 超大号金色 */
- .title-month {
- font-size: 35vmin;
- font-weight: 900;
- line-height: 1;
-
- /* 金色金属渐变 */
- background: linear-gradient(to bottom,
- #ffffff 10%,
- #ffd700 50%,
- #ff9f43 100%
- );
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
-
- filter: drop-shadow(0 4px 0px rgba(255, 215, 0, 0.3));
-
- margin: 1vh 0;
- z-index: 2;
- }
- .title-sub {
- font-size: 20px;
- font-weight: 800;
- color: rgba(255, 255, 255, 0.95);
- letter-spacing: 6px;
- text-transform: uppercase;
- margin-top: -1vh;
- text-shadow: 0 2px 4px rgba(0,0,0,0.6);
- }
- /* 底部图标容器 */
- .deco-icon {
- margin-top: 5vh;
- width: 80px; height: 80px;
- border-radius: 50%;
- display: flex; justify-content: center; align-items: center;
- background: rgba(255,255,255,0.1);
- border: 1px solid rgba(255,255,255,0.2);
- box-shadow: 0 10px 30px rgba(0,0,0,0.3);
- animation: trophy-pulse 2s infinite ease-in-out;
- }
- .deco-icon i {
- font-size: 40px;
- color: #ffd700;
- filter: drop-shadow(0 0 5px rgba(253, 203, 110, 0.8));
- }
- /* ================= 新增:查看排行按钮 ================= */
- .action-btn {
- position: absolute;
- bottom: 8%; /* 距离底部的位置 */
-
- /* 按钮尺寸与样式 */
- padding: 14px 40px;
- border-radius: 50px;
- border: none;
-
- /* 渐变背景:浅金 -> 珊瑚色 */
- background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
-
- /* 文字样式:深紫色,高对比度 */
- color: #593259;
- font-size: 18px;
- font-weight: 900;
- letter-spacing: 1px;
-
- /* 阴影与光泽 */
- box-shadow: 0 10px 25px rgba(255, 118, 117, 0.4),
- inset 0 1px 0 rgba(255,255,255,0.4);
-
- display: flex;
- align-items: center;
- gap: 10px;
-
- z-index: 10;
- animation: btn-float 3s infinite ease-in-out;
- }
- /* 按钮悬浮动画 */
- @keyframes btn-float {
- 0%, 100% { transform: translateY(0); }
- 50% { transform: translateY(-5px); }
- }
- @keyframes trophy-pulse {
- 0% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 rgba(253, 203, 110, 0.2); }
- 50% { transform: scale(1.1) translateY(-5px); box-shadow: 0 0 30px 10px rgba(253, 203, 110, 0.4); }
- 100% { transform: scale(1) translateY(0); box-shadow: 0 0 0 0 rgba(253, 203, 110, 0); }
- }
- /* 顶部反光效果 */
- .shine {
- position: absolute;
- top: -15%; left: -15%;
- width: 60%; height: 40%;
- background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
- z-index: 3;
- pointer-events: none;
- filter: blur(30px);
- opacity: 0.6;
- }
- </style>
- </head>
- <body>
- <!-- 点击整个区域都能跳转 -->
- <div class="glass-card" onclick="redirectToDetail()">
- <div class="shine"></div>
-
- <div class="tag-year">2025 年</div>
-
- <div class="title-month">11</div>
- <div class="title-sub">月度挑战赛</div>
-
- <div class="deco-icon">
- <i class="fa-solid fa-trophy"></i>
- </div>
- <!-- 替代原来的文字提示,使用显眼的按钮 -->
- <button class="action-btn">
- 查看排行 <i class="fa-solid fa-arrow-right"></i>
- </button>
- </div>
- <!-- 本地调试保留 mock_flutter.js,正式接入时移除 -->
- <script src="./mock_flutter.js"></script>
- <script src="./bridge.js"></script>
- <script>
- function getQueryParam(name) {
- const params = new URLSearchParams(window.location.search);
- return params.get(name);
- }
- function redirectToDetail() {
- const token = getQueryParam('token');
- const id = getQueryParam('id');
- let detailUrl = 'detail.html';
- const queryParams = [];
- if (token) {
- queryParams.push(`token=${encodeURIComponent(token)}`);
- }
- if (id) {
- queryParams.push(`id=${encodeURIComponent(id)}`);
- }
- if (queryParams.length > 0) {
- detailUrl += `?${queryParams.join('&')}`;
- }
-
- // Add full=true for Flutter interception
- detailUrl += (detailUrl.includes('?') ? '&' : '?') + 'full=true';
- console.log("Navigating from sdk/index.html to:", detailUrl);
-
- // Use Bridge.appAction for navigation
- if (window.Bridge && window.Bridge.appAction) {
- Bridge.appAction(detailUrl);
- } else {
- console.error("Bridge or Bridge.appAction is not defined. Falling back to window.location.href.");
- window.location.href = detailUrl; // Fallback for pure browser environment
- }
- }
- </script>
- </body>
- </html>
|