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.
 
 

681 lines
24 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-card-hover: 0 6px 20px rgba(0, 0, 0, 0.06);
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}
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: var(--youth-text-primary);
background: var(--youth-bg-page);
position: relative;
z-index: 30;
}
.status-bar .right-icons {
display: flex;
align-items: center;
gap: 6px;
}
.status-bar svg {
width: 16px;
height: 16px;
}
/* ===== 顶部导航栏 ===== */
.top-nav {
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
background: var(--youth-bg-page);
position: relative;
z-index: 20;
}
.nav-icon-btn {
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
cursor: pointer;
transition: all 0.15s ease;
color: var(--youth-text-primary);
}
.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: var(--youth-text-primary);
}
.nav-right-group {
display: flex;
align-items: center;
gap: 4px;
}
/* ===== 分类 Tab 栏 ===== */
.sort-tabs {
display: flex;
align-items: center;
height: 40px;
padding: 0 16px;
gap: 20px;
background: var(--youth-bg-page);
border-bottom: 1px solid var(--youth-border-light);
}
.sort-tab {
position: relative;
font-size: 14px;
color: var(--youth-text-tertiary);
cursor: pointer;
padding: 10px 0;
transition: color 0.2s ease;
}
.sort-tab.active {
color: var(--youth-primary);
font-weight: 600;
}
.sort-tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 3px;
border-radius: 2px;
background: linear-gradient(90deg, #26C2BB, #54CAC5);
}
/* ===== 滚动内容区 ===== */
.scroll-content {
position: absolute;
top: 108px;
left: 0;
right: 0;
bottom: 0;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.scroll-content::-webkit-scrollbar {
display: none;
}
/* ===== 话题列表项 ===== */
.topic-list {
padding: 0 16px;
}
.topic-list-item {
display: flex;
align-items: center;
padding: 14px 0;
border-bottom: 1px solid var(--youth-border-light);
gap: 12px;
cursor: pointer;
transition: opacity 0.15s ease;
}
.topic-list-item:last-child {
border-bottom: none;
}
.topic-list-item:active {
opacity: 0.7;
}
.topic-list-icon {
width: 48px;
height: 48px;
border-radius: var(--youth-radius-sm);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.topic-list-icon svg {
width: 24px;
height: 24px;
stroke-width: 2px;
color: #FFFFFF;
}
.topic-list-content {
flex: 1;
min-width: 0;
}
.topic-list-name {
font-size: 15px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topic-list-desc {
font-size: 12px;
color: var(--youth-text-tertiary);
margin-bottom: 6px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topic-list-meta {
display: flex;
align-items: center;
gap: 12px;
font-size: 11px;
color: var(--youth-text-tertiary);
}
.topic-list-meta span {
display: flex;
align-items: center;
gap: 3px;
}
.topic-list-meta svg {
width: 11px;
height: 11px;
stroke-width: 2px;
}
.topic-hot-tag {
display: inline-flex;
align-items: center;
height: 16px;
padding: 0 6px;
border-radius: 8px;
font-size: 10px;
font-weight: 500;
background: linear-gradient(135deg, #FFE5D9, #FFCCB3);
color: #E87040;
margin-left: 6px;
vertical-align: middle;
}
.topic-new-tag {
display: inline-flex;
align-items: center;
height: 16px;
padding: 0 6px;
border-radius: 8px;
font-size: 10px;
font-weight: 500;
background: linear-gradient(135deg, #E5F7F5, #D4F0ED);
color: var(--youth-primary);
margin-left: 6px;
vertical-align: middle;
}
.topic-follow-btn {
flex-shrink: 0;
height: 28px;
padding: 0 14px;
border-radius: var(--youth-radius-full);
background: var(--youth-primary);
color: #FFFFFF;
font-size: 12px;
font-weight: 500;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--shadow-btn);
transition: all 0.2s ease;
}
.topic-follow-btn.followed {
background: var(--youth-bg-page);
color: var(--youth-text-tertiary);
border: 1px solid var(--youth-border-light);
box-shadow: none;
}
.topic-follow-btn:active {
transform: scale(0.92);
}
/* ===== 话题颜色 ===== */
.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); }
.bg-job { background: linear-gradient(135deg, #B3E0FF, #4DA6FF); }
</style>
</head>
<body>
<div class="app-container">
<!-- 状态栏 -->
<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="openSearch()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</div>
</div>
</div>
<!-- 排序 Tab -->
<div class="sort-tabs">
<div class="sort-tab active" onclick="switchSort(this, 'hot')">最热</div>
<div class="sort-tab" onclick="switchSort(this, 'new')">最新</div>
<div class="sort-tab" onclick="switchSort(this, 'rising')">上升最快</div>
</div>
<!-- 滚动内容区 -->
<div class="scroll-content">
<div class="topic-list">
<div class="topic-list-item" onclick="openTopic('校园日常')">
<div class="topic-list-icon bg-daily">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2"></rect>
<line x1="16" y1="2" x2="16" y2="6"></line>
<line x1="8" y1="2" x2="8" y2="6"></line>
<line x1="3" y1="10" x2="21" y2="10"></line>
</svg>
</div>
<div class="topic-list-content">
<div class="topic-list-name">
#校园日常
<span class="topic-hot-tag">热门</span>
</div>
<div class="topic-list-desc">记录校园生活的每一天,分享青春时光</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
5.6万人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
12.8万动态
</span>
</div>
</div>
<div class="topic-follow-btn followed" onclick="event.stopPropagation(); toggleFollow(this)">已关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('宿舍生活')">
<div class="topic-list-icon bg-daily">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8"></path>
<path d="M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4"></path>
<path d="M12 4v16"></path>
</svg>
</div>
<div class="topic-list-content">
<div class="topic-list-name">
#宿舍生活
</div>
<div class="topic-list-desc">室友日常、宿舍改造、熬夜修仙</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
3.2万人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
6.5万动态
</span>
</div>
</div>
<div class="topic-follow-btn" onclick="event.stopPropagation(); toggleFollow(this)">关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('校园穿搭')">
<div class="topic-list-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="topic-list-content">
<div class="topic-list-name">
#校园穿搭
<span class="topic-new-tag">新晋</span>
</div>
<div class="topic-list-desc">每日OOTD,校园穿搭灵感分享</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
2.1万人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
4.2万动态
</span>
</div>
</div>
<div class="topic-follow-btn" onclick="event.stopPropagation(); toggleFollow(this)">关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('期末加油打卡挑战')">
<div class="topic-list-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="topic-list-content">
<div class="topic-list-name">
#期末加油打卡挑战
<span class="topic-hot-tag">爆</span>
</div>
<div class="topic-list-desc">期末复习打卡,互相监督一起冲</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
2.3万人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
8.9万动态
</span>
</div>
</div>
<div class="topic-follow-btn" onclick="event.stopPropagation(); toggleFollow(this)">关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('社团招新')">
<div class="topic-list-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="topic-list-content">
<div class="topic-list-name">
#社团招新
</div>
<div class="topic-list-desc">百团大战,寻找志同道合的伙伴</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
1.8万人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
3.2万动态
</span>
</div>
</div>
<div class="topic-follow-btn followed" onclick="event.stopPropagation(); toggleFollow(this)">已关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('校园八卦')">
<div class="topic-list-icon bg-music">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>
</svg>
</div>
<div class="topic-list-content">
<div class="topic-list-name">
#校园八卦
</div>
<div class="topic-list-desc">匿名吃瓜,校园趣事分享</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
1.5万人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
2.8万动态
</span>
</div>
</div>
<div class="topic-follow-btn" onclick="event.stopPropagation(); toggleFollow(this)">关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('兼职实习')">
<div class="topic-list-icon bg-job">
<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="topic-list-content">
<div class="topic-list-name">
#兼职实习
<span class="topic-new-tag">新</span>
</div>
<div class="topic-list-desc">校园周边兼职、实习内推信息</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
9,842人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
1.5万动态
</span>
</div>
</div>
<div class="topic-follow-btn" onclick="event.stopPropagation(); toggleFollow(this)">关注</div>
</div>
<div class="topic-list-item" onclick="openTopic('脱单交友')">
<div class="topic-list-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="topic-list-content">
<div class="topic-list-name">
#脱单交友
</div>
<div class="topic-list-desc">校园脱单墙,遇见对的人</div>
<div class="topic-list-meta">
<span>
<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>
</svg>
8,234人参与
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
1.2万动态
</span>
</div>
</div>
<div class="topic-follow-btn" onclick="event.stopPropagation(); toggleFollow(this)">关注</div>
</div>
</div>
</div>
</div>
<script>
function goBack() {
window.history.back();
}
function openSearch() {
window.location.href = 'search-home.html';
}
function openTopic(name) {
window.location.href = 'topic-detail.html?name=' + encodeURIComponent(name);
}
function switchSort(el, name) {
const tabs = document.querySelectorAll('.sort-tab');
tabs.forEach(function(t) { t.classList.remove('active'); });
el.classList.add('active');
}
function toggleFollow(el) {
if (el.classList.contains('followed')) {
el.classList.remove('followed');
el.textContent = '关注';
} else {
el.classList.add('followed');
el.textContent = '已关注';
}
}
</script>
</body>
</html>