Files
nba-fan-hub/static/detail.html
T

80 lines
4.3 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>详情 - NBA球迷大全</title>
<link rel="stylesheet" href="/static/style.css">
<style>
.detail-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.back-btn { background: var(--bg2); border: 1px solid var(--line); color: var(--txt); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 13.5px; }
.back-btn:hover { border-color: var(--orange2); color: var(--orange2); }
.detail-title { font-size: 24px; font-weight: 800; }
.detail-title .en { color: var(--sub); font-size: 14px; font-weight: 400; margin-left: 8px; }
.detail-sub { color: var(--sub); font-size: 13.5px; margin-top: 4px; }
.hero { background: linear-gradient(135deg, #1a120b, #1c2333); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-bottom: 18px; }
.hero .big { font-size: 26px; font-weight: 800; background: linear-gradient(90deg, #fb923c, #f97316, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 14px; margin: 16px 0; }
.kv div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kv .k { color: var(--sub); font-size: 11.5px; display: block; }
.kv .v { font-size: 14.5px; font-weight: 600; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.section h3 { font-size: 15.5px; color: var(--orange2); margin-bottom: 12px; }
.section .txt { font-size: 14px; line-height: 1.9; color: #c9d4e0; }
.xlink { color: var(--blue); text-decoration: none; }
.xlink:hover { text-decoration: underline; color: var(--orange2); }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; flex-wrap: wrap; }
.row-item:last-child { border-bottom: none; }
.num-badge { color: var(--orange2); font-weight: 700; }
.win { color: var(--green); font-weight: 700; }
.lose { color: var(--sub); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 11px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
th { background: var(--bg2); color: var(--sub); font-size: 12px; }
td.num { text-align: center; }
.score-head { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 22px; margin: 10px 0 6px; flex-wrap: wrap; }
.score-head .s { font-weight: 800; font-size: 30px; }
.news-body { line-height: 2; font-size: 14.5px; color: #c9d4e0; white-space: pre-wrap; }
.season-pill { display: inline-block; background: rgba(56,189,248,.1); color: var(--blue); border-radius: 999px; padding: 2px 10px; font-size: 12px; margin: 2px 4px 2px 0; }
.loading { text-align: center; color: var(--sub); padding: 80px 0; font-size: 15px; }
</style>
</head>
<body>
<header class="topbar">
<div class="logo">
<span class="logo-ball">🏀</span>
<div>
<h1 id="site-name">NBA球迷大全</h1>
<p class="sub">详情页</p>
</div>
</div>
<nav class="tabs">
<a class="tab" href="/">💬 对话</a>
<a class="tab" href="/#/teams">🏟️ 球队</a>
<a class="tab" href="/#/players">⭐ 球员</a>
<a class="tab" href="/#/games">📅 比赛</a>
<a class="tab" href="/#/news">📰 新闻</a>
<a class="tab" href="/#/persons">👥 人物</a>
<a class="tab" href="/#/standings">🏆 排名</a>
</nav>
</header>
<main>
<div class="detail-bar">
<button class="back-btn" onclick="history.length > 1 ? history.back() : (location.href='/')">← 返回</button>
<div id="crumb"></div>
</div>
<div id="detail-body"><div class="loading">⏳ 加载中…</div></div>
</main>
<footer class="footer" id="footer-text">NBA球迷大全 · 数据为模拟演示数据</footer>
<script>
fetch("/api/boot").then(r => r.json()).then(b => {
if (b.site_name) { document.title = b.site_name + " · 详情"; document.getElementById("site-name").textContent = b.site_name; }
if (b.footer_text) document.getElementById("footer-text").textContent = b.footer_text;
}).catch(() => {});
</script>
<script src="/static/detail.js"></script>
</body>
</html>