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.
 
 

1065 lines
33 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>
<link rel="stylesheet" href="../colors_and_type.css">
<style>
:root {
--youth-primary: #26C2BB;
--youth-primary-light: #54CAC5;
--primary-bg: #E6F7F6;
--primary-border: #B3E8E4;
--bg-page: #F7F8FA;
--bg-card: #FFFFFF;
--text-title: #1F1F1F;
--text-body: #595959;
--text-muted: #8C8C8C;
--youth-border-light: #E8E8E8;
--tag-bg: #F0F1F3;
--btn-gradient: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
--danger: #F5222D;
--youth-warning: #FAAD14;
--youth-success: #52C41A;
--orange: #FFB380;
/* =====================================================
* Traework 设计系统 - 组件规范
* 圆角 / 间距 / 阴影 / 高度
* ===================================================== */
--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-bottom: 64px;
/* 间距(4px 基础栅格) */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-page-x: 16px;
--space-card: 16px;
/* 柔和弥散阴影 */
--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-btn-hover: 0 4px 16px rgba(38, 194, 187, 0.35);
--shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.12);
--shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
/* 内阴影浮雕(输入框) */
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.04);
--shadow-inset-focus: inset 0 1px 3px rgba(38, 194, 187, 0.08);
/* 毛玻璃 */
--glass-bg: rgba(255, 255, 255, 0.72);
--glass-blur: blur(20px);
--glass-border: rgba(255, 255, 255, 0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
min-height: 100vh;
overflow-x: hidden;}
.page-container {
width: 375px;
min-height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
padding-bottom: 64px;
overflow: hidden;
}
/* 状态栏 */
.status-bar {
height: 44px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
font-size: 15px;
font-weight: 600;
color: var(--youth-text-primary);
flex-shrink: 0;
}
/* 顶部栏 */
.top-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px 12px;
}
.user-info {
display: flex;
align-items: center;
gap: 10px;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--youth-gradient-primary);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 16px;
font-weight: 600;
flex-shrink: 0;
}
.user-text .greeting {
font-size: 12px;
color: var(--youth-text-tertiary);
}
.user-text .name {
font-size: 15px;
font-weight: 600;
color: var(--youth-text-primary);
margin-top: 1px;
}
.top-actions {
display: flex;
align-items: center;
gap: 8px;
}
.icon-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--youth-bg-card);
display: flex;
align-items: center;
justify-content: center;
color: var(--youth-text-primary);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
cursor: pointer;
position: relative;
}
.icon-btn .badge {
position: absolute;
top: 4px;
right: 4px;
width: 8px;
height: 8px;
background: var(--youth-danger-500);
border-radius: 50%;
border: 1.5px solid var(--youth-bg-page);
}
/* 滚动区域 */
.scroll-area {
overflow-y: auto;
height: calc(812px - 44px - 52px - 64px);
padding-bottom: 8px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* Banner轮播 */
.banner-section {
padding: 0 16px 16px;
}
.banner {
width: 100%;
height: 140px;
border-radius: 12px;
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 50%, #7EDDD9 100%);
position: relative;
overflow: hidden;
box-shadow: 0 4px 16px rgba(38, 194, 187, 0.25);
}
.banner-content {
position: absolute;
top: 20px;
left: 20px;
right: 90px;
color: #fff;
}
.banner-tag {
display: inline-block;
padding: 3px 8px;
background: rgba(255,255,255,0.25);
backdrop-filter: blur(10px);
border-radius: 10px;
font-size: 11px;
font-weight: 500;
margin-bottom: 8px;
}
.banner-title {
font-size: 17px;
font-weight: 700;
margin-bottom: 4px;
line-height: 1.3;
}
.banner-desc {
font-size: 12px;
opacity: 0.85;
}
.banner-deco {
position: absolute;
right: -20px;
bottom: -30px;
width: 120px;
height: 120px;
border-radius: 50%;
background: rgba(255,255,255,0.1);
}
.banner-deco2 {
position: absolute;
right: 20px;
top: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
}
.banner-dots {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 5px;
}
.banner-dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: rgba(255,255,255,0.4);
}
.banner-dot.active {
width: 16px;
border-radius: 3px;
background: #fff;
}
/* 分区通用 */
.section {
margin-bottom: 16px;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px 10px;
}
.section-title {
font-size: 16px;
font-weight: 700;
color: var(--youth-text-primary);
display: flex;
align-items: center;
gap: 6px;
}
.section-title::before {
content: '';
width: 3px;
height: 14px;
background: var(--youth-primary);
border-radius: 2px;
}
.section-more {
font-size: 12px;
color: var(--youth-text-tertiary);
display: flex;
align-items: center;
gap: 2px;
cursor: pointer;
}
/* 组局活动 */
.activity-section {
padding: 0 16px;
}
.activity-card {
background: var(--youth-bg-card);
border-radius: 12px;
padding: 12px;
margin-bottom: 10px;
display: flex;
gap: 12px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
cursor: pointer;
}
.activity-cover {
width: 88px;
height: 88px;
border-radius: 10px;
flex-shrink: 0;
position: relative;
overflow: hidden;
}
.activity-cover.game { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.activity-cover.job { background: linear-gradient(135deg, #26C2BB, #1FA8A2); }
.activity-cover.sport { background: linear-gradient(135deg, #FF8A65, #FF7043); }
.activity-cover-tag {
position: absolute;
top: 6px;
left: 6px;
padding: 2px 6px;
background: rgba(0,0,0,0.35);
backdrop-filter: blur(4px);
border-radius: 6px;
font-size: 10px;
color: #fff;
font-weight: 500;
}
.activity-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 0;
}
.activity-title {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
line-height: 1.35;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.activity-meta {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: var(--youth-text-tertiary);
margin-top: 4px;
}
.activity-meta-item {
display: flex;
align-items: center;
gap: 3px;
}
.activity-bottom {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 6px;
}
.activity-progress {
display: flex;
align-items: center;
gap: 6px;
}
.avatars-stack {
display: flex;
}
.avatars-stack .mini-avatar {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1.5px solid var(--youth-bg-card);
margin-left: -6px;
background: var(--youth-primary);
}
.avatars-stack .mini-avatar:first-child { margin-left: 0; }
.progress-text {
font-size: 11px;
color: var(--youth-text-tertiary);
}
.progress-text strong {
color: var(--youth-primary);
font-weight: 600;
}
.join-btn {
padding: 5px 12px;
background: var(--youth-primary);
color: #fff;
border-radius: 14px;
font-size: 11px;
font-weight: 500;
border: none;
cursor: pointer;
}
/* 好友推荐 */
.friend-section {
padding: 0 16px;
}
.friend-scroll {
display: flex;
gap: 10px;
overflow-x: auto;
padding-bottom: 4px;
}
.friend-scroll::-webkit-scrollbar { display: none; }
.friend-card {
width: 110px;
flex-shrink: 0;
background: var(--youth-bg-card);
border-radius: 12px;
padding: 14px 10px 12px;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.03);
position: relative;
}
.friend-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
margin: 0 auto 8px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 18px;
font-weight: 600;
}
.friend-avatar.c1 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.friend-avatar.c2 { background: linear-gradient(135deg, #A8EDEA, #26C2BB); }
.friend-avatar.c3 { background: linear-gradient(135deg, #FBC2EB, #A18CD1); }
.friend-avatar.c4 { background: linear-gradient(135deg, #FFECD2, #FCB69F); }
.online-dot {
position: absolute;
bottom: 2px;
right: 2px;
width: 12px;
height: 12px;
background: var(--youth-success-500);
border-radius: 50%;
border: 2px solid var(--youth-bg-card);
}
.friend-name {
font-size: 13px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 2px;
}
.friend-school {
font-size: 10px;
color: var(--youth-text-tertiary);
margin-bottom: 8px;
}
.match-tag {
display: inline-block;
padding: 2px 8px;
background: var(--youth-primary-bg);
color: var(--youth-primary);
border-radius: 8px;
font-size: 10px;
font-weight: 500;
}
/* AI助手悬浮球 */
.fab-publish {
position: absolute;
right: 16px;
bottom: 80px;
width: 52px;
height: 52px;
border-radius: 50%;
background: var(--youth-gradient-primary);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 6px 16px rgba(38, 194, 187, 0.35);
cursor: pointer;
z-index: 10;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-publish:active {
transform: scale(0.92);
box-shadow: 0 3px 8px rgba(38, 194, 187, 0.3);
}
.fab-publish svg {
color: #fff;
stroke-width: 2.5;
}
/* 底部Tab导航 */
.bottom-nav {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 375px;
height: 64px;
background: var(--youth-bg-card);
display: flex;
align-items: flex-start;
justify-content: space-around;
padding-top: 8px;
padding-bottom: env(safe-area-inset-bottom);
box-shadow: 0 -1px 12px rgba(0,0,0,0.04);
z-index: 50;
border-top: 1px solid var(--youth-border-light);
}
.tab-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
cursor: pointer;
position: relative;
padding-top: 2px;
}
.tab-item svg {
width: 24px;
height: 24px;
stroke-width: 2;
color: var(--youth-text-tertiary);
transition: all 0.2s ease;
}
.tab-item.active svg {
color: var(--youth-primary);
}
.tab-item .tab-label {
font-size: 10px;
color: var(--youth-text-tertiary);
font-weight: 500;
transition: color 0.2s ease;
}
.tab-item.active .tab-label {
color: var(--youth-primary);
font-weight: 600;
}
.tab-item .tab-dot {
position: absolute;
top: 2px;
right: 50%;
transform: translateX(14px);
width: 8px;
height: 8px;
background: var(--youth-danger-500);
border-radius: 50%;
border: 1.5px solid var(--youth-bg-card);
}
/* 添加好友弹窗 */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.45);
backdrop-filter: blur(4px);
z-index: 998;
display: none;
align-items: flex-end;
justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-sheet {
width: 375px;
background: var(--youth-bg-card);
border-radius: 20px 20px 0 0;
padding: 20px 16px 32px;
animation: slideUp 0.3s ease;
z-index: 999;
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
position: relative;
}
@keyframes slideUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
.modal-handle {
width: 36px;
height: 4px;
background: var(--youth-border-light);
border-radius: 2px;
margin: 0 auto 16px;
}
.modal-title {
font-size: 16px;
font-weight: 700;
color: var(--youth-text-primary);
text-align: center;
margin-bottom: 20px;
}
.add-friend-options {
display: flex;
gap: 16px;
}
.add-option {
flex: 1;
background: var(--youth-bg-page);
border-radius: 12px;
padding: 20px 12px;
text-align: center;
cursor: pointer;
transition: background 0.2s ease;
}
.add-option:active { background: var(--youth-primary-bg); }
.add-option-icon {
width: 48px;
height: 48px;
border-radius: 14px;
background: var(--youth-gradient-primary);
margin: 0 auto 10px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.25);
}
.add-option-name {
font-size: 13px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 3px;
}
.add-option-desc {
font-size: 10px;
color: var(--youth-text-tertiary);
}
/* SVG 图标统一尺寸 */
.icon-svg {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1em;
height: 1em;
vertical-align: middle;
line-height: 1;
}
.icon-svg svg {
width: 100%;
height: 100%;
stroke: currentColor;
}
/* 侧栏图标 */
.sidebar-icon .icon-svg { width: 22px; height: 22px; font-size: 22px; }
/* 社团logo图标 */
.club-logo .icon-svg { width: 28px; height: 28px; font-size: 28px; color: #fff; }
/* 头图大图标 */
.hero-icon .icon-svg { width: 56px; height: 56px; font-size: 56px; opacity: 0.3; }
/* meta 小图标 */
.club-meta .icon-svg { width: 12px; height: 12px; font-size: 12px; }
/* 分类选择网格图标 */
.cat-option .icon-svg { width: 26px; height: 26px; font-size: 26px; }
/* logo预览图标 */
.logo-preview .icon-svg { width: 40px; height: 40px; font-size: 40px; color: #fff; }
/* 提示图标 */
.notice-icon .icon-svg { width: 18px; height: 18px; font-size: 18px; }
</style>
</head>
<body>
<div class="page-container" data-dom-id="page-container">
<!-- 状态栏 -->
<div class="status-bar">
<span>9:41</span>
<div class="right-icons" style="display:flex;align-items:center;gap:6px;">
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor">
<rect x="0" y="7" width="3" height="4" rx="0.5"></rect>
<rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect>
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect>
<rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect>
</svg>
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"></rect>
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
</svg>
</div>
</div>
<!-- 顶部栏 -->
<div class="top-bar">
<div class="user-info">
<div class="avatar" data-dom-id="user-avatar">小</div>
<div class="user-text">
<div class="greeting">早上好 ☀️</div>
<div class="name">小青同学</div>
</div>
</div>
<div class="top-actions">
<div class="icon-btn" onclick="openSearch()">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<!-- 滚动内容 -->
<div class="scroll-area">
<!-- Banner -->
<div class="banner-section">
<div class="banner">
<div class="banner-deco2"></div>
<div class="banner-deco"></div>
<div class="banner-content">
<span class="banner-tag"><span class="icon-svg icon-flame"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path></svg></span> 热门活动</span>
<div class="banner-title">校园秋季招聘会</div>
<div class="banner-desc">500+ 企业 · 2000+ 岗位 · 免费报名</div>
</div>
<div class="banner-dots">
<div class="banner-dot active"></div>
<div class="banner-dot"></div>
<div class="banner-dot"></div>
</div>
</div>
</div>
<!-- 组局活动 -->
<div class="section">
<div class="section-header">
<div class="section-title">组局活动</div>
<div class="section-more">
更多
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="activity-section">
<div class="activity-card" data-dom-id="activity-1">
<div class="activity-cover game">
<span class="activity-cover-tag">桌游</span>
</div>
<div class="activity-info">
<div class="activity-title">周六狼人杀组局,还差3人!</div>
<div class="activity-meta">
<span class="activity-meta-item">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
周六 19:00
</span>
<span class="activity-meta-item">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
南门咖啡馆
</span>
</div>
<div class="activity-bottom">
<div class="activity-progress">
<div class="avatars-stack">
<div class="mini-avatar" style="background:#FF9A8B"></div>
<div class="mini-avatar" style="background:#A8EDEA"></div>
<div class="mini-avatar" style="background:#FBC2EB"></div>
<div class="mini-avatar" style="background:#FFECD2"></div>
</div>
<span class="progress-text"><strong>9</strong>/12人</span>
</div>
<button class="join-btn">加入</button>
</div>
</div>
</div>
<div class="activity-card" data-dom-id="activity-2">
<div class="activity-cover job">
<span class="activity-cover-tag">招聘</span>
</div>
<div class="activity-info">
<div class="activity-title">2024秋季校园招聘会 · 大厂专场</div>
<div class="activity-meta">
<span class="activity-meta-item">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
</svg>
10月25日
</span>
<span class="activity-meta-item">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
体育馆
</span>
</div>
<div class="activity-bottom">
<div class="activity-progress">
<span class="progress-text"><span class="icon-svg icon-flame"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path></svg></span> <strong>2.3k</strong>人报名</span>
</div>
<button class="join-btn">报名</button>
</div>
</div>
</div>
<div class="activity-card" data-dom-id="activity-3">
<div class="activity-cover sport">
<span class="activity-cover-tag">运动</span>
</div>
<div class="activity-info">
<div class="activity-title">周末羽毛球3v3,约球不等人</div>
<div class="activity-meta">
<span class="activity-meta-item">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
周日 15:00
</span>
<span class="activity-meta-item">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
北区羽毛球馆
</span>
</div>
<div class="activity-bottom">
<div class="activity-progress">
<span class="progress-text"><strong>5</strong>/6人</span>
</div>
<button class="join-btn">加入</button>
</div>
</div>
</div>
</div>
</div>
<!-- 好友推荐 -->
<div class="section">
<div class="section-header">
<div class="section-title">可能认识的人</div>
<div class="section-more">
换一批
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="23 4 23 10 17 10"></polyline>
<path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>
</svg>
</div>
</div>
<div class="friend-section">
<div class="friend-scroll">
<div class="friend-card">
<div class="friend-avatar c1">
林
<span class="online-dot"></span>
</div>
<div class="friend-name">林小夏</div>
<div class="friend-school">同校 · 大三</div>
<span class="match-tag">95% 匹配</span>
</div>
<div class="friend-card">
<div class="friend-avatar c2">
陈
<span class="online-dot"></span>
</div>
<div class="friend-name">陈墨白</div>
<div class="friend-school">同专业 · 研二</div>
<span class="match-tag">88% 匹配</span>
</div>
<div class="friend-card">
<div class="friend-avatar c3">
苏
</div>
<div class="friend-name">苏晚晴</div>
<div class="friend-school">同乡 · 大二</div>
<span class="match-tag">82% 匹配</span>
</div>
<div class="friend-card">
<div class="friend-avatar c4">
周
<span class="online-dot"></span>
</div>
<div class="friend-name">周子瑜</div>
<div class="friend-school">同兴趣</div>
<span class="match-tag">76% 匹配</span>
</div>
</div>
</div>
</div>
</div>
<!-- AI助手悬浮球 -->
<div class="fab-publish" data-dom-id="fab-publish" onclick="openPublish()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</div>
<!-- 底部Tab导航 -->
<div class="bottom-nav">
<div class="tab-item active" data-dom-id="tab-home">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
<span class="tab-label">首页</span>
</div>
<div class="tab-item" data-dom-id="tab-friends">
<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>
<span class="tab-label">交友</span>
</div>
<div class="tab-item" data-dom-id="tab-dynamic">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"></path>
</svg>
<span class="tab-label">动态</span>
</div>
<div class="tab-item" data-dom-id="tab-message">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<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="tab-label">消息</span>
<span class="tab-dot"></span>
</div>
<div class="tab-item" data-dom-id="tab-profile">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<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>
<span class="tab-label">我的</span>
</div>
</div>
<!-- 扫一扫/添加好友弹窗 -->
<div class="modal-overlay" id="addFriendModal" onclick="closeAddFriend(event)">
<div class="modal-sheet" onclick="event.stopPropagation()">
<div class="modal-handle"></div>
<div class="modal-title">添加好友</div>
<div class="add-friend-options">
<div class="add-option" onclick="goScan()">
<div class="add-option-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="7" height="7"></rect>
<rect x="14" y="3" width="7" height="7"></rect>
<rect x="14" y="14" width="7" height="7"></rect>
<rect x="3" y="14" width="7" height="7"></rect>
</svg>
</div>
<div class="add-option-name">扫一扫</div>
<div class="add-option-desc">扫码添加好友</div>
</div>
<div class="add-option" onclick="goAddFriend()">
<div class="add-option-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<line x1="19" y1="8" x2="19" y2="14"></line>
<line x1="22" y1="11" x2="16" y2="11"></line>
</svg>
</div>
<div class="add-option-name">添加好友</div>
<div class="add-option-desc">输入ID搜索</div>
</div>
</div>
</div>
</div>
</div>
<script> icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
}
}
function openAddFriend() {
document.getElementById('addFriendModal').classList.add('show');
}
function closeAddFriend(e) {
if (e.target.id === 'addFriendModal') {
document.getElementById('addFriendModal').classList.remove('show');
}
}
function goScan() { alert('跳转扫码识别页'); }
function goAddFriend() { alert('跳转添加好友页'); }
function openPublish() { alert('跳转发布动态页'); }
function openSearch() { alert('跳转搜索页'); }</script>
</body>
</html>