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.
 
 
 
 

1982 lines
72 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>话题详情 - 青核 Youthome</title>
<link rel="stylesheet" href="../css/design-system.css">
<style>
/* ===== App容器 ===== */
.app {
width: 1920px;
max-width: 100%;
height: 1080px;
margin: 0 auto;
display: flex;
position: relative;
overflow: hidden;
background: var(--bg-page);
box-sizing: border-box;
}
/* ===== 左侧固定侧边栏 ===== */
.sidebar {
width: 230px;
height: 100%;
background: var(--bg-sidebar);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
flex-shrink: 0;
position: relative;
z-index: 20;
box-sizing: border-box;
}
.sidebar-logo {
padding: 24px 20px 20px;
display: flex;
align-items: center;
gap: 10px;
border-bottom: 1px solid var(--border-light);
cursor: pointer;
flex-shrink: 0;
}
.sidebar-logo-icon {
width: 36px;
height: 36px;
border-radius: 10px;
background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
font-weight: 700;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(23, 176, 207, 0.25);
}
.sidebar-logo-text { display: flex; flex-direction: column; gap: 1px; }
.sidebar-logo-text .main { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sidebar-logo-text .sub { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }
.sidebar-nav {
flex: 1;
padding: 16px 12px 24px 12px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 2px;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.nav-section-title {
font-size: 11px;
font-weight: 600;
color: var(--text-tertiary);
padding: 12px 12px 8px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
user-select: none;
}
.nav-item:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-footer {
padding: 16px;
border-top: 1px solid var(--border-light);
flex-shrink: 0;
}
.sidebar-user {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
border-radius: 10px;
cursor: pointer;
transition: background var(--transition-fast);
}
.sidebar-user:hover { background: var(--bg-hover); }
.sidebar-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-light), var(--primary));
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 13px;
font-weight: 600;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-user-desc { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.sidebar-user-arrow {
width: 16px;
height: 16px;
color: var(--text-tertiary);
flex-shrink: 0;
margin-left: auto;
}
/* ===== 发布按钮 ===== */
.sidebar-publish {
padding: 12px 12px 8px;
flex-shrink: 0;
}
.publish-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 44px;
background: var(--primary);
color: #fff;
border-radius: 12px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all .2s ease;
box-shadow: 0 4px 12px rgba(23, 176, 207, 0.25);
}
.publish-btn:hover {
opacity: 0.92;
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(23, 176, 207, 0.35);
}
.publish-btn svg { width: 20px; height: 20px; }
.publish-btn .publish-arrow { width: 16px; height: 16px; opacity: 0.8; transition: transform .2s; }
.publish-btn:hover .publish-arrow { transform: translateY(1px); }
.publish-dropdown {
display: none;
margin-top: 6px;
background: var(--bg-card, #fff);
border: 1px solid var(--border-light, #eee);
border-radius: 12px;
padding: 6px;
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sidebar-publish:hover .publish-dropdown { display: block; }
.publish-option {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
transition: background .15s;
}
.publish-option:hover { background: var(--bg-hover, #f5f5f5); }
.publish-option svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.publish-option-title { font-size: 14px; font-weight: 600; color: var(--text-primary, #1a1a1a); }
.publish-option-desc { font-size: 11px; color: var(--text-tertiary, #999); margin-top: 2px; }
/* ===== 导航项角标 ===== */
.nav-item-label {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;
}
.nav-badge {
min-width: 18px;
height: 18px;
padding: 0 5px;
background: #FF4D4F;
color: #fff;
font-size: 11px;
font-weight: 600;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
/* ===== 右侧主区域 ===== */
.main-area {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
position: relative;
box-sizing: border-box;
overflow: hidden;
}
/* ===== 顶部操作栏 ===== */
.top-bar {
height: var(--topbar-height);
background: var(--bg-card);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1440px;
margin: 0 auto;
padding: 0 40px;
box-sizing: border-box;
flex-shrink: 0;
position: relative;
z-index: 15;
width: 100%;
}
.top-bar-left {
display: flex;
align-items: center;
gap: 16px;
}
.back-btn {
width: 36px;
height: 36px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
background: var(--bg-page);
border: 1px solid var(--border);
}
.back-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.back-btn svg { width: 18px; height: 18px; }
.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}
.breadcrumb a {
color: var(--text-secondary);
cursor: pointer;
transition: color var(--transition-fast);
}
.breadcrumb a:hover {
color: var(--primary);
}
.breadcrumb .separator {
color: var(--text-tertiary);
}
.breadcrumb .current {
color: var(--primary);
font-weight: 600;
}
.top-bar-right {
display: flex;
align-items: center;
gap: 12px;
}
.search-wrapper {
width: 320px;
position: relative;
}
.search-input {
width: 100%;
height: 40px;
padding: 0 16px 0 42px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-size: 14px;
color: var(--text-primary);
background: var(--bg-page);
transition: all var(--transition-fast);
outline: none;
font-family: inherit;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.search-input:focus {
border-color: var(--primary);
background: var(--bg-card);
box-shadow: 0 0 0 3px rgba(23, 176, 207, 0.12);
}
.search-input::placeholder { color: var(--text-placeholder); }
.search-icon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
color: var(--text-tertiary);
pointer-events: none;
}
.icon-btn {
width: 40px;
height: 40px;
border-radius: var(--radius-sm);
background: var(--bg-page);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all var(--transition-fast);
color: var(--text-secondary);
position: relative;
flex-shrink: 0;
}
.icon-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge {
position: absolute;
top: 6px;
right: 6px;
min-width: 16px;
height: 16px;
padding: 0 4px;
background: var(--error);
color: #fff;
font-size: 10px;
font-weight: 600;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #fff;
}
.avatar-btn {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-light), var(--primary));
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
border: 2px solid #fff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
transition: all var(--transition-fast);
flex-shrink: 0;
}
.avatar-btn:hover { transform: scale(1.05); }
/* ===== 主内容区 ===== */
.content-area {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
position: relative;
}
.content-area::-webkit-scrollbar { width: 8px; }
.content-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
/* ===== 内容容器 ===== */
.content-container {
max-width: 1440px;
margin: 0 auto;
padding: 0 40px;
box-sizing: border-box;
}
/* ===== 话题头部Banner ===== */
.topic-header {
max-width: 1440px;
height: 240px;
margin: 24px auto 0;
background: linear-gradient(135deg, #3FD5CE 0%, var(--primary) 50%, #1FA39E 100%);
padding: 32px 40px;
position: relative;
overflow: hidden;
border-radius: 12px;
box-sizing: border-box;
}
.topic-header::before {
content: '';
position: absolute;
top: -80px;
right: -60px;
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
border-radius: 50%;
}
.topic-header::after {
content: '';
position: absolute;
bottom: -50px;
left: 100px;
width: 200px;
height: 200px;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
border-radius: 50%;
}
.topic-header-content {
position: relative;
z-index: 1;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 40px;
}
.topic-info {
flex: 1;
min-width: 0;
}
.topic-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: var(--radius-full);
font-size: 12px;
color: white;
font-weight: 500;
margin-bottom: 10px;
}
.topic-badge svg { width: 14px; height: 14px; }
.topic-title {
font-size: 32px;
font-weight: 700;
color: white;
line-height: 1.2;
margin-bottom: 8px;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.topic-desc {
font-size: 14px;
color: rgba(255, 255, 255, 0.9);
line-height: 1.5;
margin-bottom: 16px;
max-width: 560px;
}
.topic-stats {
display: flex;
align-items: center;
gap: 32px;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 2px;
}
.stat-value {
font-size: 22px;
font-weight: 700;
color: white;
line-height: 1.2;
}
.stat-label {
font-size: 12px;
color: rgba(255, 255, 255, 0.8);
}
.topic-actions {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
padding-top: 40px;
}
.btn-follow {
padding: 0 28px;
height: 46px;
border-radius: var(--radius-full);
background: white;
color: var(--primary);
font-size: 15px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
display: flex;
align-items: center;
gap: 6px;
}
.btn-follow:hover {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.btn-follow.followed {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1.5px solid rgba(255, 255, 255, 0.5);
box-shadow: none;
}
.btn-share {
width: 46px;
height: 46px;
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.2);
border: 1.5px solid rgba(255, 255, 255, 0.5);
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.btn-share:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.05);
}
.btn-share svg { width: 20px; height: 20px; }
/* ===== Tab切换栏 ===== */
.topic-tabs-wrapper {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
max-width: 1440px;
margin: 0 auto;
padding: 0 40px;
position: sticky;
top: 0;
z-index: 10;
box-sizing: border-box;
}
.topic-tabs {
display: flex;
align-items: center;
gap: 32px;
height: 52px;
}
.topic-tab {
position: relative;
font-size: 15px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
padding: 14px 0;
transition: all 0.2s ease;
flex-shrink: 0;
user-select: none;
}
.topic-tab:hover {
color: var(--text-primary);
}
.topic-tab.active {
color: var(--primary);
font-weight: 600;
}
.topic-tab.active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 28px;
height: 3px;
background: var(--primary);
border-radius: 2px;
}
/* ===== 动态流 ===== */
.feed-container {
padding: 24px 40px 40px;
}
.feed-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 24px;
row-gap: 24px;
align-items: start;
}
/* ===== 动态卡片 ===== */
.post-card {
background: var(--bg-card);
border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
border: 1px solid var(--border-light);
overflow: hidden;
transition: all var(--transition-base);
cursor: pointer;
box-sizing: border-box;
}
.post-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-3px);
}
.post-header {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 18px 20px 14px;
}
.post-user { flex: 1; min-width: 0; }
.post-user-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 2px;
}
.post-username {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
}
.post-badge {
padding: 2px 6px;
background: var(--primary-bg);
color: var(--primary);
font-size: 10px;
font-weight: 600;
border-radius: 4px;
}
.post-meta {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--text-tertiary);
}
.post-school {
display: flex;
align-items: center;
gap: 3px;
}
.post-school svg { width: 12px; height: 12px; color: var(--primary); }
.post-more {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-tertiary);
cursor: pointer;
transition: all var(--transition-fast);
flex-shrink: 0;
}
.post-more:hover { background: var(--bg-hover); color: var(--text-secondary); }
.post-more svg { width: 18px; height: 18px; }
.post-content {
padding: 0 20px 16px;
font-size: 14px;
line-height: 1.65;
color: var(--text-secondary);
}
.post-content .topic-tag { color: var(--primary); font-weight: 500; }
.post-images {
display: grid;
gap: 2px;
margin: 0 20px 16px;
border-radius: 10px;
overflow: hidden;
}
.post-images.single { grid-template-columns: 1fr; }
.post-images.double { grid-template-columns: 1fr 1fr; }
.post-images.quad { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.img-item {
width: 100%;
aspect-ratio: 16 / 10;
overflow: hidden;
position: relative;
}
.post-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 0 20px 14px;
}
.post-tag {
padding: 4px 12px;
background: var(--primary-bg);
color: var(--primary);
font-size: 12px;
font-weight: 500;
border-radius: 6px;
}
.post-actions {
display: flex;
align-items: center;
padding: 12px 20px;
border-top: 1px solid var(--border-light);
gap: 8px;
}
.action-item {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 8px;
font-size: 13px;
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
user-select: none;
}
.action-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.action-item.liked { color: var(--error); }
.action-item svg { width: 18px; height: 18px; }
.action-item .count { font-weight: 500; }
.action-item.bookmark { margin-left: auto; }
/* ===== 加载更多 ===== */
.load-more {
margin-top: 32px;
display: flex;
justify-content: center;
}
.load-more-btn {
padding: 0 32px;
height: 44px;
border-radius: var(--radius-full);
background: var(--bg-card);
color: var(--text-secondary);
font-size: 14px;
font-weight: 500;
border: 1px solid var(--border);
cursor: pointer;
transition: all var(--transition-fast);
display: flex;
align-items: center;
gap: 8px;
}
.load-more-btn:hover {
border-color: var(--primary);
color: var(--primary);
background: var(--primary-bg);
}
.load-more-btn svg { width: 16px; height: 16px; }
/* ===== 话题页增强:双栏布局 ===== */
.topic-body {
display: grid;
grid-template-columns: 1fr 320px;
gap: 24px;
max-width: 1440px;
margin: 0 auto;
padding: 24px 40px 40px;
align-items: flex-start;
box-sizing: border-box;
}
.topic-main { min-width: 0; }
.topic-sidebar { width: 320px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.sidebar-widget {
background: var(--bg-card);
border-radius: 14px;
padding: 20px;
border: 1px solid var(--border-light);
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
box-sizing: border-box;
overflow: hidden;
}
.widget-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.widget-title { font-size: 15px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.widget-title-icon { width: 18px; height: 18px; color: var(--primary); }
.widget-more { font-size: 12px; color: var(--text-tertiary); cursor: pointer; }
.widget-more:hover { color: var(--primary); }
/* 活跃用户 */
.active-user-list { display: flex; flex-direction: column; gap: 12px; }
.active-user-item {
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
padding: 4px;
border-radius: 8px;
transition: background .15s;
}
.active-user-item:hover { background: var(--bg-page); }
.active-user-rank {
width: 20px;
height: 20px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
background: var(--bg-page);
color: var(--text-tertiary);
flex-shrink: 0;
}
.active-user-rank.top1 { background: linear-gradient(135deg, #FF6B6B, #FF8E8E); color: #fff; }
.active-user-rank.top2 { background: linear-gradient(135deg, #FF9F45, #FFBE7A); color: #fff; }
.active-user-rank.top3 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.active-user-avatar {
width: 36px; height: 36px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 14px; font-weight: 600;
flex-shrink: 0;
}
.active-user-info { flex: 1; min-width: 0; }
.active-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-user-desc { font-size: 11px; color: var(--text-tertiary); }
.active-user-follow {
flex-shrink: 0;
width: 28px; height: 28px;
border-radius: 50%;
background: var(--primary-bg);
color: var(--primary);
display: flex; align-items: center; justify-content: center;
cursor: pointer;
transition: all .2s;
}
.active-user-follow:hover { background: var(--primary); color: #fff; }
.active-user-follow svg { width: 14px; height: 14px; }
/* 相关话题 */
.related-topic-list { display: flex; flex-direction: column; gap: 10px; }
.related-topic-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 10px;
cursor: pointer;
transition: all .15s;
border: 1px solid transparent;
}
.related-topic-item:hover { background: var(--bg-page); border-color: var(--border-light); }
.related-topic-icon {
width: 36px; height: 36px; border-radius: 10px;
background: linear-gradient(135deg, #BCEAF3, var(--primary-light));
display: flex; align-items: center; justify-content: center;
color: #fff; font-size: 16px; font-weight: 700;
flex-shrink: 0;
}
.related-topic-info { flex: 1; min-width: 0; }
.related-topic-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.related-topic-count { font-size: 11px; color: var(--text-tertiary); }
/* 话题规则 */
.topic-rules { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.topic-rule-item { display: flex; gap: 8px; margin-bottom: 8px; }
.topic-rule-num {
flex-shrink: 0;
width: 20px; height: 20px; border-radius: 50%;
background: var(--primary-bg);
color: var(--primary);
font-size: 11px; font-weight: 700;
display: flex; align-items: center; justify-content: center;
}
/* SVG stroke统一 */
svg { stroke-linecap: round; stroke-linejoin: round; }
/* 图片溢出保护 */
img { max-width: 100%; height: auto; display: block; }
</style>
<link rel="stylesheet" href="../css/web-refresh.css?v=20261020-brand-color">
</head>
<body>
<div class="app">
<!-- ===== 左侧固定侧边栏 ===== -->
<aside class="sidebar">
<div class="sidebar-logo" onclick="location.href='feed.html'">
<div class="sidebar-logo-icon">青</div>
<div class="sidebar-logo-text">
<span class="main">青核 Youthome</span>
<span class="sub">校园实名社交</span>
</div>
</div>
<!-- 发布按钮 -->
<div class="sidebar-publish">
<div class="publish-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
<span>发布</span>
<svg class="publish-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
</div>
<div class="publish-dropdown">
<div class="publish-option" onclick="location.href='publish-post.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<circle cx="8.5" cy="8.5" r="1.5"></circle>
<polyline points="21 15 16 10 5 21"></polyline>
</svg>
<div class="publish-option-text">
<div class="publish-option-title">发布动态</div>
<div class="publish-option-desc">分享图文、心情</div>
</div>
</div>
<div class="publish-option" onclick="location.href='publish-video.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="23 7 16 12 23 17 23 7"></polygon>
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
</svg>
<div class="publish-option-text">
<div class="publish-option-title">发布视频</div>
<div class="publish-option-desc">上传短视频</div>
</div>
</div>
<div class="publish-option" onclick="location.href='activity-create.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="4" width="18" height="18" rx="2" ry="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>
<line x1="12" y1="14" x2="12" y2="18"></line>
<line x1="10" y1="16" x2="14" y2="16"></line>
</svg>
<div class="publish-option-text">
<div class="publish-option-title">发起活动</div>
<div class="publish-option-desc">组织线下聚会</div>
</div>
</div>
</div>
</div>
<nav class="sidebar-nav">
<div class="nav-section-title">探索</div>
<div class="nav-item" onclick="location.href='feed.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path>
</svg>
动态广场
</div>
<div class="nav-item" onclick="location.href='video.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="23 7 16 12 23 17 23 7"></polygon>
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
</svg>
视频广场
</div>
<div class="nav-item" onclick="location.href='activities.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="4" width="18" height="18" rx="2" ry="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="nav-section-title">我的</div>
<div class="nav-item" onclick="location.href='me.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
<circle cx="12" cy="7" r="4"></circle>
</svg>
个人中心
</div>
<div class="nav-item" onclick="location.href='notification.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
<div class="nav-item-label">
消息通知
<span class="nav-badge">3</span>
</div>
</div>
<div class="nav-item" onclick="location.href='settings.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
设置
</div>
</nav>
<div class="sidebar-footer">
<div class="sidebar-user" onclick="location.href='me.html'">
<div class="sidebar-avatar">
</div>
<div class="sidebar-user-info">
<div class="sidebar-user-name">林小夏</div>
<div class="sidebar-user-desc">复旦大学</div>
</div>
<svg class="sidebar-user-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
</aside>
<!-- ===== 右侧主区域 ===== -->
<div class="main-area">
<!-- ===== 顶部操作栏 ===== -->
<header class="top-bar">
<div class="top-bar-left">
<button class="back-btn" onclick="location.href='feed.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<div class="breadcrumb">
<a onclick="location.href='feed.html'">动态广场</a>
<span class="separator">/</span>
<span class="current">#校园生活</span>
</div>
</div>
<div class="top-bar-right">
<div class="search-wrapper">
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.3-4.3"></path>
</svg>
<input type="text" class="search-input" placeholder="搜索话题、动态、用户…">
</div>
<button class="icon-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
</svg>
<span class="badge">3</span>
</button>
<div class="avatar-btn">林</div>
</div>
</header>
<!-- ===== 主内容区 ===== -->
<main class="content-area">
<!-- 话题头部Banner -->
<div class="topic-header">
<div class="topic-header-content">
<div class="topic-info">
<div class="topic-badge">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
校园热门话题
</div>
<h1 class="topic-title">#校园生活</h1>
<p class="topic-desc">
记录校园里的点滴日常,分享学习、生活、美食、活动中的美好瞬间。在这里,遇见同频的校园伙伴,一起探索青春的无限可能。
</p>
<div class="topic-stats">
<div class="stat-item">
<span class="stat-value">56.3万</span>
<span class="stat-label">动态数</span>
</div>
<div class="stat-item">
<span class="stat-value">12.8万</span>
<span class="stat-label">参与人数</span>
</div>
<div class="stat-item">
<span class="stat-value">320万</span>
<span class="stat-label">浏览量</span>
</div>
</div>
</div>
<div class="topic-actions">
<button class="btn-follow" id="btnFollow">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
关注话题
</button>
<button class="btn-share">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
</button>
</div>
</div>
</div>
<!-- Tab切换栏 -->
<div class="topic-tabs-wrapper">
<div class="topic-tabs">
<div class="topic-tab active">热门</div>
<div class="topic-tab">最新</div>
<div class="topic-tab">图文</div>
<div class="topic-tab">视频</div>
</div>
</div>
<!-- 动态流 -->
<div class="topic-body">
<div class="topic-main">
<div class="feed-grid">
<!-- 卡片1:单图 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-1">小</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">小林同学</span>
<span class="post-badge">校园达人</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
清华大学
</span>
<span>·</span>
<span>2小时前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
Day7 图书馆打卡,今天效率超高!终于把高数第三章看完了,例题也都做了一遍,感觉理解得比之前好多了!明天继续加油~ <span class="topic-tag">#校园生活</span>
</div>
<div class="post-images single">
<div class="img-item" style="background: linear-gradient(135deg, #BCEAF3 0%, #73D3E6 50%, #17B0CF 100%);"></div>
</div>
<div class="post-tags">
<span class="post-tag">#期末复习日常</span>
<span class="post-tag">#图书馆打卡</span>
</div>
<div class="post-actions">
<div class="action-item liked">
<svg viewBox="0 0 24 24" fill="currentColor" stroke="none">
<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>
<span class="count">256</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">38</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">12</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片2:纯文字 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-2">晴</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">晴天小雨</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
北京大学
</span>
<span>·</span>
<span>4小时前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
期末倒计时10天,高数复习中... 头秃预警!有没有小伙伴分享一下高数复习技巧呀?感觉好多知识点都记不住,求支招~<br><br>
今天在自习室坐了一整天,感觉效率不是很高,可能是方法不对。大家有什么好的复习方法推荐吗? <span class="topic-tag">#校园生活</span>
</div>
<div class="post-tags">
<span class="post-tag">#期末复习</span>
<span class="post-tag">#高数</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">189</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">56</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">8</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片3:双图 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-3">阿</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">阿杰学长</span>
<span class="post-badge">学习博主</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
复旦大学
</span>
<span>·</span>
<span>6小时前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
有没有一起去图书馆自习的搭子?学校图书馆三楼靠窗位置,一起复习互相监督!一个人真的太容易摸鱼了😂 <span class="topic-tag">#校园生活</span>
</div>
<div class="post-images double">
<div class="img-item" style="background: linear-gradient(135deg, #FED7AA 0%, #FB923C 100%);"></div>
<div class="img-item" style="background: linear-gradient(135deg, #A5F3FC 0%, #06B6D4 100%);"></div>
</div>
<div class="post-tags">
<span class="post-tag">#自习搭子</span>
<span class="post-tag">#图书馆</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">98</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">67</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">5</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片4:四图 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-4">美</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">美食探店家</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
上海交通大学
</span>
<span>·</span>
<span>昨天</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
学校西门新开的火锅店也太好吃了吧!毛肚超脆,性价比绝了,人均60吃到撑!推荐给大家~ <span class="topic-tag">#校园生活</span>
</div>
<div class="post-images quad">
<div class="img-item" style="background: linear-gradient(135deg, #FECACA 0%, #F87171 100%);"></div>
<div class="img-item" style="background: linear-gradient(135deg, #FED7AA 0%, #FB923C 100%);"></div>
<div class="img-item" style="background: linear-gradient(135deg, #D4B5FF 0%, #9254DE 100%);"></div>
<div class="img-item" style="background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);"></div>
</div>
<div class="post-tags">
<span class="post-tag">#校园美食</span>
<span class="post-tag">#火锅探店</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">423</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">89</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">34</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片5:纯文字长文 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-5">张</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">张同学</span>
<span class="post-badge">学习博主</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
浙江大学
</span>
<span>·</span>
<span>2天前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
分享一下我备考六级的方法:每天背50个单词+精听一篇听力+做一套真题阅读,坚持了两个月,从425分提升到了580分!<br><br>
真的只要坚持就会有效果,大家一起加油!<br><br>
另外推荐几个好用的APP:不背单词、每日英语听力、扇贝阅读。亲测都很好用,配合起来效果更佳~ <span class="topic-tag">#校园生活</span>
</div>
<div class="post-tags">
<span class="post-tag">#英语学习</span>
<span class="post-tag">#六级经验</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">589</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">126</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">45</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片6:单图 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-6">学</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">学生会</span>
<span class="post-badge">官方</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
本校
</span>
<span>·</span>
<span>3天前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
🎤 校园十佳歌手大赛报名开始啦!喜欢唱歌的同学们不要错过,丰厚奖品等你来拿~报名截止到本周五晚上8点,点击链接即可报名! <span class="topic-tag">#校园生活</span>
</div>
<div class="post-images single">
<div class="img-item" style="background: linear-gradient(135deg, #FBCFE8 0%, #EC4899 50%, #D4B5FF 100%);"></div>
</div>
<div class="post-tags">
<span class="post-tag">#校园活动</span>
<span class="post-tag">#十佳歌手</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">1.2k</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">234</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">156</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片7:双图 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-7">运</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">运动达人小王</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
同济大学
</span>
<span>·</span>
<span>4天前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
今天操场跑步5公里打卡!傍晚的操场真的太美了,夕阳洒在跑道上,跑步都变得更有动力了。<br><br>
有没有一起夜跑的小伙伴?每周一三五晚上8点操场见~ <span class="topic-tag">#校园生活</span>
</div>
<div class="post-images double">
<div class="img-item" style="background: linear-gradient(135deg, #95E1B5 0%, #52C41A 100%);"></div>
<div class="img-item" style="background: linear-gradient(135deg, #FFE58F 0%, #FAAD14 100%);"></div>
</div>
<div class="post-tags">
<span class="post-tag">#运动打卡</span>
<span class="post-tag">#夜跑</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">312</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">45</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">23</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
<!-- 卡片8:纯文字 -->
<article class="post-card">
<div class="post-header">
<div class="avatar avatar-lg color-8">新</div>
<div class="post-user">
<div class="post-user-row">
<span class="post-username">新生小萌新</span>
</div>
<div class="post-meta">
<span class="post-school">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
南京大学
</span>
<span>·</span>
<span>5天前</span>
</div>
</div>
<div class="post-more">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="1"></circle>
<circle cx="12" cy="5" r="1"></circle>
<circle cx="12" cy="19" r="1"></circle>
</svg>
</div>
</div>
<div class="post-content">
大一新生报到!终于来到梦想中的大学了,校园比想象中还要大还要美~<br><br>
有没有学长学姐推荐一下校园周边好吃的好玩的?还有选课有什么建议吗?求带飞! <span class="topic-tag">#校园生活</span>
</div>
<div class="post-tags">
<span class="post-tag">#新生报到</span>
<span class="post-tag">#求推荐</span>
</div>
<div class="post-actions">
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<span class="count">267</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
<span class="count">178</span>
</div>
<div class="action-item">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path>
<polyline points="16 6 12 2 8 6"></polyline>
<line x1="12" y1="2" x2="12" y2="15"></line>
</svg>
<span class="count">19</span>
</div>
<div class="action-item bookmark">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
</svg>
</div>
</div>
</article>
</div>
<!-- 加载更多 -->
<div class="load-more">
<button class="load-more-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
加载更多
</button>
</div>
</div>
<!-- 右侧侧栏 -->
<aside class="topic-sidebar">
<!-- 活跃贡献者 -->
<div class="sidebar-widget">
<div class="widget-header">
<div class="widget-title">
<svg class="widget-title-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
<span class="widget-more">更多</span>
</div>
<div class="active-user-list">
<div class="active-user-item" onclick="location.href='user.html'">
<span class="active-user-rank top1">1</span>
<div class="active-user-avatar" style="background: linear-gradient(135deg, #73D3E6, #17B0CF);">林</div>
<div class="active-user-info">
<div class="active-user-name">林小夏</div>
<div class="active-user-desc">贡献 328 条</div>
</div>
<div class="active-user-follow">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</div>
<div class="active-user-item" onclick="location.href='user.html'">
<span class="active-user-rank top2">2</span>
<div class="active-user-avatar" style="background: linear-gradient(135deg, #FFBE7A, #FF9F45);">张</div>
<div class="active-user-info">
<div class="active-user-name">张子轩</div>
<div class="active-user-desc">贡献 256 条</div>
</div>
<div class="active-user-follow">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</div>
<div class="active-user-item" onclick="location.href='user.html'">
<span class="active-user-rank top3">3</span>
<div class="active-user-avatar" style="background: linear-gradient(135deg, #B5A8F0, #9A8BF0);">王</div>
<div class="active-user-info">
<div class="active-user-name">王思琪</div>
<div class="active-user-desc">贡献 198 条</div>
</div>
<div class="active-user-follow">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</div>
<div class="active-user-item" onclick="location.href='user.html'">
<span class="active-user-rank">4</span>
<div class="active-user-avatar" style="background: linear-gradient(135deg, #FFD1E0, #FF8FAD);">陈</div>
<div class="active-user-info">
<div class="active-user-name">陈雨桐</div>
<div class="active-user-desc">贡献 156 条</div>
</div>
<div class="active-user-follow">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</div>
<div class="active-user-item" onclick="location.href='user.html'">
<span class="active-user-rank">5</span>
<div class="active-user-avatar" style="background: linear-gradient(135deg, #A8E6CF, #56D59E);">李</div>
<div class="active-user-info">
<div class="active-user-name">李明远</div>
<div class="active-user-desc">贡献 134 条</div>
</div>
<div class="active-user-follow">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
</div>
</div>
</div>
</div>
<!-- 相关话题 -->
<div class="sidebar-widget">
<div class="widget-header">
<div class="widget-title">
<svg class="widget-title-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
<span class="widget-more">换一批</span>
</div>
<div class="related-topic-list">
<div class="related-topic-item">
<div class="related-topic-icon">#</div>
<div class="related-topic-info">
<div class="related-topic-name">学习打卡</div>
<div class="related-topic-count">42.5万 动态</div>
</div>
</div>
<div class="related-topic-item">
<div class="related-topic-icon" style="background: linear-gradient(135deg, #FFBE7A, #FF9F45);">#</div>
<div class="related-topic-info">
<div class="related-topic-name">校园美食</div>
<div class="related-topic-count">28.3万 动态</div>
</div>
</div>
<div class="related-topic-item">
<div class="related-topic-icon" style="background: linear-gradient(135deg, #B5A8F0, #9A8BF0);">#</div>
<div class="related-topic-info">
<div class="related-topic-name">期末复习</div>
<div class="related-topic-count">23.1万 动态</div>
</div>
</div>
<div class="related-topic-item">
<div class="related-topic-icon" style="background: linear-gradient(135deg, #FFD1E0, #FF8FAD);">#</div>
<div class="related-topic-info">
<div class="related-topic-name">社团活动</div>
<div class="related-topic-count">18.7万 动态</div>
</div>
</div>
</div>
</div>
<!-- 话题规则 -->
<div class="sidebar-widget">
<div class="widget-header">
<div class="widget-title">
<svg class="widget-title-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
话题规则
</div>
</div>
<div class="topic-rules">
<div class="topic-rule-item">
<span class="topic-rule-num">1</span>
<span>发布内容需与校园生活主题相关</span>
</div>
<div class="topic-rule-item">
<span class="topic-rule-num">2</span>
<span>禁止发布广告、引流及商业推广内容</span>
</div>
<div class="topic-rule-item">
<span class="topic-rule-num">3</span>
<span>尊重他人,严禁人身攻击和恶意言论</span>
</div>
<div class="topic-rule-item">
<span class="topic-rule-num">4</span>
<span>原创内容请注明,转载需获得授权</span>
</div>
</div>
</div>
</aside>
</div>
</main>
</div>
</div>
<script>
// Tab切换
document.querySelectorAll('.topic-tab').forEach(tab => {
tab.addEventListener('click', function() {
document.querySelectorAll('.topic-tab').forEach(t => t.classList.remove('active'));
this.classList.add('active');
});
});
// 关注话题按钮
const btnFollow = document.getElementById('btnFollow');
let isFollowed = false;
btnFollow.addEventListener('click', function() {
isFollowed = !isFollowed;
if (isFollowed) {
btnFollow.innerHTML = `
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
已关注
`;
btnFollow.classList.add('followed');
} else {
btnFollow.innerHTML = `
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
关注话题
`;
btnFollow.classList.remove('followed');
}
});
// 点赞切换
document.querySelectorAll('.action-item').forEach(item => {
const svg = item.querySelector('svg');
if (!svg) return;
const pathD = svg.querySelector('path')?.getAttribute('d');
// 判断是否是点赞按钮(心形图标)
if (pathD && pathD.includes('20.84 4.61')) {
item.addEventListener('click', function(e) {
e.stopPropagation();
this.classList.toggle('liked');
const svgEl = this.querySelector('svg');
const countEl = this.querySelector('.count');
let count = parseInt(countEl.textContent);
if (this.classList.contains('liked')) {
svgEl.setAttribute('fill', 'currentColor');
svgEl.setAttribute('stroke', 'none');
count++;
} else {
svgEl.setAttribute('fill', 'none');
svgEl.setAttribute('stroke', 'currentColor');
count--;
}
countEl.textContent = count;
});
}
});
</script>
<script src="../js/web-local-data.js?v=20261016-local" defer></script>
<script src="../js/web-api.js?v=20261020-api" defer></script>
<script src="../js/web-shell.js" defer></script>
</body>
</html>