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.
628 lines
29 KiB
628 lines
29 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;
|
|
--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: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.top-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
height: 44px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: var(--youth-text-primary);
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.nav-title { font-size: 17px; font-weight: 700; color: var(--youth-text-primary); }
|
|
|
|
/* 主内容区:左右两栏 */
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 左侧分类栏 */
|
|
.sidebar {
|
|
width: 88px;
|
|
background: var(--youth-bg-card);
|
|
overflow-y: auto;
|
|
flex-shrink: 0;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar { display: none; }
|
|
|
|
.sidebar-item {
|
|
padding: 14px 8px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--youth-text-secondary);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.sidebar-item:active { background: var(--youth-bg-page); }
|
|
|
|
.sidebar-item.active {
|
|
color: var(--youth-primary);
|
|
font-weight: 700;
|
|
background: var(--youth-bg-page);
|
|
}
|
|
|
|
.sidebar-item.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 3px;
|
|
height: 20px;
|
|
background: var(--youth-primary);
|
|
border-radius: 0 2px 2px 0;
|
|
}
|
|
|
|
.sidebar-icon {
|
|
font-size: 20px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* 右侧内容区 */
|
|
.content-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px 12px 20px;
|
|
}
|
|
|
|
.content-area::-webkit-scrollbar { display: none; }
|
|
|
|
/* 筛选栏 */
|
|
.filter-bar {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
overflow-x: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.filter-bar::-webkit-scrollbar { display: none; }
|
|
|
|
.filter-chip {
|
|
padding: 6px 12px;
|
|
background: var(--youth-bg-card);
|
|
border-radius: 14px;
|
|
font-size: 12px;
|
|
color: var(--youth-text-secondary);
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.filter-chip.active {
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
border-color: var(--youth-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 分类头图 */
|
|
.category-hero {
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
color: #fff;
|
|
margin-bottom: 12px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.category-hero.academic { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
|
|
.category-hero.art { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
|
|
.category-hero.sport { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
|
|
.category-hero.welfare { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
|
|
.category-hero.interest { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
|
|
|
|
.category-hero h3 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.category-hero p {
|
|
font-size: 11px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.hero-icon {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 48px;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
/* 社团列表 */
|
|
.club-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.club-item {
|
|
background: var(--youth-bg-card);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
display: flex;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.club-item:active { transform: scale(0.99); }
|
|
|
|
.club-logo {
|
|
width: 54px;
|
|
height: 54px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.club-logo.l1 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
|
|
.club-logo.l2 { background: linear-gradient(135deg, #26C2BB, #54CAC5); }
|
|
.club-logo.l3 { background: linear-gradient(135deg, #A8B5FF, #6366F1); }
|
|
.club-logo.l4 { background: linear-gradient(135deg, #FFD666, #FAAD14); }
|
|
.club-logo.l5 { background: linear-gradient(135deg, #34D399, #10B981); }
|
|
.club-logo.l6 { background: linear-gradient(135deg, #F472B6, #EC4899); }
|
|
|
|
.club-info { flex: 1; min-width: 0; }
|
|
|
|
.club-name {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.verified-tag {
|
|
padding: 1px 5px;
|
|
background: var(--youth-primary);
|
|
color: #fff;
|
|
font-size: 9px;
|
|
font-weight: 600;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.club-desc {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-bottom: 6px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.club-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 10px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.club-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
}
|
|
|
|
.join-btn {
|
|
padding: 5px 12px;
|
|
background: var(--youth-primary);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
flex-shrink: 0;
|
|
align-self: center;
|
|
}
|
|
|
|
.join-btn.joined {
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-tertiary);
|
|
border: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
/* 空结果提示 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
|
|
.empty-text { font-size: 13px; }
|
|
|
|
|
|
/* 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 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"><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-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="goSearch()">
|
|
<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="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="main-content">
|
|
<!-- 左侧分类 -->
|
|
<div class="sidebar">
|
|
<div class="sidebar-item active" onclick="switchCategory(this, 'academic')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-book-open"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg></span></div>
|
|
学术科技
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'art')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-palette"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="13.5" cy="6.5" r=".5"></circle><circle cx="17.5" cy="10.5" r=".5"></circle><circle cx="8.5" cy="7.5" r=".5"></circle><circle cx="6.5" cy="12.5" r=".5"></circle><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"></path></svg></span></div>
|
|
文化艺术
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'sport')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-trophy"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"></path><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"></path><path d="M4 22h16"></path><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"></path><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"></path><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"></path></svg></span></div>
|
|
体育运动
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'welfare')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-heart"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"></path></svg></span></div>
|
|
公益志愿
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'interest')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-gamepad-2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="11" x2="10" y2="11"></line><line x1="8" y1="9" x2="8" y2="13"></line><line x1="15" y1="12" x2="15.01" y2="12"></line><line x1="18" y1="10" x2="18.01" y2="10"></line><rect width="20" height="12" x="2" y="6" rx="2"></rect></svg></span></div>
|
|
兴趣娱乐
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'practice')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-briefcase"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="7" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path></svg></span></div>
|
|
实践创业
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'media')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-camera"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"></path><circle cx="12" cy="13" r="3"></circle></svg></span></div>
|
|
传媒影音
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'study')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-graduation-cap"><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></span></div>
|
|
学习互助
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'dance')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-music"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg></span></div>
|
|
舞蹈音乐
|
|
</div>
|
|
<div class="sidebar-item" onclick="switchCategory(this, 'more')">
|
|
<div class="sidebar-icon"><span class="icon-svg icon-sparkles"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"></path><path d="M5 3v4"></path><path d="M19 17v4"></path><path d="M3 5h4"></path><path d="M17 19h4"></path></svg></span></div>
|
|
更多分类
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 右侧内容 -->
|
|
<div class="content-area">
|
|
<!-- 筛选标签 -->
|
|
<div class="filter-bar">
|
|
<span class="filter-chip active" onclick="switchFilter(this)">全部</span>
|
|
<span class="filter-chip" onclick="switchFilter(this)">官方认证</span>
|
|
<span class="filter-chip" onclick="switchFilter(this)">热门</span>
|
|
<span class="filter-chip" onclick="switchFilter(this)">新人友好</span>
|
|
<span class="filter-chip" onclick="switchFilter(this)">招新中</span>
|
|
</div>
|
|
|
|
<!-- 分类头图 -->
|
|
<div class="category-hero academic">
|
|
<h3>学术科技</h3>
|
|
<p>28 个社团 · 3,256 位成员</p>
|
|
<div class="hero-icon"><span class="icon-svg icon-microscope"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 18h8"></path><path d="M3 22h18"></path><path d="M14 22a7 7 0 1 0 0-14h-1"></path><path d="M9 14h2"></path><path d="M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z"></path><path d="M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3"></path></svg></span></div>
|
|
</div>
|
|
|
|
<!-- 社团列表 -->
|
|
<div class="club-list">
|
|
<div class="club-item" onclick="goClub('AI创新实验室')">
|
|
<div class="club-logo l2"><span class="icon-svg icon-bot"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
AI 创新实验室
|
|
<span class="verified-tag">认证</span>
|
|
</div>
|
|
<div class="club-desc">人工智能研究与实践,参加各类AI竞赛</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 486人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周2个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn" onclick="event.stopPropagation(); toggleJoin(this)">+ 加入</button>
|
|
</div>
|
|
|
|
<div class="club-item" onclick="goClub('机器人社')">
|
|
<div class="club-logo l3"><span class="icon-svg icon-wrench"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
机器人社
|
|
<span class="verified-tag">认证</span>
|
|
</div>
|
|
<div class="club-desc">RoboMaster战队,机器人设计与制作</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 268人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周3个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn joined" onclick="event.stopPropagation(); toggleJoin(this)">已加入</button>
|
|
</div>
|
|
|
|
<div class="club-item" onclick="goClub('数学建模')">
|
|
<div class="club-logo l1"><span class="icon-svg icon-ruler"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
数学建模协会
|
|
<span class="verified-tag">认证</span>
|
|
</div>
|
|
<div class="club-desc">数学建模竞赛培训,国奖选手带队</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 192人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周1个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn" onclick="event.stopPropagation(); toggleJoin(this)">+ 加入</button>
|
|
</div>
|
|
|
|
<div class="club-item" onclick="goClub('创客空间')">
|
|
<div class="club-logo l4"><span class="icon-svg icon-wrench"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
创客空间
|
|
<span class="verified-tag">认证</span>
|
|
</div>
|
|
<div class="club-desc">3D打印、激光切割、硬件DIY工坊</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 324人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周4个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn" onclick="event.stopPropagation(); toggleJoin(this)">+ 加入</button>
|
|
</div>
|
|
|
|
<div class="club-item" onclick="goClub('生命科学')">
|
|
<div class="club-logo l5"><span class="icon-svg icon-dna"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
生命科学协会
|
|
<span class="verified-tag">认证</span>
|
|
</div>
|
|
<div class="club-desc">生物科研体验,实验室开放日</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 156人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周1个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn" onclick="event.stopPropagation(); toggleJoin(this)">+ 加入</button>
|
|
</div>
|
|
|
|
<div class="club-item" onclick="goClub('天文协会')">
|
|
<div class="club-logo l6"><span class="icon-svg icon-telescope"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
天文爱好者协会
|
|
</div>
|
|
<div class="club-desc">一起仰望星空,定期户外观星活动</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 98人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周0个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn" onclick="event.stopPropagation(); toggleJoin(this)">+ 加入</button>
|
|
</div>
|
|
|
|
<div class="club-item" onclick="goClub('辩论队')">
|
|
<div class="club-logo l3"><span class="icon-svg icon-mic"></span></div>
|
|
<div class="club-info">
|
|
<div class="club-name">
|
|
辩论与演讲协会
|
|
<span class="verified-tag">认证</span>
|
|
</div>
|
|
<div class="club-desc">思维碰撞,口才锻炼,辩论赛备战</div>
|
|
<div class="club-meta">
|
|
<span><span class="icon-svg icon-users"><svg 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><path d="M22 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> 246人</span>
|
|
<span><span class="icon-svg icon-calendar"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect><line x1="16" x2="16" y1="2" y2="6"></line><line x1="8" x2="8" y1="2" y2="6"></line><line x1="3" x2="21" y1="10" y2="10"></line></svg></span> 本周2个活动</span>
|
|
</div>
|
|
</div>
|
|
<button class="join-btn" onclick="event.stopPropagation(); toggleJoin(this)">+ 加入</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="text-align:center;padding:20px 0;color:var(--youth-text-tertiary);font-size:12px;">
|
|
— 共 28 个社团 —
|
|
</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 goBack() { window.history.back(); }
|
|
function goSearch() { alert('搜索社团'); }
|
|
function goClub(name) { alert(name + '详情'); }
|
|
|
|
function toggleJoin(btn) {
|
|
if (btn.classList.contains('joined')) {
|
|
btn.classList.remove('joined');
|
|
btn.textContent = '+ 加入';
|
|
} else {
|
|
btn.classList.add('joined');
|
|
btn.textContent = '已加入';
|
|
}
|
|
}
|
|
|
|
function switchCategory(el, cat) {
|
|
document.querySelectorAll('.sidebar-item').forEach(i => i.classList.remove('active'));
|
|
el.classList.add('active');
|
|
}
|
|
|
|
function switchFilter(el) {
|
|
document.querySelectorAll('.filter-chip').forEach(i => i.classList.remove('active'));
|
|
el.classList.add('active');
|
|
}</script>
|
|
</body>
|
|
</html>
|
|
|