You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

822 lines
27 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>青核 Youthome - 校园热搜榜</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="../colors_and_type.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
:root {
--radius-xs: 4px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 20px;
--radius-full: 9999px;
--height-btn: 44px;
--height-input: 44px;
--height-nav: 64px;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
}
html, body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-primary);
min-height: 100vh;
overflow-x: hidden;
}
.app-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
overflow: hidden;
}
/* ===== 状态栏 ===== */
.status-bar {
height: 24px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
font-size: 12px;
font-weight: 600;
color: #FFFFFF;
position: relative;
z-index: 30;
background: transparent;
}
.status-bar .right-icons {
display: flex;
align-items: center;
gap: 6px;
}
.status-bar svg {
width: 16px;
height: 16px;
}
/* ===== 顶部导航栏 ===== */
.top-nav {
position: absolute;
top: 24px;
left: 0;
right: 0;
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
z-index: 20;
}
.nav-icon-btn {
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
cursor: pointer;
transition: all 0.15s ease;
color: #FFFFFF;
}
.nav-icon-btn:active {
transform: scale(0.92);
}
.nav-icon-btn svg {
width: 22px;
height: 22px;
stroke-width: 2px;
}
.nav-title {
font-size: 17px;
font-weight: 600;
color: #FFFFFF;
}
.nav-right-group {
display: flex;
align-items: center;
gap: 4px;
}
/* ===== 榜单头部 ===== */
.rank-header {
background: linear-gradient(160deg, #FF8A65 0%, #FF6B35 40%, #E8552A 100%);
padding: 68px 20px 24px;
position: relative;
overflow: hidden;
}
.rank-header::before {
content: '';
position: absolute;
top: -50px;
right: -30px;
width: 180px;
height: 180px;
background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
border-radius: 50%;
}
.rank-header::after {
content: '';
position: absolute;
bottom: -40px;
left: -20px;
width: 140px;
height: 140px;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
border-radius: 50%;
}
.rank-header-title {
font-size: 22px;
font-weight: 700;
color: #FFFFFF;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 8px;
position: relative;
}
.rank-header-title svg {
width: 24px;
height: 24px;
stroke-width: 2px;
}
.rank-header-sub {
font-size: 12px;
color: rgba(255,255,255,0.8);
position: relative;
}
.rank-update-time {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 10px;
padding: 4px 10px;
background: rgba(255,255,255,0.2);
border-radius: var(--youth-radius-full);
font-size: 11px;
color: rgba(255,255,255,0.9);
position: relative;
}
.rank-update-time svg {
width: 12px;
height: 12px;
stroke-width: 2px;
}
/* ===== 榜单 Tab ===== */
.rank-tabs {
display: flex;
align-items: center;
padding: 0 20px;
gap: 24px;
margin-top: 16px;
position: relative;
}
.rank-tab {
font-size: 14px;
color: rgba(255,255,255,0.7);
padding: 6px 0;
cursor: pointer;
position: relative;
}
.rank-tab.active {
color: #FFFFFF;
font-weight: 600;
font-size: 16px;
}
/* ===== 榜单内容区 ===== */
.rank-content {
position: absolute;
top: 200px;
left: 0;
right: 0;
bottom: 0;
background: var(--youth-bg-page);
border-radius: 20px 20px 0 0;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.rank-content::-webkit-scrollbar {
display: none;
}
.rank-list {
padding: 8px 0;
}
.rank-item {
display: flex;
align-items: center;
padding: 14px 16px;
gap: 12px;
cursor: pointer;
transition: background 0.15s ease;
}
.rank-item:active {
background: var(--youth-bg-page);
}
.rank-item + .rank-item {
border-top: 1px solid var(--youth-border-light);
}
.rank-number {
width: 28px;
flex-shrink: 0;
font-size: 18px;
font-weight: 700;
text-align: center;
font-family: -apple-system, 'SF Pro Display', sans-serif;
}
.rank-number.top1 {
color: #FF6B35;
font-size: 20px;
}
.rank-number.top2 {
color: #FF9F45;
font-size: 19px;
}
.rank-number.top3 {
color: #FFC53D;
font-size: 18px;
}
.rank-number.normal {
color: var(--youth-text-tertiary);
font-size: 16px;
}
.rank-icon {
width: 40px;
height: 40px;
border-radius: var(--youth-radius-sm);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.rank-icon svg {
width: 20px;
height: 20px;
stroke-width: 2px;
color: #FFFFFF;
}
.rank-content-text {
flex: 1;
min-width: 0;
}
.rank-title {
font-size: 15px;
font-weight: 500;
color: var(--youth-text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 6px;
}
.rank-tag {
display: inline-flex;
align-items: center;
height: 16px;
padding: 0 6px;
border-radius: 8px;
font-size: 10px;
font-weight: 500;
flex-shrink: 0;
}
.rank-tag.hot {
background: linear-gradient(135deg, #FFE5D9, #FFCCB3);
color: #E87040;
}
.rank-tag.new {
background: linear-gradient(135deg, #E5F7F5, #D4F0ED);
color: var(--youth-primary);
}
.rank-tag.recommend {
background: linear-gradient(135deg, #E5EBFF, #D4DFFF);
color: #7085D0;
}
.rank-heat-row {
display: flex;
align-items: center;
gap: 10px;
}
.rank-heat {
font-size: 12px;
color: var(--youth-text-tertiary);
display: flex;
align-items: center;
gap: 4px;
}
.rank-heat svg {
width: 13px;
height: 13px;
stroke-width: 2px;
color: #FF6B35;
}
.rank-heat-bar {
flex: 1;
height: 4px;
background: #F0F0F0;
border-radius: 2px;
overflow: hidden;
max-width: 80px;
}
.rank-heat-fill {
height: 100%;
border-radius: 2px;
background: linear-gradient(90deg, #FFB088, #FF6B35);
}
.rank-trend {
font-size: 11px;
display: flex;
align-items: center;
gap: 2px;
flex-shrink: 0;
min-width: 40px;
justify-content: flex-end;
}
.rank-trend.up { color: #F5222D; }
.rank-trend.down { color: #52C41A; }
.rank-trend.flat { color: var(--youth-text-tertiary); }
.rank-trend svg {
width: 12px;
height: 12px;
}
/* ===== 话题颜色 ===== */
.bg-daily { background: linear-gradient(135deg, #A5E3E0, #54CAC5); }
.bg-study { background: linear-gradient(135deg, #B3C7FF, #7A95E8); }
.bg-food { background: linear-gradient(135deg, #FFD4A3, #FF9F45); }
.bg-sport { background: linear-gradient(135deg, #FFB3B3, #FF8080); }
.bg-music { background: linear-gradient(135deg, #D4B8FF, #A78BFA); }
.bg-photo { background: linear-gradient(135deg, #82DDF0, #36BFFA); }
.bg-travel { background: linear-gradient(135deg, #B3E5C8, #52C41A); }
.bg-love { background: linear-gradient(135deg, #FFB3D1, #FF80B3); }
.bg-club { background: linear-gradient(135deg, #FFE5A3, #FFC94D); }
</style>
</head>
<body>
<div class="app-container">
<!-- 榜单头部 -->
<div class="rank-header">
<!-- 状态栏 -->
<div class="status-bar">
<span>9:41</span>
<div class="right-icons">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9z"></path>
<path d="M5 12.55l2 2a7 7 0 0 1 10 0l2-2C15.14 9.14 8.87 9.14 5 12.55z"></path>
<path d="M8.5 16l3.5 3.5 3.5-3.5"></path>
</svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<rect x="1" y="6" width="18" height="12" rx="2"></rect>
<line x1="23" y1="10" x2="23" y2="14"></line>
</svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="7" width="18" height="12" rx="2"></rect>
<path d="M22 11V9a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2"></path>
<path d="M6 7V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"></path>
</svg>
</div>
</div>
<!-- 顶部导航栏 -->
<div class="top-nav">
<div class="nav-icon-btn" onclick="goBack()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</div>
<div class="nav-title">校园热搜榜</div>
<div class="nav-right-group">
<div class="nav-icon-btn" onclick="shareRank()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<circle cx="18" cy="5" r="3"></circle>
<circle cx="6" cy="12" r="3"></circle>
<circle cx="18" cy="19" r="3"></circle>
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
</svg>
</div>
</div>
</div>
<div class="rank-header-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
</svg>
校园热搜榜
</div>
<div class="rank-header-sub">每小时更新 · 基于本校用户实时讨论热度</div>
<div class="rank-update-time">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
更新于 09:30
</div>
<div class="rank-tabs">
<div class="rank-tab active" onclick="switchRankTab(this, 'hot')">热搜榜</div>
<div class="rank-tab" onclick="switchRankTab(this, 'rising')">飙升榜</div>
<div class="rank-tab" onclick="switchRankTab(this, 'new')">新晋榜</div>
</div>
</div>
<!-- 榜单内容 -->
<div class="rank-content">
<div class="rank-list">
<div class="rank-item" onclick="openTopic('期末加油打卡挑战')">
<span class="rank-number top1">1</span>
<div class="rank-icon bg-study">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#期末加油打卡挑战
<span class="rank-tag hot">爆</span>
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
23,456
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 95%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+15%
</div>
</div>
<div class="rank-item" onclick="openTopic('秋日校园摄影大赛')">
<span class="rank-number top2">2</span>
<div class="rank-icon bg-photo">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path>
<circle cx="12" cy="13" r="4"></circle>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#秋日校园摄影大赛
<span class="rank-tag new">新</span>
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
18,234
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 78%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+32%
</div>
</div>
<div class="rank-item" onclick="openTopic('图书馆自习打卡')">
<span class="rank-number top3">3</span>
<div class="rank-icon bg-study">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#图书馆自习打卡
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
15,678
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 67%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+8%
</div>
</div>
<div class="rank-item" onclick="openTopic('食堂美食测评')">
<span class="rank-number normal">4</span>
<div class="rank-icon bg-food">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2v20"></path>
<path d="M7 8v8a5 5 0 0 0 10 0V8"></path>
<path d="M7 8h10"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#食堂美食测评
<span class="rank-tag recommend">荐</span>
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
12,456
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 53%"></div></div>
</div>
</div>
<div class="rank-trend down">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
-3%
</div>
</div>
<div class="rank-item" onclick="openTopic('操场夜跑搭子')">
<span class="rank-number normal">5</span>
<div class="rank-icon bg-sport">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M6.5 6.5l11 11"></path>
<path d="M18 22l4-4"></path>
<path d="M2 6l4-4"></path>
<path d="M3 10l7-7"></path>
<path d="M14 21l7-7"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#操场夜跑搭子
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
9,842
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 42%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+12%
</div>
</div>
<div class="rank-item" onclick="openTopic('校园穿搭')">
<span class="rank-number normal">6</span>
<div class="rank-icon bg-love">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#校园穿搭
<span class="rank-tag new">新</span>
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
8,234
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 35%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+25%
</div>
</div>
<div class="rank-item" onclick="openTopic('社团招新')">
<span class="rank-number normal">7</span>
<div class="rank-icon bg-club">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#社团招新
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
7,567
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 32%"></div></div>
</div>
</div>
<div class="rank-trend flat">
—
</div>
</div>
<div class="rank-item" onclick="openTopic('音乐节')">
<span class="rank-number normal">8</span>
<div class="rank-icon bg-music">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 18V5l12-2v13"></path>
<circle cx="6" cy="18" r="3"></circle>
<circle cx="18" cy="16" r="3"></circle>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#校园音乐节
<span class="rank-tag hot">热</span>
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
6,890
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 29%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+5%
</div>
</div>
<div class="rank-item" onclick="openTopic('旅行搭子')">
<span class="rank-number normal">9</span>
<div class="rank-icon bg-travel">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#旅行搭子群
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
5,432
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 23%"></div></div>
</div>
</div>
<div class="rank-trend down">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
-2%
</div>
</div>
<div class="rank-item" onclick="openTopic('兼职实习')">
<span class="rank-number normal">10</span>
<div class="rank-icon bg-daily">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="7" width="20" height="14" rx="2"></rect>
<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>
</svg>
</div>
<div class="rank-content-text">
<div class="rank-title">
#兼职实习
<span class="rank-tag new">新</span>
</div>
<div class="rank-heat-row">
<span class="rank-heat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2s4 4 4 8a4 4 0 0 1-8 0c0-2 1-3 1-3s-1 5 3 5 3-3 3-5c0-3-3-5-3-5z"></path>
</svg>
4,567
</span>
<div class="rank-heat-bar"><div class="rank-heat-fill" style="width: 19%"></div></div>
</div>
</div>
<div class="rank-trend up">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
+18%
</div>
</div>
</div>
</div>
</div>
<script>
function goBack() {
window.history.back();
}
function openTopic(name) {
window.location.href = 'topic-detail.html?name=' + encodeURIComponent(name);
}
function shareRank() {
console.log('分享榜单');
}
function switchRankTab(el, name) {
const tabs = document.querySelectorAll('.rank-tab');
tabs.forEach(function(t) { t.classList.remove('active'); });
el.classList.add('active');
}
</script>
</body>
</html>