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.
 
 

574 lines
18 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;
--danger: #F5222D;
--youth-success: #52C41A;
--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); }
.nav-spacer { width: 36px; }
/* 滚动区域 */
.scroll-area {
flex: 1;
overflow-y: auto;
padding-bottom: 20px;
}
.scroll-area::-webkit-scrollbar { display: none; }
/* 安全评分卡片 */
.security-card {
margin: 8px 16px 16px;
background: linear-gradient(135deg, #26C2BB 0%, #54CAC5 100%);
border-radius: 16px;
padding: 20px;
color: #fff;
position: relative;
overflow: hidden;
box-shadow: 0 6px 20px rgba(38, 194, 187, 0.3);
}
.security-card::before {
content: '';
position: absolute;
top: -40px;
right: -30px;
width: 140px;
height: 140px;
border-radius: 50%;
background: rgba(255,255,255,0.1);
}
.security-card::after {
content: '';
position: absolute;
bottom: -60px;
left: -20px;
width: 120px;
height: 120px;
border-radius: 50%;
background: rgba(255,255,255,0.08);
}
.security-top {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
z-index: 1;
}
.security-label {
font-size: 14px;
opacity: 0.9;
margin-bottom: 4px;
}
.security-score {
font-size: 36px;
font-weight: 800;
line-height: 1;
}
.security-level {
display: inline-block;
padding: 4px 10px;
background: rgba(255,255,255,0.2);
border-radius: 10px;
font-size: 12px;
font-weight: 600;
backdrop-filter: blur(10px);
}
.security-bar {
margin-top: 14px;
position: relative;
z-index: 1;
}
.bar-track {
height: 6px;
background: rgba(255,255,255,0.25);
border-radius: 3px;
overflow: hidden;
}
.bar-fill {
height: 100%;
width: 85%;
background: #fff;
border-radius: 3px;
box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.security-tip {
margin-top: 10px;
font-size: 12px;
opacity: 0.85;
position: relative;
z-index: 1;
}
/* 设置分组 */
.settings-group {
margin: 0 16px 16px;
background: var(--youth-bg-card);
border-radius: 14px;
overflow: hidden;
}
.group-title {
font-size: 13px;
color: var(--youth-text-tertiary);
font-weight: 500;
padding: 0 4px 8px;
margin: 0 16px;
}
.setting-item {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
position: relative;
cursor: pointer;
transition: background-color 0.2s ease;
}
.setting-item:active { background: var(--youth-bg-page); }
.setting-item + .setting-item::before {
content: '';
position: absolute;
top: 0;
left: 52px;
right: 16px;
height: 1px;
background: var(--youth-border-light);
}
.setting-icon {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
color: #fff;
}
.setting-icon.c1 { background: linear-gradient(135deg, #54CAC5, #26C2BB); }
.setting-icon.c2 { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.setting-icon.c3 { background: linear-gradient(135deg, #F472B6, #EC4899); }
.setting-icon.c4 { background: linear-gradient(135deg, #FFD666, #FAAD14); }
.setting-icon.c5 { background: linear-gradient(135deg, #34D399, #10B981); }
.setting-icon.c6 { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.setting-icon.c7 { background: linear-gradient(135deg, #FB7185, #F43F5E); }
.setting-icon.c8 { background: linear-gradient(135deg, #94A3B8, #64748B); }
.setting-content {
flex: 1;
min-width: 0;
}
.setting-name {
font-size: 14px;
color: var(--youth-text-primary);
font-weight: 500;
}
.setting-desc {
font-size: 11px;
color: var(--youth-text-tertiary);
margin-top: 2px;
}
.setting-value {
font-size: 13px;
color: var(--youth-text-tertiary);
flex-shrink: 0;
max-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.setting-value .badge {
display: inline-block;
padding: 2px 6px;
background: var(--youth-primary-bg);
color: var(--youth-primary);
border-radius: 16px;
font-size: 10px;
font-weight: 600;
}
.setting-value .unbind {
color: var(--youth-danger-500);
}
.arrow {
color: var(--youth-text-tertiary);
flex-shrink: 0;
}
/* 开关样式 */
.switch {
width: 44px;
height: 24px;
background: var(--youth-border-light);
border-radius: 12px;
position: relative;
flex-shrink: 0;
cursor: pointer;
transition: background 0.3s ease;
}
.switch.on { background: var(--youth-primary); }
.switch::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.switch.on::after { transform: translateX(20px); }
/* 注销按钮 */
.logout-section {
padding: 20px 16px;
}
.logout-btn {
width: 100%;
height: 48px;
background: var(--youth-bg-card);
border: none;
border-radius: 12px;
color: var(--youth-danger-500);
font-size: 15px;
font-weight: 600;
cursor: pointer;
font-family: inherit;
transition: all 0.2s ease;
}
.logout-btn:active { opacity: 0.7; }
/* 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>
<div class="nav-spacer"></div>
</div>
<div class="scroll-area">
<!-- 安全评分 -->
<div class="security-card">
<div class="security-top">
<div>
<div class="security-label">账号安全评分</div>
<div class="security-score">85<span style="font-size:18px;font-weight:600;">/100</span></div>
</div>
<span class="security-level">安全等级:良好</span>
</div>
<div class="security-bar">
<div class="bar-track">
<div class="bar-fill"></div>
</div>
</div>
<div class="security-tip"><span class="icon-svg icon-lightbulb"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"></path><path d="M9 18h6"></path><path d="M10 22h4"></path></svg></span> 开启登录保护和绑定邮箱可提升安全分</div>
</div>
<!-- 账号信息 -->
<div class="group-title">账号信息</div>
<div class="settings-group">
<div class="setting-item" onclick="goPage('手机号')">
<div class="setting-content">
<div class="setting-name">绑定手机号</div>
<div class="setting-desc">可用于登录和找回密码</div>
</div>
<div class="setting-value">138****8888</div>
<svg class="arrow" width="18" height="18" 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 class="setting-item" onclick="goPage('邮箱')">
<div class="setting-content">
<div class="setting-name">绑定邮箱</div>
<div class="setting-desc">用于接收重要通知</div>
</div>
<div class="setting-value unbind">未绑定</div>
<svg class="arrow" width="18" height="18" 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 class="setting-item" onclick="goPage('青核号')">
<div class="setting-content">
<div class="setting-name">青核号</div>
<div class="setting-desc">仅可设置一次</div>
</div>
<div class="setting-value">qinghe_2024</div>
<svg class="arrow" width="18" height="18" 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="group-title">安全设置</div>
<div class="settings-group">
<div class="setting-item" onclick="goPage('密码')">
<div class="setting-content">
<div class="setting-name">登录密码</div>
<div class="setting-desc">定期修改密码更安全</div>
</div>
<div class="setting-value"><span class="badge">已设置</span></div>
<svg class="arrow" width="18" height="18" 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 class="setting-item" onclick="goPage('支付密码')">
<div class="setting-content">
<div class="setting-name">支付密码</div>
<div class="setting-desc">用于消费和转账验证</div>
</div>
<div class="setting-value unbind">未设置</div>
<svg class="arrow" width="18" height="18" 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 class="setting-item" onclick="toggleSwitch(this)">
<div class="setting-content">
<div class="setting-name">登录保护</div>
<div class="setting-desc">新设备登录需短信验证</div>
</div>
<div class="switch on"></div>
</div>
<div class="setting-item" onclick="goPage('登录设备')">
<div class="setting-content">
<div class="setting-name">登录设备管理</div>
<div class="setting-desc">当前有 3 台设备登录</div>
</div>
<svg class="arrow" width="18" height="18" 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="group-title">账号管理</div>
<div class="settings-group">
<div class="setting-item" onclick="goPage('实名认证')">
<div class="setting-content">
<div class="setting-name">实名认证</div>
<div class="setting-desc">完成认证解锁全部功能</div>
</div>
<div class="setting-value"><span class="badge" style="background:#FFF7E6;color:#FAAD14;">待认证</span></div>
<svg class="arrow" width="18" height="18" 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 class="setting-item" onclick="goPage('第三方登录')">
<div class="setting-content">
<div class="setting-name">第三方账号</div>
<div class="setting-desc">微信、QQ、微博登录</div>
</div>
<div class="setting-value">已绑定 2 个</div>
<svg class="arrow" width="18" height="18" 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="logout-section">
<button class="logout-btn" onclick="goLogout()">注销账号</button>
</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 goPage(name) { alert('跳转' + name); }
function goLogout() { alert('注销账号'); }
function toggleSwitch(item) {
const sw = item.querySelector('.switch');
sw.classList.toggle('on');
}</script>
</body>
</html>