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.
 
 

1207 lines
41 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 {
/* 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: 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-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.03);
--glass-bg: rgba(255, 255, 255, 0.72);
--glass-blur: blur(20px);
--glass-border: rgba(255, 255, 255, 0.3);
}
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;
display: flex;
flex-direction: column;
}
/* ===== 状态栏 ===== */
.status-bar {
height: 24px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
font-size: 12px;
font-weight: 600;
color: #fff;
position: relative;
z-index: 10;
flex-shrink: 0;
background: transparent;
}
.status-bar .right-icons {
display: flex;
align-items: center;
gap: 5px;
}
.status-bar svg {
width: 13px;
height: 13px;
}
/* ===== 顶部渐变区域 ===== */
.profile-header {
background: linear-gradient(180deg, #26C2BB 0%, #1AA8A2 100%);
padding: 8px 16px 60px;
position: relative;
flex-shrink: 0;
overflow: hidden;
}
.profile-header::before {
content: '';
position: absolute;
top: -40px;
right: -30px;
width: 180px;
height: 180px;
background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
}
.profile-header::after {
content: '';
position: absolute;
bottom: 20px;
left: -40px;
width: 140px;
height: 140px;
background: radial-gradient(circle, rgba(255,185,128,0.2) 0%, transparent 70%);
border-radius: 50%;
pointer-events: none;
}
.header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
position: relative;
z-index: 2;
}
.icon-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.18);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.25);
color: #fff;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
}
.icon-btn:active {
transform: scale(0.92);
background: rgba(255, 255, 255, 0.28);
}
.icon-btn svg {
width: 18px;
height: 18px;
}
.user-info-section {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 2;
margin-top: 4px;
}
.user-avatar-wrap {
position: relative;
margin-bottom: 10px;
}
.user-avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #FFD8A8 0%, #FFB980 50%, #E8A06B 100%);
border: 3px solid rgba(255, 255, 255, 0.9);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: 700;
color: #fff;
position: relative;
overflow: hidden;
}
.user-avatar::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
pointer-events: none;
}
.user-nickname {
font-size: 20px;
font-weight: 700;
color: #fff;
letter-spacing: 0.5px;
margin-bottom: 2px;
}
.youth-id {
font-size: 11px;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 8px;
}
.verify-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 999px;
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);
font-size: 11px;
font-weight: 500;
color: #fff;
margin-bottom: 10px;
}
.verify-badge svg {
width: 12px;
height: 12px;
}
.edit-profile-btn {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 14px;
border-radius: 999px;
background: transparent;
border: 1.2px solid rgba(255, 255, 255, 0.7);
font-size: 11px;
font-weight: 500;
color: #fff;
cursor: pointer;
transition: all 0.2s ease;
}
.edit-profile-btn:active {
transform: scale(0.95);
background: rgba(255, 255, 255, 0.15);
}
.edit-profile-btn svg {
width: 11px;
height: 11px;
}
/* ===== 数据统计卡片 ===== */
.stats-card {
margin: -42px 16px 14px;
background: var(--youth-bg-card);
border-radius: 16px;
padding: 14px 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
position: relative;
z-index: 5;
border: 1px solid var(--youth-border-light);
flex-shrink: 0;
}
.stats-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
pointer-events: none;
border-radius: 16px 16px 0 0;
}
.stats-row {
display: flex;
align-items: center;
justify-content: space-around;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
flex: 1;
position: relative;
cursor: pointer;
transition: transform 0.2s ease;
}
.stat-item:active {
transform: scale(0.96);
}
.stat-item:not(:last-child)::after {
content: '';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 24px;
background: var(--youth-border-light);
}
.stat-number {
font-size: 20px;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.02em;
color: var(--youth-text-primary);
}
.stat-label {
font-size: 11px;
color: var(--youth-text-tertiary);
font-weight: 500;
}
/* ===== 菜单区域 ===== */
.menu-section {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 2px 16px 80px;
-webkit-overflow-scrolling: touch;
}
.menu-section::-webkit-scrollbar {
display: none;
}
.menu-group {
background: var(--youth-bg-card);
border-radius: 16px;
margin-bottom: 12px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
border: 1px solid var(--youth-border-light);
position: relative;
}
.menu-group::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
pointer-events: none;
z-index: 1;
}
.menu-item {
display: flex;
align-items: center;
padding: 12px 14px;
cursor: pointer;
transition: background-color 0.2s ease;
position: relative;
}
.menu-item:active {
background: var(--youth-bg-hover);
}
.menu-item:not(:last-child)::after {
content: '';
position: absolute;
bottom: 0;
left: 48px;
right: 0;
height: 1px;
background: var(--youth-border-light);
}
.menu-icon {
width: 30px;
height: 30px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-right: 10px;
position: relative;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.menu-icon::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
pointer-events: none;
}
.menu-icon svg {
width: 16px;
height: 16px;
color: #fff;
position: relative;
z-index: 1;
}
.menu-icon.teal {
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 100%);
}
.menu-icon.orange {
background: linear-gradient(135deg, #FFC58A 0%, #FF9F45 100%);
}
.menu-icon.purple {
background: linear-gradient(135deg, #A594FF 0%, #7B61FF 100%);
}
.menu-icon.pink {
background: linear-gradient(135deg, #FF9DBF 0%, #FF6B9D 100%);
}
.menu-icon.green {
background: linear-gradient(135deg, #67E188 0%, #34C759 100%);
}
.menu-icon.blue {
background: linear-gradient(135deg, #7CC8FF 0%, #4A90E2 100%);
}
.menu-text {
flex: 1;
font-size: 14px;
font-weight: 500;
color: var(--youth-text-primary);
}
.menu-right {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.menu-right-text {
font-size: 12px;
color: var(--youth-text-tertiary);
}
.menu-right-text.highlight {
color: var(--youth-primary);
font-weight: 600;
}
.menu-tag {
font-size: 10px;
font-weight: 600;
padding: 3px 8px;
border-radius: 999px;
line-height: 1;
}
.menu-tag.green {
background: rgba(52, 199, 89, 0.12);
color: #34C759;
}
.menu-tag.teal {
background: rgba(38, 194, 187, 0.12);
color: #26C2BB;
}
.menu-arrow {
width: 14px;
height: 14px;
color: var(--youth-text-quaternary);
flex-shrink: 0;
}
.points-icon {
width: 14px;
height: 14px;
color: #FFB980;
}
/* ===== 底部Tab导航 ===== */
.bottom-nav {
height: 64px;
flex-shrink: 0;
background: var(--youth-bg-glass);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-top: 1px solid var(--youth-border-light);
display: flex;
align-items: flex-start;
justify-content: space-around;
padding: 6px 0 0;
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 20;
}
.bottom-tab {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 3px 10px;
cursor: pointer;
transition: all 0.2s ease;
color: var(--youth-text-tertiary);
user-select: none;
}
.bottom-tab:active {
transform: scale(0.92);
}
.bottom-tab.active {
color: var(--youth-primary);
}
.bottom-tab svg {
width: 22px;
height: 22px;
}
.bottom-tab .tab-label {
font-size: 10px;
font-weight: 500;
}
.bottom-tab.active .tab-label {
font-weight: 600;
}
/* ===== QR码弹窗蒙层 ===== */
.qr-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.45);
z-index: 998;
display: none;
align-items: center;
justify-content: center;
}
.qr-modal-overlay.active {
display: flex;
animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.qr-modal {
width: 280px;
background: var(--youth-bg-card);
border-radius: 20px;
padding: 24px 20px 20px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
border: 1px solid var(--youth-border-light);
animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 999;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.qr-modal-close {
position: absolute;
top: 10px;
right: 10px;
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--youth-bg-input);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--youth-text-secondary);
transition: all 0.2s ease;
}
.qr-modal-close:active {
transform: scale(0.9);
}
.qr-modal-close svg {
width: 14px;
height: 14px;
}
.qr-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #FFD8A8 0%, #FFB980 50%, #E8A06B 100%);
border: 2.5px solid #fff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
font-weight: 700;
color: #fff;
margin-bottom: 8px;
}
.qr-nickname {
font-size: 16px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 2px;
}
.qr-id {
font-size: 11px;
color: var(--youth-text-tertiary);
margin-bottom: 14px;
}
.qr-code-box {
width: 180px;
height: 180px;
background: #fff;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
margin-bottom: 12px;
position: relative;
}
.qr-code-box svg {
width: 100%;
height: 100%;
}
.qr-tip {
font-size: 11px;
color: var(--youth-text-tertiary);
text-align: center;
}
/* 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="app-container" id="page-profile-home">
<!-- 顶部渐变区域 -->
<div class="profile-header">
<!-- 状态栏 -->
<div class="status-bar">
<span>9:41</span>
<div class="right-icons">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"></path>
</svg>
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"></path>
</svg>
</div>
</div>
<!-- 顶部操作按钮 -->
<div class="header-actions">
<button class="icon-btn" data-dom-id="btn-qrcode" onclick="showQrModal()">
<svg 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>
<path d="M3 14h3v3H3z"></path>
<path d="M7 14v3"></path>
<path d="M3 17h1"></path>
</svg>
</button>
<button class="icon-btn" data-dom-id="btn-settings" onclick="goToSettings()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<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>
</button>
</div>
<!-- 用户信息 -->
<div class="user-info-section">
<div class="user-avatar-wrap">
<div class="user-avatar" data-dom-id="user-avatar">张</div>
</div>
<div class="user-nickname">张同学</div>
<div class="youth-id">@zhangtx · 20220101</div>
<button class="edit-profile-btn" data-dom-id="btn-edit-profile" onclick="goToEditProfile()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
</svg>
编辑资料
</button>
</div>
</div>
<!-- 数据统计卡片 -->
<div class="stats-card">
<div class="stats-row">
<div class="stat-item" data-dom-id="stat-following">
<span class="stat-number">36</span>
<span class="stat-label">关注</span>
</div>
<div class="stat-item" data-dom-id="stat-followers">
<span class="stat-number">128</span>
<span class="stat-label">粉丝</span>
</div>
<div class="stat-item" data-dom-id="stat-likes">
<span class="stat-number">256</span>
<span class="stat-label">获赞</span>
</div>
</div>
</div>
<!-- 功能菜单区 -->
<div class="menu-section">
<!-- 第一组:我的内容 -->
<div class="menu-group">
<div class="menu-item" data-dom-id="menu-my-posts" onclick="goToMyPosts()">
<div class="menu-icon teal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<line x1="16" y1="13" x2="8" y2="13"></line>
<line x1="16" y1="17" x2="8" y2="17"></line>
</svg>
</div>
<span class="menu-text">我的动态</span>
<div class="menu-right">
<span class="menu-right-text">12</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-my-activities" onclick="goToMyActivities()">
<div class="menu-icon orange">
<svg 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" 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>
<span class="menu-text">我的组局</span>
<div class="menu-right">
<span class="menu-right-text highlight">3场进行中</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-my-favorites" onclick="goToFavorites()">
<div class="menu-icon pink">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<span class="menu-text">我的收藏</span>
<div class="menu-right">
<span class="menu-right-text">28</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-drafts" onclick="goToDrafts()">
<div class="menu-icon purple">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 20h9"></path>
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
</svg>
</div>
<span class="menu-text">草稿箱</span>
<div class="menu-right">
<span class="menu-right-text">2</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-announcements" onclick="goToMyAnnouncements()">
<div class="menu-icon blue">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<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>
<span class="menu-text">我的公告</span>
<div class="menu-right">
<span class="menu-right-text">5</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
</div>
<!-- 第二组:社交关系 -->
<div class="menu-group">
<div class="menu-item" data-dom-id="menu-friends" onclick="goToFriends()">
<div class="menu-icon blue">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<span class="menu-text">好友列表</span>
<div class="menu-right">
<span class="menu-right-text">86位好友</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-groups" onclick="goToGroups()">
<div class="menu-icon teal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<circle cx="19" cy="10" r="2"></circle>
</svg>
</div>
<span class="menu-text">我的群组</span>
<div class="menu-right">
<span class="menu-right-text">12个群</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-follows" onclick="goToFollows()">
<div class="menu-icon green">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
</div>
<span class="menu-text">关注/粉丝</span>
<div class="menu-right">
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
</div>
<!-- 第三组:钱包与工具 -->
<div class="menu-group">
<div class="menu-item" data-dom-id="menu-points" onclick="goToPoints()">
<div class="menu-icon orange">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
</svg>
</div>
<span class="menu-text">青核积分</span>
<div class="menu-right">
<span class="menu-right-text highlight">1280</span>
<svg class="points-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
</svg>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-realname" onclick="goToRealName()">
<div class="menu-icon green">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
<polyline points="22 4 12 14.01 9 11.01"></polyline>
</svg>
</div>
<span class="menu-text">实名认证</span>
<div class="menu-right">
<span class="menu-tag green">已认证</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
<div class="menu-item" data-dom-id="menu-student-auth" onclick="goToStudentAuth()">
<div class="menu-icon teal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 10v6M2 10l10-5 10 5-10 5z"></path>
<path d="M6 12v5c3 3 9 3 12 0v-5"></path>
</svg>
</div>
<span class="menu-text">学生认证</span>
<div class="menu-right">
<span class="menu-tag teal">已通过</span>
<svg class="menu-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
</div>
</div>
<!-- 底部Tab导航 -->
<div class="bottom-nav">
<div class="bottom-tab" data-dom-id="tab-home" onclick="switchBottomTab('home')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 9l9-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="bottom-tab" data-dom-id="tab-friends" onclick="switchBottomTab('friends')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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="bottom-tab" data-dom-id="tab-dynamic" onclick="switchBottomTab('dynamic')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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="bottom-tab" data-dom-id="tab-message" onclick="switchBottomTab('message')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
</div>
<div class="bottom-tab active" data-dom-id="tab-profile" onclick="switchBottomTab('profile')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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="qr-modal-overlay" id="qrModal" onclick="closeQrModal(event)">
<div class="qr-modal" onclick="event.stopPropagation()">
<button class="qr-modal-close" onclick="hideQrModal()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
<div class="qr-avatar">张</div>
<div class="qr-nickname">张同学</div>
<div class="qr-id">青青号:zhangtx</div>
<div class="qr-code-box">
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="100" height="100" fill="white"></rect>
<!-- 简化的二维码图案 -->
<g fill="#1a1a1a">
<!-- 左上角定位块 -->
<rect x="5" y="5" width="20" height="20"></rect>
<rect x="8" y="8" width="14" height="14" fill="white"></rect>
<rect x="11" y="11" width="8" height="8"></rect>
<!-- 右上角定位块 -->
<rect x="75" y="5" width="20" height="20"></rect>
<rect x="78" y="8" width="14" height="14" fill="white"></rect>
<rect x="81" y="11" width="8" height="8"></rect>
<!-- 左下角定位块 -->
<rect x="5" y="75" width="20" height="20"></rect>
<rect x="8" y="78" width="14" height="14" fill="white"></rect>
<rect x="11" y="81" width="8" height="8"></rect>
<!-- 数据区域随机方块 -->
<rect x="30" y="10" width="5" height="5"></rect>
<rect x="40" y="5" width="5" height="5"></rect>
<rect x="50" y="10" width="5" height="5"></rect>
<rect x="60" y="5" width="5" height="5"></rect>
<rect x="35" y="20" width="5" height="5"></rect>
<rect x="45" y="25" width="5" height="5"></rect>
<rect x="55" y="20" width="5" height="5"></rect>
<rect x="65" y="25" width="5" height="5"></rect>
<rect x="10" y="30" width="5" height="5"></rect>
<rect x="30" y="35" width="5" height="5"></rect>
<rect x="40" y="30" width="5" height="5"></rect>
<rect x="50" y="40" width="5" height="5"></rect>
<rect x="60" y="35" width="5" height="5"></rect>
<rect x="70" y="30" width="5" height="5"></rect>
<rect x="85" y="35" width="5" height="5"></rect>
<rect x="20" y="45" width="5" height="5"></rect>
<rect x="35" y="50" width="5" height="5"></rect>
<rect x="45" y="45" width="5" height="5"></rect>
<rect x="55" y="55" width="5" height="5"></rect>
<rect x="65" y="50" width="5" height="5"></rect>
<rect x="75" y="45" width="5" height="5"></rect>
<rect x="10" y="55" width="5" height="5"></rect>
<rect x="30" y="60" width="5" height="5"></rect>
<rect x="40" y="65" width="5" height="5"></rect>
<rect x="50" y="60" width="5" height="5"></rect>
<rect x="60" y="65" width="5" height="5"></rect>
<rect x="70" y="60" width="5" height="5"></rect>
<rect x="85" y="65" width="5" height="5"></rect>
<rect x="30" y="75" width="5" height="5"></rect>
<rect x="40" y="80" width="5" height="5"></rect>
<rect x="50" y="75" width="5" height="5"></rect>
<rect x="60" y="85" width="5" height="5"></rect>
<rect x="70" y="80" width="5" height="5"></rect>
<rect x="80" y="75" width="5" height="5"></rect>
<rect x="35" y="90" width="5" height="5"></rect>
<rect x="45" y="85" width="5" height="5"></rect>
<rect x="55" y="90" width="5" height="5"></rect>
<rect x="65" y="85" width="5" height="5"></rect>
</g>
<!-- 中心Logo区域 -->
<rect x="42" y="42" width="16" height="16" fill="white"></rect>
<rect x="44" y="44" width="12" height="12" fill="#26C2BB" rx="2"></rect>
<text x="50" y="53" text-anchor="middle" fill="white" font-size="7" font-weight="bold" font-family="sans-serif">青</text>
</svg>
</div>
<div class="qr-tip">扫一扫青青码,添加好友</div>
</div>
</div>
</div>
<script>// ===== 主题切换 =====
// 初始化主题
})();
// ===== 设置按钮 =====
function goToSettings() {
window.location.href = 'settings.html';
}
// ===== 编辑资料 =====
function goToEditProfile() {
window.location.href = 'profile-edit.html';
}
// ===== 我的动态 =====
function goToMyPosts() {
window.location.href = 'my-posts.html';
}
// ===== 我的组局 =====
function goToMyActivities() {
window.location.href = 'my-activities.html';
}
// ===== 我的收藏 =====
function goToFavorites() {
window.location.href = 'favorites.html';
}
// ===== 草稿箱 =====
function goToDrafts() {
alert('跳转到草稿箱页面');
}
// ===== 我的公告 =====
function goToMyAnnouncements() {
window.location.href = 'announcement-manage.html';
}
// ===== 好友列表 =====
function goToFriends() {
window.location.href = 'friends-list.html';
}
// ===== 我的群组 =====
function goToGroups() {
alert('跳转到我的群组页面');
}
// ===== 关注/粉丝 =====
function goToFollows() {
alert('跳转到关注/粉丝页面');
}
// ===== 青核积分 =====
function goToPoints() {
window.location.href = 'points.html';
}
// ===== 实名认证 =====
function goToRealName() {
window.location.href = 'auth-locked.html';
}
// ===== 学生认证 =====
function goToStudentAuth() {
window.location.href = 'auth-locked.html';
}
// ===== 底部Tab切换 =====
function switchBottomTab(tabName) {
const tabs = document.querySelectorAll('.bottom-tab');
tabs.forEach(tab => tab.classList.remove('active'));
const activeTab = document.querySelector(`[data-dom-id="tab-${tabName}"]`);
if (activeTab) {
activeTab.classList.add('active');
}
// 页面跳转映射
const pageMap = {
'home': 'feed-home.html',
'activity': 'activity-list.html',
'message': 'message-list.html',
'discover': 'campus-radar.html',
'profile': 'profile-home.html'
};
if (tabName !== 'profile' && pageMap[tabName]) {
window.location.href = pageMap[tabName];
}
}
// ===== 二维码弹窗 =====
function showQrModal() {
const modal = document.getElementById('qrModal');
modal.classList.add('active');
}
function hideQrModal() {
const modal = document.getElementById('qrModal');
modal.classList.remove('active');
}
function closeQrModal(event) {
if (event.target.id === 'qrModal') {
hideQrModal();
}
}</script>
</body>
</html>