| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <!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">
- <title>月度排行榜</title>
- <link href="./css/all.min.css" rel="stylesheet">
- <style>
- :root {
- --bg-dark: #050505;
- --gold-light: #FFE5A0;
- --gold-mid: #D4AF37;
- --gold-dark: #8A6E2F;
- --accent-glow: rgba(212, 175, 55, 0.4);
- }
- * {
- box-sizing: border-box;
- margin: 0;
- padding: 0;
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
- -webkit-tap-highlight-color: transparent;
- user-select: none;
- }
- html, body {
- width: 100%;
- height: 100%;
- overflow: hidden;
- /* body 背景现在透明,让嵌入环境透传,或者统一由 card-container 接管 */
- background-color: transparent;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- /* 卡片容器 - 承载所有视觉元素和圆角 */
- .card-container {
- width: 100%;
- height: 100%;
- position: relative;
- z-index: 2;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- border-radius: 20px; /* 核心圆角 */
- overflow: hidden; /* 核心裁剪 */
- background-color: var(--bg-dark); /* 背景色移到这里 */
- }
- /* 背景动态流体 - 现在在 card-container 内部 */
- .ambient-bg {
- position: absolute;
- top: 0; left: 0; width: 100%; height: 100%;
- z-index: 0;
- background: radial-gradient(circle at 50% 120%, #1a1a1a, #000000);
- }
-
- /* 动态光斑 1 */
- .orb-1 {
- position: absolute;
- width: 80vmin;
- height: 80vmin;
- background: radial-gradient(closest-side, var(--gold-dark) 0%, transparent 100%);
- top: -20%;
- left: -20%;
- opacity: 0.3;
- will-change: transform;
- transform: translateZ(0);
- animation: floatOrb1 10s infinite alternate ease-in-out;
- }
-
- .orb-2 {
- position: absolute;
- width: 60vmin;
- height: 60vmin;
- background: radial-gradient(closest-side, #43300b 0%, transparent 100%);
- bottom: -10%;
- right: -10%;
- opacity: 0.4;
- will-change: transform;
- transform: translateZ(0);
- animation: floatOrb2 8s infinite alternate-reverse ease-in-out;
- }
- /* 顶部年份 */
- .header {
- position: absolute;
- top: 8%;
- display: flex;
- flex-direction: column;
- align-items: center;
- opacity: 0;
- animation: fadeInDown 1s ease-out 0.2s forwards;
- z-index: 3;
- }
- .year-label {
- font-size: 7vmin;
- color: rgba(255,255,255,0.6);
- letter-spacing: 0.5em;
- margin-bottom: 1vmin;
- font-weight: 300;
- }
- .divider-line {
- width: 10vmin;
- height: 2px;
- background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
- }
- /* 核心内容:月份 */
- .main-visual {
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- z-index: 3;
- }
- .month-wrapper {
- position: relative;
- }
- .month-num {
- font-size: 45vmin;
- font-weight: 800;
- line-height: 0.85;
- letter-spacing: -2vmin;
- color: transparent;
- background: linear-gradient(135deg, var(--gold-light) 10%, #fff 25%, var(--gold-mid) 50%, var(--gold-dark) 80%);
- -webkit-background-clip: text;
- filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
- transform: scale(0.8);
- opacity: 0;
- animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
- position: relative;
- z-index: 2;
- }
- .glow-behind {
- position: absolute;
- top: 50%; left: 50%;
- transform: translate(-50%, -50%);
- width: 40vmin;
- height: 40vmin;
- background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
- z-index: 1;
- filter: blur(20px);
- animation: pulseGlow 3s infinite ease-in-out;
- }
- .month-text {
- font-size: 9vmin;
- color: var(--gold-mid);
- letter-spacing: 1vmin;
- margin-top: 2vmin;
- text-transform: uppercase;
- font-weight: 600;
- opacity: 0;
- animation: fadeInUp 1s ease-out 0.6s forwards;
- }
- /* 底部奖杯区 */
- .trophy-area {
- position: absolute;
- bottom: 12%;
- display: flex;
- flex-direction: column;
- align-items: center;
- opacity: 0;
- animation: fadeInUp 1s ease-out 0.8s forwards;
- z-index: 3;
- }
- .trophy-circle {
- width: 14vmin;
- height: 14vmin;
- border-radius: 50%;
- border: 1px solid rgba(255, 255, 255, 0.1);
- background: rgba(255, 255, 255, 0.03); /* Fallback */
- background: rgba(30, 30, 30, 0.6); /* Performance optimized replacement for blur */
- display: flex;
- justify-content: center;
- align-items: center;
- /* backdrop-filter removed for performance */
- margin-bottom: 2vmin;
- box-shadow: 0 0 20px rgba(0,0,0,0.3), inset 0 0 10px rgba(255,215,0,0.1);
- transition: transform 0.1s ease;
- }
- .trophy-icon {
- font-size: 6vmin;
- color: var(--gold-light);
- filter: drop-shadow(0 0 5px var(--gold-mid));
- }
- .cta-text {
- font-size: 5.5vmin;
- color: rgba(255,255,255,0.4);
- letter-spacing: 2px;
- }
- /* 交互动画 */
- .card-container:active .month-num {
- transform: scale(0.95);
- transition: transform 0.1s;
- filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
- }
-
- .card-container:active .trophy-circle {
- background: rgba(255, 215, 0, 0.1);
- transform: scale(1.1);
- }
- /* 关键帧优化 */
- @keyframes floatOrb1 {
- 0% { transform: translate3d(0, 0, 0); }
- 100% { transform: translate3d(10%, 10%, 0); }
- }
- @keyframes floatOrb2 {
- 0% { transform: translate3d(0, 0, 0); }
- 100% { transform: translate3d(-10%, -10%, 0); }
- }
- @keyframes fadeInDown {
- from { opacity: 0; transform: translateY(-20px); }
- to { opacity: 1; transform: translateY(0); }
- }
- @keyframes fadeInUp {
- from { opacity: 0; transform: translateY(20px); }
- to { opacity: 1; transform: translateY(0); }
- }
- @keyframes zoomIn {
- from { opacity: 0; transform: scale(0.5); }
- to { opacity: 1; transform: scale(1); }
- }
- @keyframes pulseGlow {
- 0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
- 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
- }
- </style>
- </head>
- <body>
- <!-- 将背景元素移入 card-container -->
- <div class="card-container" onclick="redirectToDetail()">
-
- <div class="ambient-bg">
- <div class="orb-1"></div>
- <div class="orb-2"></div>
- </div>
- <div class="header">
- <div class="year-label">2025年</div>
- <div class="divider-line"></div>
- </div>
- <div class="main-visual">
- <div class="month-wrapper">
- <div class="glow-behind"></div>
- <div class="month-num">12</div>
- </div>
- <div class="month-text">月挑战赛</div>
- </div>
- <div class="trophy-area">
- <div class="trophy-circle">
- <i class="fa-solid fa-trophy trophy-icon"></i>
- </div>
- <div class="cta-text">点击查看排行榜</div>
- </div>
- </div>
- <script src="./bridge.js"></script>
- <script src="./js/target_logic.js"></script>
- <script>
- // Auto-Update Date
- (function() {
- const now = new Date();
- const year = now.getFullYear();
- const month = now.getMonth() + 1;
-
- const yearEl = document.querySelector('.year-label');
- const monthEl = document.querySelector('.month-num');
-
- if (yearEl) yearEl.innerText = year + '年';
- if (monthEl) monthEl.innerText = month;
- })();
- // Logger Utility
- const Logger = {
- _isDev: false,
- init: function(isDev) {
- this._isDev = isDev;
- },
- log: function() {
- if (this._isDev) {
- console.log.apply(console, arguments);
- }
- },
- warn: function() {
- if (this._isDev) {
- console.warn.apply(console, arguments);
- }
- },
- error: function() {
- console.error.apply(console, arguments);
- }
- };
- function getQueryParam(name) {
- const params = new URLSearchParams(window.location.search);
- return params.get(name);
- }
- // Initialize Logger
- const env = (getQueryParam('env') || '').toLowerCase();
- Logger.init(env === 'mock'); // Only log if env=mock
- function redirectToDetail() {
- const token = getQueryParam('token');
- const id = getQueryParam('id');
-
- // Dynamic Target
- let detailUrl = getTargetDetail();
- const queryParams = [];
- if (token) {
- queryParams.push(`token=${encodeURIComponent(token)}`);
- }
- if (id) {
- queryParams.push(`id=${encodeURIComponent(id)}`);
- }
- if (queryParams.length > 0) {
- detailUrl += `?${queryParams.join('&')}`;
- }
-
- detailUrl += (detailUrl.includes('?') ? '&' : '?') + 'full=true';
- Logger.log("Navigating to:", detailUrl);
-
- if (window.Bridge && window.Bridge.appAction) {
- Bridge.appAction(detailUrl);
- } else {
- window.location.href = detailUrl;
- }
- }
- </script>
- </body>
- </html>
|