diff --git a/src/data/battle-layout.js b/src/data/battle-layout.js
new file mode 100644
index 0000000..5304382
--- /dev/null
+++ b/src/data/battle-layout.js
@@ -0,0 +1,45 @@
+export function buildBattleLayout(battle) {
+ const rounds = battle?.rounds || [];
+ const allMatches = rounds.flatMap((round) => round.matches || []);
+ const matchMap = new Map(allMatches.map((match) => [match.id, match]));
+ const sources = new Map();
+
+ rounds.forEach((round, index) => {
+ const previousMatches = rounds[index - 1]?.matches || [];
+ for (const match of round.matches || []) {
+ const from = (side) => {
+ const explicit = match[`${side}From`];
+ if (explicit) return explicit;
+ const player = match[`${side}Player`];
+ if (!player) return '';
+ const candidates = previousMatches.filter((candidate) => candidate.winner && String(candidate.winner) === String(player));
+ return candidates.length === 1 ? candidates[0].id : '';
+ };
+ sources.set(match.id, { aFrom: from('a'), bFrom: from('b') });
+ }
+ });
+
+ const finalMatch = rounds.at(-1)?.matches?.[0];
+ const descendants = (rootId) => {
+ const found = new Set();
+ const visit = (id) => {
+ if (!id || found.has(id)) return;
+ found.add(id);
+ const link = sources.get(id);
+ visit(link?.aFrom);
+ visit(link?.bFrom);
+ };
+ visit(rootId);
+ return found;
+ };
+ const finalSources = sources.get(finalMatch?.id);
+
+ return {
+ allMatches,
+ matchMap,
+ sources,
+ finalMatch,
+ lastRoundIndex: rounds.length - 1,
+ sides: { left: descendants(finalSources?.aFrom), right: descendants(finalSources?.bFrom) },
+ };
+}
diff --git a/src/data/competition-api.js b/src/data/competition-api.js
new file mode 100644
index 0000000..8776fc1
--- /dev/null
+++ b/src/data/competition-api.js
@@ -0,0 +1,25 @@
+import { unwrapCompetitionState } from './competition-response.js';
+
+const configuredBase = (import.meta.env.VITE_COMPETITION_API_URL || '').trim().replace(/\/$/, '');
+const base = configuredBase || (import.meta.env.PROD
+ ? 'https://jitsi-web.yuedongsports.com/api/competition'
+ : '/api/competition');
+
+export const competitionApiBase = base;
+
+export async function loadCompetitionState() {
+ try {
+ const response = await fetch(`${base}/state`, { cache: 'no-store' });
+ if (!response.ok) throw new Error(`接口返回 ${response.status}`);
+ return { state: unwrapCompetitionState(await response.json()), mode: 'service' };
+ } catch (error) {
+ const fallback = await fetch(`${import.meta.env.BASE_URL}competition-state.json`, { cache: 'no-store' });
+ if (!fallback.ok) throw error;
+ return { state: unwrapCompetitionState(await fallback.json()), mode: 'static' };
+ }
+}
+
+export function subscribeCompetitionUpdates(onUpdate) {
+ const timer = window.setInterval(onUpdate, 10000);
+ return () => window.clearInterval(timer);
+}
diff --git a/src/data/competition-response.js b/src/data/competition-response.js
new file mode 100644
index 0000000..5fc0ce9
--- /dev/null
+++ b/src/data/competition-response.js
@@ -0,0 +1,19 @@
+export function unwrapCompetitionState(payload) {
+ let state = payload;
+ for (let depth = 0; depth < 3; depth += 1) {
+ if (typeof state === 'string') state = JSON.parse(state);
+ if (!state || typeof state !== 'object' || !Object.hasOwn(state, 'statusCode')) break;
+ if (state.statusCode !== 200) {
+ throw new Error(state.error || state.message || state.errors || `接口返回 ${state.statusCode}`);
+ }
+ state = state.data;
+ }
+ if (!state || typeof state !== 'object' || typeof state.published !== 'boolean'
+ || !state.competition || !state.notice || !Array.isArray(state.schedule?.items)
+ || !Array.isArray(state.results?.overall) || !Array.isArray(state.results?.challenge)
+ || !Array.isArray(state.results?.battle) || !Array.isArray(state.players)
+ || !Array.isArray(state.records)) {
+ throw new Error('接口返回的赛事数据结构不正确');
+ }
+ return state;
+}
diff --git a/src/data/page-content.js b/src/data/page-content.js
index b67d470..08c773c 100644
--- a/src/data/page-content.js
+++ b/src/data/page-content.js
@@ -207,7 +207,8 @@ pages.sports = {
cards: [
overviewCard('赛事招募', '汇集跃动旗下赛事报名、参赛通知与活动信息。', '/sports/competition#event-recruitment'),
overviewCard('赛事新闻', '关注专业赛事、城市活动与青少年运动员的最新动态。', '/sports/competition#event-news'),
- overviewCard('演艺活动', '冠军团队、花样跳绳与大型活动演出服务。', '/sports/competition#performances')
+ overviewCard('演艺活动', '冠军团队、花样跳绳与大型活动演出服务。', '/sports/competition#performances'),
+ overviewCard('赛事信息', '查询赛事信息、选手成绩与赛会纪录。', '/sports/results')
]
},
'event-recruitment': {
diff --git a/src/router.js b/src/router.js
index 6bf5224..2500633 100644
--- a/src/router.js
+++ b/src/router.js
@@ -4,6 +4,7 @@ import ContentPage from './views/ContentPage.vue';
import ContentDetailPage from './views/ContentDetailPage.vue';
import ProductDetailPage from './views/ProductDetailPage.vue';
import ContactPage from './views/ContactPage.vue';
+import CompetitionResultsPage from './views/CompetitionResultsPage.vue';
const routes = [
{ path: '/', name: 'home', component: HomePage },
@@ -13,6 +14,7 @@ const routes = [
{ path: '/sports/event-recruitment', redirect: '/sports/competition#event-recruitment' },
{ path: '/sports/event-news', redirect: '/sports/competition#event-news' },
{ path: '/sports/performances', redirect: '/sports/competition#performances' },
+ { path: '/sports/results', name: 'competition-results', component: CompetitionResultsPage, meta: { page: 'sports-results' } },
{ path: '/sports/venue-intro', redirect: '/sports/venues#venue-intro' },
{ path: '/sports/champion-class', redirect: '/sports/venues#champion-class' },
{ path: '/sports/camps', redirect: '/sports/venues#camps' },
diff --git a/src/style.css b/src/style.css
index dcdec6d..5661e74 100644
--- a/src/style.css
+++ b/src/style.css
@@ -63,12 +63,6 @@ main { min-height: 72vh; }
.dropdown a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-300); transform: translateY(-50%); transition: .22s; }
.dropdown a:hover, .dropdown a.router-link-active { color: var(--blue-700); background: var(--blue-50); transform: translateX(3px); }
.dropdown a:hover::before { background: var(--blue-600); box-shadow: 0 0 0 4px rgba(0,144,255,.12); }
-.dropdown-mega { width: min(620px,calc(100vw - 48px)); padding: 18px; }
-.dropdown-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
-.dropdown-group { min-width: 0; padding: 6px; border-radius: 11px; background: #f8fbff; }
-.dropdown .dropdown-group-title { margin: 0; padding: 13px 14px; color: var(--blue-800); background: #eaf6ff; font-size: 14px; font-weight: 800; }
-.dropdown .dropdown-group-title::before { display: none; }
-.dropdown .dropdown-group-title:hover { transform: translateY(-2px); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.language-switch { height: 38px; display: inline-grid; grid-template-columns: repeat(2,34px); align-items: center; padding: 3px; border: 1px solid rgba(0,144,255,.2); border-radius: 20px; background: var(--blue-50); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.language-switch span,.language-switch a { height: 30px; display: grid; place-items: center; border-radius: 16px; font-size: 11px; font-weight: 800; letter-spacing: .4px; transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease; }
@@ -92,16 +86,16 @@ main { min-height: 72vh; }
.home-hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transform: translateX(20%) scale(1.055); transition: opacity 1.1s ease, transform 7s ease; }
.home-hero-slide.active { opacity: 1; transform: translateX(25%) scale(1.105); }
.home-hero-shade { position: absolute; inset: 0; z-index: -3; width: 100%; background: linear-gradient(90deg,transparent 45%,rgba(0,43,82,.04) 70%,rgba(0,20,42,.18) 100%); }
-.home-hero-solid { position: absolute; inset: 0; z-index: -2; width: 80%; background: linear-gradient(90deg,#006fc9 0%,#0086ec 30%,#0090ff 45%,rgba(0,144,255,.98) 50%,rgba(0,144,255,.86) 55%,rgba(0,144,255,.56) 61%,rgba(0,144,255,.22) 68%,rgba(0,144,255,0) 76%); }
+.home-hero-solid { position: absolute; inset: 0; z-index: -2; width: 82%; background: linear-gradient(90deg,#006fc9 0%,#0085e8 30%,rgba(0,144,255,.96) 48%,rgba(0,144,255,.76) 58%,rgba(0,126,224,.42) 68%,rgba(0,105,188,0) 79%); }
.home-hero-grid { display: none; }
.home-hero-ring { display: none; }
.home-hero-ring::after { content: ""; position: absolute; left: 12%; top: 12%; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px var(--blue-300); }
.ring-one { width: 570px; height: 570px; right: -160px; top: 120px; }.ring-two { width: 280px; height: 280px; right: 115px; top: 260px; animation-direction: reverse; animation-duration: 12s; }
.home-hero-content { min-height: 720px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
-.home-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--blue-300); font-size: 11px; font-weight: 800; letter-spacing: 4px; }
-.home-eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--blue-600); }
+.home-eyebrow { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; letter-spacing: 4px; }
+.home-eyebrow::before { content: ""; width: 42px; height: 2px; background: rgba(255,255,255,.9); }
.home-hero h1 { margin: 22px 0 24px; max-width: 650px; font-size: clamp(66px,7.3vw,108px); line-height: .96; letter-spacing: -6px; text-shadow: 0 18px 45px rgba(0,69,132,.2); }
-.home-hero h1 em { color: var(--blue-600); font-style: normal; }
+.home-hero h1 em { color: #fff; font-style: normal; }
.home-hero-content > p { max-width: 720px; margin: 0; color: rgba(255,255,255,.92); font-size: clamp(19px,1.45vw,23px); font-weight: 500; line-height: 1.75; text-align: center; text-wrap: balance; text-shadow: 0 5px 20px rgba(0,61,118,.16); }
.home-hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.home-primary-button,.home-ghost-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 11px; font-size: 13px; font-weight: 700; transition: .3s; }
@@ -138,7 +132,15 @@ main { min-height: 72vh; }
.home-product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }.home-product-grid > a { padding: 15px 15px 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 19px 4px 19px 4px; background: rgba(255,255,255,.06); transition: .4s; }.home-product-grid > a:hover { transform: translateY(-9px); border-color: rgba(130,202,255,.5); background: rgba(0,144,255,.14); box-shadow: 0 25px 55px rgba(0,0,0,.2); }.home-product-image { position: relative; height: 300px; overflow: hidden; border-radius: 13px 3px 13px 3px; background: #fff; }.home-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s; }.home-product-grid > a:hover img { transform: scale(1.06); }.home-product-image span { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--blue-600); font-size: 9px; }.home-product-grid small { display: block; margin-top: 19px; color: var(--blue-300); font-size: 10px; font-weight: 800; }.home-product-grid h3 { min-height: 52px; margin: 8px 0 15px; font-size: 18px; line-height: 1.45; }.home-product-grid b { color: rgba(235,247,255,.55); font-size: 11px; }
.home-innovation { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; padding-top: 115px; padding-bottom: 115px; }.innovation-card { position: relative; min-height: 420px; overflow: hidden; padding: 48px; color: #fff; border-radius: 26px 5px 26px 5px; box-shadow: var(--shadow); transition: transform .4s; }.innovation-card:hover { transform: translateY(-8px); }.technology-card { background: linear-gradient(145deg,#0076d4,#0090ff 70%); }.health-card { background: linear-gradient(145deg,#0090ff,#42b1ff); }.innovation-card::before { content: ""; position: absolute; right: -80px; bottom: -100px; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }.innovation-card > div { position: relative; z-index: 1; max-width: 480px; }.innovation-card small { color: var(--blue-100); font-size: 9px; font-weight: 800; letter-spacing: 3px; }.innovation-card h2 { margin: 12px 0 18px; font-size: 44px; }.innovation-card p { color: rgba(255,255,255,.8); line-height: 1.9; }.innovation-card b { display: block; margin-top: 35px; font-size: 12px; }.innovation-card > span { position: absolute; right: -8px; top: 50px; color: rgba(255,255,255,.1); font-size: 76px; font-weight: 900; letter-spacing: -4px; }
.home-news { padding: 110px 0 125px; background: var(--blue-50); }.home-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }.home-news-grid > a { overflow: hidden; border: 1px solid var(--line); border-radius: 20px 4px 20px 4px; background: #fff; box-shadow: 0 13px 34px rgba(0,72,135,.07); transition: .4s; }.home-news-grid > a:hover { transform: translateY(-8px); box-shadow: 0 25px 58px rgba(0,72,135,.15); }.home-news-image { position: relative; height: 260px; overflow: hidden; }.home-news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }.home-news-grid > a:hover img { transform: scale(1.06); }.home-news-image span { position: absolute; left: 16px; top: 16px; padding: 8px 11px; color: #fff; border-radius: 7px; background: var(--blue-600); font-size: 9px; font-weight: 800; letter-spacing: 1px; }.home-news-grid > a > div:last-child { padding: 25px 26px 28px; }.home-news-grid small { color: var(--blue-600); font-size: 10px; font-weight: 800; }.home-news-grid h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 59px; margin: 10px 0 13px; color: var(--ink); font-size: 20px; line-height: 1.48; }.home-news-grid p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; min-height: 69px; color: var(--muted); font-size: 13px; line-height: 1.75; }.home-news-grid b { color: var(--blue-700); font-size: 11px; }
-.home-cta { position: relative; overflow: hidden; padding: 105px 0; color: #fff; text-align: center; background: var(--blue-600); }.home-cta::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.25) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.25) 1px,transparent 1px); background-size: 58px 58px; }.home-cta-orbit { position: absolute; width: 520px; height: 520px; right: -220px; top: -260px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }.home-cta .container { position: relative; z-index: 1; }.home-cta small { font-size: 9px; font-weight: 800; letter-spacing: 4px; }.home-cta h2 { max-width: 900px; margin: 16px auto 18px; font-size: clamp(38px,5vw,62px); line-height: 1.2; letter-spacing: -3px; }.home-cta p { color: rgba(255,255,255,.78); }.home-cta a { display: inline-flex; align-items: center; gap: 28px; margin-top: 25px; padding: 15px 22px; color: var(--blue-800); border-radius: 11px; background: #fff; box-shadow: 0 16px 35px rgba(0,44,85,.2); font-size: 13px; font-weight: 800; transition: transform .3s; }.home-cta a:hover { transform: translateY(-4px); }
+.home-cta { position: relative; overflow: hidden; padding: 112px 0 118px; color: var(--ink); text-align: center; border-top: 1px solid rgba(0,144,255,.1); background: linear-gradient(145deg,#f8fcff 0%,#eaf6ff 52%,#dcefff 100%); }
+.home-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 16% 25%,rgba(0,144,255,.12),transparent 28%),linear-gradient(rgba(0,144,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(0,144,255,.055) 1px,transparent 1px); background-size: auto,58px 58px,58px 58px; }
+.home-cta-orbit { position: absolute; width: 520px; height: 520px; right: -220px; top: -260px; border: 1px solid rgba(0,144,255,.22); border-radius: 50%; box-shadow: 0 0 0 72px rgba(0,144,255,.035),0 0 0 144px rgba(0,144,255,.025); }
+.home-cta .container { position: relative; z-index: 1; }
+.home-cta small { color: var(--blue-600); font-size: 9px; font-weight: 800; letter-spacing: 4px; }
+.home-cta h2 { max-width: 900px; margin: 16px auto 18px; color: var(--ink); font-size: clamp(38px,5vw,62px); line-height: 1.2; letter-spacing: -3px; }
+.home-cta p { color: #587087; }
+.home-cta a { display: inline-flex; align-items: center; gap: 28px; margin-top: 25px; padding: 15px 24px; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; background: linear-gradient(135deg,#0077d5,#0090ff); box-shadow: 0 16px 35px rgba(0,112,210,.24); font-size: 13px; font-weight: 800; transition: transform .3s,box-shadow .3s; }
+.home-cta a:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(0,112,210,.32); }
/* Original homepage, recolored without changing its content */
.home-original { padding-top: 82px; background: var(--blue-50); }
@@ -715,6 +717,8 @@ main { min-height: 72vh; }
.footer-inner a:hover { color: #fff; transform: translateX(15px); }
.footer-inner a:hover::before { width: 9px; }
.copyright { position: relative; z-index: 1; width: min(1360px,calc(100% - 56px)); margin: 60px auto 0; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(216,238,255,.12); color: rgba(216,238,255,.38); font-size: 10px; letter-spacing: 1px; opacity: 0; transform: translateY(18px); transition: opacity .7s ease .34s, transform .8s cubic-bezier(.2,.8,.2,1) .34s; }
+.copyright a { color: rgba(216,238,255,.55); transition: color .25s ease; }
+.copyright a:hover { color: #fff; }
.site-footer.footer-visible::before { animation: footerGridDrift 10s linear infinite alternate; }
.footer-visible .footer-inner > div,.footer-visible .copyright { opacity: 1; transform: translateY(0); }
.footer-visible .footer-orbit { opacity: 1; transform: scale(1); }
@@ -758,10 +762,6 @@ main { min-height: 72vh; }
.dropdown::before, .dropdown-label { display: none; }
.dropdown a { display: inline-block; margin-right: 18px; padding: 9px 0; font-size: 14px; }
.dropdown a::before { display: none; }
- .dropdown-mega { width: 100%; padding-left: 18px; }
- .dropdown .dropdown-group-title { display: block; margin: 0; padding: 10px 0; background: transparent; }
- .dropdown-groups { display: block; }
- .dropdown-group { margin: 5px 0 10px; padding: 8px 10px; }
.home-original { padding-top: 70px; }
.page-hero { height: 400px; padding-top: 70px; }
.scroll-cue { display: none; }
@@ -844,7 +844,7 @@ main { min-height: 72vh; }
.footer-brand { grid-column: 1 / -1; }
.footer-inner > div:last-child { grid-column: auto; }
.copyright { width: calc(100% - 36px); display: block; line-height: 2; }
- .copyright span { display: block; }
+ .copyright > * { display: block; }
.home-hero { min-height: 760px; }
.home-hero-shade,.home-hero-grid { display: none; }
.home-hero-shade { background: linear-gradient(90deg,rgba(0,99,183,.92),rgba(0,144,255,.7)),linear-gradient(0deg,rgba(0,111,201,.68),transparent 60%); }
@@ -905,3 +905,134 @@ main { min-height: 72vh; }
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.reveal { opacity: 1; transform: none; }
}
+.sports-results-entry > a { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.2rem; padding: .9rem 1.5rem; background: #dfff32; color: #192118; font-weight: 800; text-decoration: none; }
+.sports-results-nav { display: flex; gap: .8rem; align-items: center; text-decoration: none; }
+.competition-page { min-height: 100vh; background: #101512; color: #f3f5ec; }
+.competition-page button, .competition-page select, .competition-page input { font: inherit; }
+.competition-page button { cursor: pointer; }
+.competition-page :focus-visible { outline: 3px solid #dfff32; outline-offset: 3px; }
+.competition-hero { position: relative; overflow: hidden; min-height: 370px; background: radial-gradient(circle at 77% 15%, #536b2c 0, transparent 35%), linear-gradient(125deg, #151e17, #11140f 70%); border-bottom: 1px solid #354339; }
+.competition-hero::after { content: '26'; position: absolute; right: 5%; bottom: -7rem; font: 900 clamp(15rem, 32vw, 36rem)/1 Arial, sans-serif; letter-spacing: -.12em; color: rgba(216, 255, 119, .055); pointer-events: none; }
+.competition-hero-inner { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 3rem; }
+.competition-back { color: #d5ecb9; text-decoration: none; font-size: .9rem; }
+.competition-kicker { margin-top: 3rem; color: #dfff32; font-size: .76rem; letter-spacing: .28em; font-weight: 800; }
+.competition-hero h1 { margin: .5rem 0 .2rem; font-size: clamp(3rem, 8vw, 6rem); line-height: 1.1; letter-spacing: -.06em; }
+.competition-hero p { margin: 0; color: #b8c4b4; font-size: 1.1rem; }
+.competition-hero-actions { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.3rem; }
+.competition-status { border: 1px solid #657261; border-radius: 999px; padding: .45rem .8rem; color: #c4ccbf; font-size: .74rem; letter-spacing: .12em; }
+.competition-status.live { color: #dcff77; border-color: #a5c337; }
+.competition-language { display: flex; padding: .2rem; border: 1px solid #61765a; border-radius: 999px; }
+.competition-language button { border: 0; background: transparent; color: #e7f0dd; padding: .3rem .8rem; border-radius: 999px; }
+.competition-language button[aria-pressed='true'] { background: #dfff32; color: #172016; font-weight: 800; }
+.competition-body { padding-top: 2rem; padding-bottom: 6rem; }
+.competition-message { padding: .8rem 1rem; border: 1px solid #556551; background: #1e291e; color: #d5e2ce; }
+.competition-message.error { border-color: #b46c55; color: #ffd7cd; }
+.competition-message button { margin-left: .8rem; color: inherit; border: 0; background: transparent; text-decoration: underline; }
+.competition-notice { display: flex; align-items: center; gap: 1.4rem; max-width: 100%; padding: 1rem 1.2rem; background: #dfff32; color: #1c2519; }
+.competition-notice > strong { flex: none; font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
+.competition-notice-viewport { flex: 1; min-width: 0; overflow: hidden; }
+.competition-notice-track { display: flex; width: max-content; }
+.competition-notice-track p { flex: none; margin: 0; white-space: nowrap; }
+.competition-notice-track p span { display: inline-block; }
+.competition-notice-track.scrolling p { padding-right: 4rem; }
+.competition-notice-track.scrolling { animation: competition-notice-scroll var(--notice-duration) linear infinite; }
+@keyframes competition-notice-scroll { to { transform: translateX(-50%); } }
+.competition-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #3c4a3f; margin: 2rem 0 3rem; }
+.competition-tabs button, .competition-subtabs button { flex: none; border: 0; background: transparent; color: #aab8a9; padding: .9rem 1.4rem; }
+.competition-tabs button.active { color: #eaffad; border-bottom: 3px solid #dfff32; font-weight: 800; }
+.competition-section-head { margin-bottom: 2rem; }
+.competition-section-head small { color: #dfff32; font-weight: 800; letter-spacing: .2em; }
+.competition-section-head h2 { margin: .45rem 0; font-size: clamp(2rem, 5vw, 3.6rem); }
+.competition-meta-grid, .competition-live-grid, .competition-result-grid, .competition-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
+.competition-meta-grid > div, .competition-live-grid > article, .competition-result-card, .competition-record-grid > article { border: 1px solid #3a493d; background: #1a221c; }
+.competition-meta-grid > div { min-height: 100px; padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
+.competition-meta-grid small, .competition-live-grid small, .competition-result-card small { color: #a9bb9f; font-size: .73rem; letter-spacing: .15em; }
+.competition-meta-grid strong { font-size: 1.12rem; }
+.competition-live-grid { margin-top: 1.3rem; }
+.competition-live-grid article { min-height: 190px; padding: 1.4rem; }
+.competition-live-grid h3 { font-size: 1.5rem; margin: 1.2rem 0 .4rem; }
+.competition-live-grid p { color: #aab8a9; }
+.competition-pulse { display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: #dfff32; box-shadow: 0 0 0 5px #dfff3229; }
+.competition-upcoming { display: flex; gap: 1rem; border-top: 1px solid #354638; padding: .6rem 0; }
+.competition-upcoming:first-of-type { margin-top: 1rem; }
+.competition-upcoming b { color: #dfff32; font-variant-numeric: tabular-nums; }
+.competition-schedule { margin-top: 3rem; }
+.competition-schedule h3 { font-size: 1.6rem; }
+.competition-schedule > div { display: grid; grid-template-columns: 6rem 1fr 1fr; gap: 1rem; align-items: center; border-top: 1px solid #3a493d; padding: 1rem; }
+.competition-schedule > div.current { background: #263321; }
+.competition-schedule time { color: #dfff32; font-weight: 800; font-variant-numeric: tabular-nums; }
+.competition-schedule span { color: #aab8a9; }
+.competition-subtabs { display: flex; gap: .3rem; margin-bottom: 1.6rem; }
+.competition-subtabs button { border: 1px solid #53634f; padding: .55rem 1rem; }
+.competition-subtabs button.active { background: #dfff32; border-color: #dfff32; color: #1c2719; font-weight: 800; }
+.competition-filter { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
+.competition-filter select, .competition-search input { border: 1px solid #68766a; background: #19231b; color: #fff; padding: .7rem 1rem; }
+.competition-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+.competition-result-card { padding: 1.4rem; }
+.competition-result-card header { border-bottom: 1px solid #3a493d; margin-bottom: .5rem; padding-bottom: .8rem; }
+.competition-result-card h3 { font-size: 1.4rem; margin: .35rem 0 0; }
+.competition-rank-row { display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid #354139; padding: .65rem .15rem; }
+.competition-rank-row > b { width: 2.2rem; color: #dfff32; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
+.competition-rank-row > span { flex: 1; overflow-wrap: anywhere; }
+.competition-rank-row > strong { font-variant-numeric: tabular-nums; }
+.competition-result-card > button { border: 0; background: transparent; color: #dfff32; padding: 1rem 0 .1rem; font-weight: 800; }
+.competition-empty { padding: 3rem 1rem; color: #bcc9b8; text-align: center; border: 1px dashed #526352; }
+.competition-search { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
+.competition-search input { max-width: 430px; }
+.competition-player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
+.competition-player-card { display: flex; align-items: center; gap: 1rem; text-align: left; border: 1px solid #3a493d; background: #1a221c; color: #f3f5ec; padding: .7rem; }
+.competition-player-card img { width: 70px; height: 84px; object-fit: cover; }
+.competition-player-card span { flex: 1; min-width: 0; }
+.competition-player-card small { display: block; color: #aab8a9; }
+.competition-player-card strong { display: block; margin-top: .3rem; }
+.competition-player-card b { color: #dfff32; }
+.competition-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+.competition-record-grid article { display: flex; min-height: 200px; }
+.competition-record-grid img { width: 38%; object-fit: cover; }
+.competition-record-grid article > div { padding: 1.3rem; }
+.competition-record-grid small { color: #aab8a9; }
+.competition-record-grid strong { display: block; margin: .5rem 0; color: #dfff32; font: 800 clamp(2rem, 5vw, 4rem)/1 Arial, sans-serif; }
+.competition-record-grid h3 { margin: 0; }
+.battle-event { margin-bottom: 3rem; overflow-x: auto; padding-bottom: .5rem; }
+.battle-event > h3 { margin: 0 0 1.2rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
+.battle-board { position: relative; }
+.battle-board.landscape { display: grid; gap: 1.5rem; height: clamp(510px, 43vw, 700px); }
+.battle-column { display: flex; flex-direction: column; min-width: 0; }
+.battle-column h4, .battle-stage h4 { position: relative; z-index: 1; margin: 0 0 .8rem; padding: .6rem .4rem; border: 1px solid #53624d; border-radius: 999px; background: #253124; color: #e8f5d1; font-size: .76rem; font-weight: 800; text-align: center; letter-spacing: .06em; }
+.battle-column.is-final h4 { border-color: #dfff32; background: #34451f; color: #dfff32; }
+.battle-column-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .55rem; }
+.battle-match { position: relative; z-index: 1; min-width: 0; overflow: hidden; border: 1px solid #607054; border-radius: 10px; background: #1d281e; box-shadow: 0 8px 24px #0005; }
+.battle-match > div { display: flex; align-items: center; gap: .45rem; min-height: 3rem; padding: .35rem .5rem; border-bottom: 1px solid #3c4d3e; color: #d6e2d2; }
+.battle-match > div:last-child { border-bottom: 0; }
+.battle-match > div.winner { background: linear-gradient(90deg, #435f27, #304522); color: #f1ffd1; box-shadow: inset 3px 0 #dfff32; }
+.battle-match img { flex: none; width: 30px; height: 30px; border: 1px solid #769270; border-radius: 50%; object-fit: cover; }
+.battle-match span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(.68rem, .85vw, .88rem); line-height: 1.25; overflow-wrap: anywhere; }
+.battle-match b { flex: none; display: grid; place-items: center; min-width: 1.8rem; min-height: 1.8rem; padding: 0 .25rem; border-radius: 5px; background: #344134; color: #f5f8f0; font-size: .83rem; font-variant-numeric: tabular-nums; }
+.battle-match .winner b { background: #dfff32; color: #243112; }
+.battle-column.is-final .battle-match { border-color: #dfff32; box-shadow: 0 0 0 1px #dfff3240, 0 12px 30px #0007; }
+.battle-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
+.battle-lines path { fill: none; stroke: #70836c; stroke-width: 1.5; stroke-linecap: round; opacity: .65; }
+.battle-lines circle { fill: #70836c; opacity: .8; }
+.battle-lines .advanced path { stroke: #b7d96a; stroke-width: 2; opacity: .9; }
+.battle-lines .advanced circle { fill: #c5ed70; opacity: 1; }
+.battle-board.portrait { display: flex; flex-direction: column; gap: 3.25rem; }
+.battle-board.portrait > .battle-stage::after, .battle-board.portrait > .battle-champion::after { content: ''; position: absolute; left: 50%; bottom: -2.55rem; width: 2px; height: 2rem; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(#6f8d5c, #a8c86a); opacity: .85; }
+.battle-board.portrait > .battle-stage::before, .battle-board.portrait > .battle-champion::before { content: ''; position: absolute; left: 50%; bottom: -1.75rem; z-index: 1; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: #b7d96a; }
+.battle-board.portrait > :last-child::before, .battle-board.portrait > :last-child::after { display: none; }
+.battle-stage { position: relative; z-index: 1; }
+.battle-stage h4 { width: fit-content; min-width: 9rem; margin: 0 auto .8rem; }
+.battle-stage-matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .7rem; }
+.battle-stage .battle-match span { font-size: .83rem; }
+.battle-champion { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; width: min(100%, 340px); margin: 0 auto; padding: 1.4rem; border: 2px solid #dfff32; border-radius: 16px; background: radial-gradient(circle at 50% 0, #4a6028, #243222 75%); box-shadow: 0 0 28px #dfff3226, 0 16px 36px #0007; text-align: center; }
+.battle-champion small { color: #dfff32; font-weight: 800; letter-spacing: .16em; }
+.battle-champion > img { width: 68px; height: 68px; border: 2px solid #dfff32; border-radius: 50%; object-fit: cover; }
+.battle-champion strong { color: #f5ffd9; font-size: 1.3rem; }
+.battle-final-match { width: 100%; text-align: left; }
+.competition-modal-wrap { position: fixed; z-index: 1000; inset: 0; overflow-y: auto; background: #000b; padding: 3rem 1rem; }
+.competition-modal { position: relative; width: min(100%, 740px); max-height: calc(100vh - 6rem); overflow-y: auto; margin: auto; padding: 2rem; background: #1c251d; border: 1px solid #7b9369; box-shadow: 0 20px 80px #0008; }
+.competition-modal-close { position: absolute; right: 1rem; top: .7rem; border: 0; background: transparent; color: #fff; font-size: 2rem; }
+.competition-modal > small { color: #dfff32; letter-spacing: .16em; }
+.competition-modal h2 { margin: .5rem 2rem 1.5rem 0; }
+.competition-profile-photo { width: 110px; height: 135px; object-fit: cover; display: block; margin-bottom: 1rem; }
+@media (max-width: 760px) { .competition-meta-grid, .competition-live-grid, .competition-result-grid, .competition-player-grid, .competition-record-grid { grid-template-columns: 1fr; } .competition-schedule > div { grid-template-columns: 4rem 1fr; } .competition-schedule span { grid-column: 2; } .competition-hero-inner { padding-top: 2rem; } .competition-kicker { margin-top: 2rem; } }
+@media (prefers-reduced-motion: reduce) { .competition-page *, .competition-page *::before, .competition-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } .competition-notice-viewport { overflow-x: auto; } }
diff --git a/src/views/CompetitionResultsPage.vue b/src/views/CompetitionResultsPage.vue
new file mode 100644
index 0000000..070b7a3
--- /dev/null
+++ b/src/views/CompetitionResultsPage.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
{{ english ? 'Read-only snapshot. Live updates are unavailable.' : '当前为静态只读数据,实时更新暂不可用。' }}
+
{{ error }}
+
NOTICE{{ noticeText }}
{{ noticeText }}
+
+
+
+
+ 01 / EVENT
{{ english ? 'Event information' : '赛事信息' }}
+
+
+
{{ english ? 'NOW COMPETING' : '正在进行' }}{{ scheduleItem(state.schedule?.currentId)?.name || '—' }}
{{ scheduleItem(state.schedule?.currentId)?.detail || '' }}
+
{{ english ? 'CHECK-IN' : '正在检录' }}{{ scheduleItem(state.schedule?.callingId)?.name || '—' }}
{{ scheduleItem(state.schedule?.callingId)?.detail || '' }}
+
{{ english ? 'UP NEXT' : '即将开始' }}{{ item.time }}{{ item.name }}
—
+
+ {{ english ? 'Schedule' : '赛事日程' }}
{{ item.name }}{{ item.detail }}
+ {{ english ? 'Schedule information will appear after publication.' : '赛程信息发布后将在这里显示。' }}
+
+
+
+ 02 / RESULTS
{{ english ? 'Official results' : '赛事成绩' }}
+
+
+
+ OFFICIAL RANKING{{ english ? event.en : event.zh }}
{{ entry[event.rank] ?? '—' }}{{ playerName(entry.playerId) }}{{ entry[event.score] ?? '—' }}
+ {{ english ? 'No overall results published.' : '暂无已发布的全能赛成绩。' }}
+
+ CHALLENGE{{ localized(challenge, 'name') }}
{{ entry.rank ?? '—' }}{{ playerName(entry.playerId) }}{{ entry.score ?? '—' }} {{ localized(challenge, 'unit') }}
{{ english ? 'No challenge results published.' : '暂无已发布的挑战赛成绩。' }}
+
{{ english ? 'No Battle draw published.' : '暂无已发布的 Battle 对阵。' }}
+
+
+
+
+
04 / RECORDS
{{ english ? 'Event records' : '赛会纪录' }}
![]()
{{ localized(record, 'event') }}{{ record.score }}{{ localized(record, 'name') }}
{{ record.year }}
{{ english ? 'No event records published.' : '暂无已发布的赛会纪录。' }}
+
+
+
OFFICIAL RESULTS{{ rankingModal.title }}
{{ entry.rank ?? entry[rankingModal.rank] ?? '—' }}{{ playerName(entry.playerId) }}{{ entry.score ?? entry[rankingModal.score] ?? '—' }}
{{ english ? 'No results.' : '暂无成绩。' }}
{{ selectedPlayer.id }} · {{ selectedPlayer.group }} {{ gender(selectedPlayer.gender) }}{{ playerName(selectedPlayer.id) }}
{{ selectedPlayer.note || '' }}
{{ item.label }}{{ item.score }} · #{{ item.rank ?? '—' }}
+
+
+
+
diff --git a/vite.config.mjs b/vite.config.mjs
index 481720d..7ae41e0 100644
--- a/vite.config.mjs
+++ b/vite.config.mjs
@@ -3,5 +3,8 @@ import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
- server: { host: '0.0.0.0' }
+ server: {
+ host: '0.0.0.0',
+ proxy: { '/api/competition': { target: process.env.COMPETITION_API_TARGET || 'http://localhost:8787', changeOrigin: true } }
+ }
});