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.
 
 

894 lines
28 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">
<link rel="stylesheet" href="../colors_and_type.css">
<title>青核 Youthome - 社团详情</title>
<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;
--youth-warning: #FAAD14;
/* =====================================================
* 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', sans-serif;
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
overflow-x: hidden;}
.page-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
display: flex;
flex-direction: column;
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: #fff;
flex-shrink: 0;
position: relative;
z-index: 10;
}
/* 顶部导航 */
.top-nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
height: 44px;
flex-shrink: 0;
position: relative;
z-index: 10;
}
.nav-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #fff;
cursor: pointer;
border: none;
background: rgba(0,0,0,0.3);
backdrop-filter: blur(10px);
}
.nav-title { font-size: 17px; font-weight: 700; color: #fff; }
.nav-btn.text-btn { width: auto; font-size: 13px; padding: 0 10px; font-weight: 500; }
/* 社团封面 */
.club-header {
height: 280px;
flex-shrink: 0;
position: relative;
margin-top: -88px;
padding-top: 88px;
background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 40%, #A78BFA 80%, #C4B5FD 100%);
overflow: hidden;
}
.club-header::before {
content: '';
position: absolute;
top: 20px;
right: -40px;
width: 180px;
height: 180px;
border-radius: 50%;
background: rgba(255,255,255,0.08);
}
.club-header::after {
content: '';
position: absolute;
bottom: -50px;
left: -30px;
width: 150px;
height: 150px;
border-radius: 50%;
background: rgba(255,255,255,0.06);
}
.club-info {
position: absolute;
bottom: 30px;
left: 20px;
right: 20px;
color: #fff;
z-index: 2;
}
.club-logo-row {
display: flex;
align-items: flex-end;
gap: 14px;
margin-bottom: 12px;
}
.club-logo {
width: 72px;
height: 72px;
border-radius: 20px;
background: rgba(255,255,255,0.2);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
border: 2px solid rgba(255,255,255,0.3);
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
flex-shrink: 0;
}
.club-name-block { flex: 1; min-width: 0; }
.club-name {
font-size: 22px;
font-weight: 800;
margin-bottom: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.club-level {
display: inline-block;
padding: 2px 8px;
background: rgba(255,255,255,0.25);
border-radius: 8px;
font-size: 10px;
font-weight: 600;
}
.club-slogan {
font-size: 12px;
opacity: 0.85;
}
.club-stats {
display: flex;
gap: 20px;
font-size: 12px;
}
.club-stat strong {
font-size: 16px;
font-weight: 700;
margin-right: 2px;
}
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 70px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* Tab栏 */
.tab-bar {
display: flex;
background: var(--youth-bg-card);
position: sticky;
top: 0;
z-index: 5;
border-bottom: 1px solid var(--youth-border-light);
}
.tab-item {
flex: 1;
padding: 14px 0;
text-align: center;
font-size: 14px;
font-weight: 500;
color: var(--youth-text-tertiary);
cursor: pointer;
position: relative;
}
.tab-item.active {
color: var(--youth-text-primary);
font-weight: 700;
}
.tab-item.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
width: 24px;
height: 3px;
background: var(--youth-primary);
border-radius: 16px;
}
/* 简介卡片 */
.intro-card {
margin: 12px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
}
.intro-title {
font-size: 15px;
font-weight: 700;
color: var(--youth-text-primary);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 6px;
}
.intro-text {
font-size: 13px;
line-height: 1.6;
color: var(--youth-text-secondary);
}
.intro-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.intro-tag {
padding: 4px 10px;
background: var(--youth-primary-bg);
color: var(--youth-primary);
font-size: 11px;
font-weight: 500;
border-radius: 12px;
}
/* 管理团队 */
.team-card {
margin: 12px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
}
.team-list {
display: flex;
gap: 16px;
overflow-x: auto;
padding-bottom: 4px;
}
.team-list::-webkit-scrollbar { display: none; }
.team-member {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
flex-shrink: 0;
cursor: pointer;
}
.member-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
position: relative;
}
.member-avatar.c1 { background: linear-gradient(135deg, #26C2BB, #54CAC5); }
.member-avatar.c2 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.member-avatar.c3 { background: linear-gradient(135deg, #FFD666, #FAAD14); }
.member-avatar.c4 { background: linear-gradient(135deg, #A8B5FF, #6366F1); }
.member-avatar.c5 { background: linear-gradient(135deg, #34D399, #10B981); }
.member-role {
position: absolute;
bottom: -2px;
right: -2px;
padding: 1px 5px;
background: var(--youth-warning);
color: #fff;
font-size: 9px;
font-weight: 700;
border-radius: 8px;
border: 2px solid var(--youth-bg-card);
}
.member-name {
font-size: 11px;
color: var(--youth-text-primary);
font-weight: 500;
}
/* 活动列表 */
.activity-list-card {
margin: 12px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
padding: 16px;
}
.activity-item {
display: flex;
gap: 12px;
padding: 12px 0;
position: relative;
cursor: pointer;
}
.activity-item + .activity-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--youth-border-light);
}
.activity-cover {
width: 90px;
height: 90px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
flex-shrink: 0;
}
.activity-cover.a1 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.activity-cover.a2 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.activity-cover.a3 { background: linear-gradient(135deg, #34D399, #10B981); }
.activity-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.activity-title {
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.activity-meta {
font-size: 11px;
color: var(--youth-text-tertiary);
margin-bottom: 3px;
display: flex;
align-items: center;
gap: 4px;
}
.activity-bottom {
margin-top: auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-price {
font-size: 15px;
font-weight: 700;
color: var(--youth-primary);
}
.activity-members {
font-size: 11px;
color: var(--youth-text-tertiary);
}
/* 动态列表 */
.post-card {
margin: 12px 16px;
background: var(--youth-bg-card);
border-radius: 12px;
padding: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.post-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.post-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #26C2BB, #54CAC5);
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.post-author {
font-size: 13px;
font-weight: 600;
color: var(--youth-text-primary);
}
.post-time {
font-size: 11px;
color: var(--youth-text-tertiary);
}
.post-text {
font-size: 13px;
line-height: 1.6;
color: var(--youth-text-secondary);
margin-bottom: 10px;
}
.post-images {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
margin-bottom: 10px;
}
.post-img {
aspect-ratio: 1;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.post-img.p1 { background: linear-gradient(135deg, #FFD666, #FAAD14); }
.post-img.p2 { background: linear-gradient(135deg, #A8B5FF, #6366F1); }
.post-img.p3 { background: linear-gradient(135deg, #F472B6, #EC4899); }
.post-actions {
display: flex;
gap: 20px;
padding-top: 10px;
border-top: 1px solid var(--youth-border-light);
}
.post-action {
display: flex;
align-items: center;
gap: 4px;
font-size: 12px;
color: var(--youth-text-tertiary);
cursor: pointer;
}
/* 底部固定按钮 */
.bottom-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 10px 16px;
padding-bottom: calc(10px + env(safe-area-inset-bottom));
background: var(--youth-bg-card);
border-top: 1px solid var(--youth-border-light);
display: flex;
gap: 10px;
align-items: center;
z-index: 10;
}
.join-btn {
flex: 1;
height: 44px;
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 50%, #1FA8A2 100%);
color: #fff;
border: none;
border-radius: 22px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 6px 16px rgba(38, 194, 187, 0.3);
font-family: inherit;
}
.join-btn.joined {
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
box-shadow: none;
border: 1px solid var(--youth-border-light);
}
.icon-btn {
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--youth-bg-page);
border: 1px solid var(--youth-border-light);
display: flex;
align-items: center;
justify-content: center;
color: var(--youth-text-secondary);
cursor: pointer;
}
/* 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="club-header">
<div class="status-bar">
<span>9:41</span>
<div style="display:flex;align-items:center;gap:6px;">
<svg width="17" height="11" viewBox="0 0 17 11" fill="#fff"><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"><rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="#fff" opacity="0.5"></rect><rect x="2" y="2" width="18" height="8" rx="1.5" fill="#fff"></rect><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="#fff" opacity="0.5"></rect></svg>
</div>
</div>
<div class="top-nav">
<button class="nav-btn" onclick="goBack()">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
</button>
<div class="nav-title">社团详情</div>
<button class="nav-btn" onclick="shareClub()">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="18" cy="5" r="3"></circle>
<circle cx="6" cy="12" r="3"></circle>
<circle cx="18" cy="19" r="3"></circle>
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
</svg>
</button>
</div>
<div class="club-info">
<div class="club-logo-row">
<div class="club-logo">
</div>
<div class="club-name-block">
<div class="club-name">
吉他社
<span class="club-level"><span class="icon-svg icon-star"><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></span> 五星社团</span>
</div>
<div class="club-slogan">拨动琴弦,遇见知音</div>
</div>
</div>
<div class="club-stats">
<div class="club-stat"><strong>328</strong>成员</div>
<div class="club-stat"><strong>56</strong>活动</div>
<div class="club-stat"><strong>2.3k</strong>动态</div>
</div>
</div>
</div>
<div class="tab-bar">
<div class="tab-item active" onclick="switchTab(this, 'intro')">简介</div>
<div class="tab-item" onclick="switchTab(this, 'activity')">活动</div>
<div class="tab-item" onclick="switchTab(this, 'post')">动态</div>
<div class="tab-item" onclick="switchTab(this, 'members')">成员</div>
</div>
<div class="scroll-area">
<!-- 简介 -->
<div class="intro-card">
<div class="intro-title">社团介绍</div>
<div class="intro-text">
吉他社成立于2015年,是校园内最受欢迎的音乐类社团之一。我们致力于为热爱吉他的同学们提供交流学习的平台,每周组织一次集体练习,每月举办小型演出,每学期举办大型音乐活动。无论你是零基础的新手,还是已经有一定基础的爱好者,都能在这里找到属于自己的舞台。
</div>
<div class="intro-tags">
<span class="intro-tag">#音乐</span>
<span class="intro-tag">#吉他</span>
<span class="intro-tag">#演出</span>
<span class="intro-tag">#交友</span>
<span class="intro-tag">#零基础友好</span>
</div>
</div>
<!-- 管理团队 -->
<div class="team-card">
<div class="intro-title">
管理团队
<span style="font-size:12px;color:var(--youth-text-tertiary);font-weight:500;margin-left:auto;">查看全部</span>
</div>
<div class="team-list">
<div class="team-member" onclick="viewMember('社长')">
<div class="member-avatar c1">
<span class="member-role">社长</span>
</div>
<span class="member-name">张同学</span>
</div>
<div class="team-member" onclick="viewMember('副社长')"><div class="member-avatar c2" data-editor-id="editor-node-mtccyjxn-1" style="">
🎸
<span class="member-role" data-vd-editable-host="1">副社</span>
</div>
<span class="member-name">李同学</span>
</div>
<div class="team-member" onclick="viewMember('教学部')"><div class="member-avatar c3">
</div>
<span class="member-name">王同学</span>
</div>
<div class="team-member" onclick="viewMember('宣传部')">
<div class="member-avatar c4">
</div>
<span class="member-name">赵同学</span>
</div>
<div class="team-member" onclick="viewMember('活动部')">
<div class="member-avatar c5">
</div>
<span class="member-name">陈同学</span>
</div>
</div>
</div>
<!-- 近期活动 -->
<div class="activity-list-card">
<div class="intro-title">
近期活动
<span style="font-size:12px;color:var(--youth-primary);font-weight:600;margin-left:auto;">全部活动 ></span>
</div>
<div class="activity-item" onclick="goActivity('秋季招新')">
<div class="activity-cover a1"></div>
<div class="activity-info">
<div class="activity-title">秋季招新大会 · 现场体验课</div>
<div class="activity-meta">
<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>
<line x1="3" y1="10" x2="21" y2="10"></line>
</svg>
9月5日 19:00
</div>
<div class="activity-meta">
<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>
大学生活动中心
</div>
<div class="activity-bottom">
<span class="activity-price">免费</span>
<span class="activity-members">已报 128 人</span>
</div>
</div>
</div>
<div class="activity-item" onclick="goActivity('月度演出')">
<div class="activity-cover a2">
</div>
<div class="activity-info">
<div class="activity-title">九月月度小型演出 · 秋之声</div>
<div class="activity-meta">
<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>
<line x1="3" y1="10" x2="21" y2="10"></line>
</svg>
9月20日 19:30
</div>
<div class="activity-meta">
<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>
音乐排练厅
</div>
<div class="activity-bottom">
<span class="activity-price">¥9.9</span>
<span class="activity-members">已报 56 人</span>
</div>
</div>
</div>
</div>
<!-- 社团动态 -->
<div class="post-card">
<div class="intro-title" style="margin-bottom: 12px;">
社团动态
<span style="font-size:12px;color:var(--youth-primary);font-weight:600;margin-left:auto;">更多 ></span>
</div>
<div class="post-header">
<div class="post-avatar">
</div>
<div>
<div class="post-author">吉他社官方</div>
<div class="post-time">2小时前</div>
</div>
</div>
<div class="post-text">
招新大会的准备工作已经进入倒计时啦!现场会有学长学姐的精彩表演,还有免费体验课,欢迎各位萌新前来围观~
</div>
<div class="post-images">
<div class="post-img p1"></div>
<div class="post-img p2">
</div>
<div class="post-img p3">
</div>
</div>
<div class="post-actions">
<div class="post-action" onclick="likePost()">
<svg width="16" height="16" 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>
128
</div>
<div class="post-action" onclick="commentPost()">
<svg width="16" height="16" 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>
36
</div>
<div class="post-action" onclick="sharePost()">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="18" cy="5" r="3"></circle>
<circle cx="6" cy="12" r="3"></circle>
<circle cx="18" cy="19" r="3"></circle>
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
</svg>
分享
</div>
</div>
</div>
</div>
<!-- 底部按钮 -->
<div class="bottom-bar">
<button class="join-btn joined" id="joinBtn" onclick="toggleJoin()">已加入社团</button>
<div class="icon-btn" onclick="openChat()">
<svg width="20" height="20" 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>
</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 goBack() { window.history.back(); }
function shareClub() { alert('分享社团'); }
function viewMember(role) { alert(role + '详情'); }
function goActivity(name) { alert('活动详情:' + name); }
function likePost() { alert('点赞'); }
function commentPost() { alert('评论'); }
function sharePost() { alert('分享动态'); }
function openChat() { alert('进入社团群聊'); }
function switchTab(el, type) {
document.querySelectorAll('.tab-item').forEach(t => t.classList.remove('active'));
el.classList.add('active');
}
function toggleJoin() {
const btn = document.getElementById('joinBtn');
if (btn.classList.contains('joined')) {
btn.classList.remove('joined');
btn.textContent = '+ 加入社团';
} else {
btn.classList.add('joined');
btn.textContent = '已加入社团';
}
}</script>
</body>
</html>