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.
 
 
 
 

692 lines
33 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>设置 - 青核 Youthome</title>
<link rel="stylesheet" href="../css/design-system.css">
<style>
.app { width: 1920px; max-width: 100%; height: 1080px; margin: 0 auto; display: flex; position: relative; overflow: hidden; background: var(--bg-page); }
.sidebar { width: var(--sidebar-width); height: 100%; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; z-index: 20; }
.sidebar-logo { padding: 24px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-light); cursor: pointer; flex-shrink: 0; }
.sidebar-logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 12px rgba(23,176,207,0.25); }
.sidebar-logo-text .main { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sidebar-logo-text .sub { font-size: 11px; color: var(--text-tertiary); }
.sidebar-nav { flex: 1; padding: 16px 12px 24px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-section-title { font-size: 11px; font-weight: 600; color: var(--text-tertiary); padding: 12px 12px 8px; letter-spacing: 0.05em; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all .15s ease; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--border-light); flex-shrink: 0; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; }
.sidebar-user:hover { background: var(--bg-hover); }
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.sidebar-user-desc { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.top-bar { height: var(--topbar-height); background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; flex-shrink: 0; z-index: 15; }
.top-bar-left { flex: 1; display: flex; justify-content: center; }
.search-wrapper { width: 480px; position: relative; }
.search-input { width: 100%; height: 36px; padding: 0 16px 0 42px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg-page); font-family: inherit; outline: none; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-tertiary); pointer-events: none; }
.top-bar-right { display: flex; align-items: center; gap: 12px; position: absolute; right: 32px; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-page); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); flex-shrink: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.publish-btn { height: 36px; padding: 0 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(23,176,207,0.25); font-family: inherit; }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid #fff; }
.content-area { flex: 1; overflow-y: auto; padding: 28px 32px 40px; }
.content-area::-webkit-scrollbar { width: 8px; }
.content-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
/* 设置页双栏布局 */
.settings-layout {
display: grid;
grid-template-columns: 200px 1fr;
gap: 32px;
max-width: 1000px;
margin: 0 auto;
}
.settings-nav { position: sticky; top: 24px; align-self: flex-start; }
.settings-nav-title { font-size: 13px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 12px; padding: 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.settings-nav-list { display: flex; flex-direction: column; gap: 2px; }
.settings-nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
color: var(--text-secondary);
transition: all .15s;
}
.settings-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.settings-nav-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.settings-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.settings-content { min-width: 0; }
.page-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 24px; }
.settings-section {
background: var(--bg-card);
border-radius: 12px;
box-shadow: var(--shadow-card);
border: 1px solid var(--border-light);
margin-bottom: 20px;
overflow: hidden;
}
.section-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border-light);
display: flex;
align-items: center;
gap: 10px;
}
.section-icon {
width: 36px; height: 36px;
border-radius: 8px;
background: var(--primary-bg);
display: flex; align-items: center; justify-content: center;
color: var(--primary);
}
.section-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.section-desc { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
border-bottom: 1px solid var(--border-light);
transition: background .15s;
}
.setting-item:last-child { border-bottom: none; }
.setting-item:hover { background: var(--bg-hover); }
.setting-info { flex: 1; }
.setting-name { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.setting-desc { font-size: 12px; color: var(--text-tertiary); }
.setting-right { display: flex; align-items: center; gap: 10px; }
.setting-value { font-size: 13px; color: var(--text-tertiary); }
.setting-arrow { color: var(--text-tertiary); }
/* Switch开关 */
.switch {
position: relative;
width: 40px;
height: 24px;
background: var(--border);
border-radius: 12px;
cursor: pointer;
transition: background .2s;
}
.switch.on { background: var(--primary); }
.switch::after {
content: '';
position: absolute;
top: 2px; left: 2px;
width: 20px; height: 20px;
background: var(--bg-card);
border-radius: 50%;
transition: left .2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch.on::after { left: 18px; }
.danger-btn {
color: var(--error) !important;
}
svg { stroke-linecap: round; stroke-linejoin: round; }
/* ===== 发布按钮 ===== */
.sidebar-publish {
padding: 12px 12px 8px;
flex-shrink: 0;
}
.publish-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 44px;
background: var(--primary);
color: #fff;
border-radius: 12px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all .2s ease;
box-shadow: 0 4px 12px rgba(23, 176, 207, 0.25);
}
.publish-btn:hover {
opacity: 0.92;
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(23, 176, 207, 0.35);
}
.publish-btn svg { width: 20px; height: 20px; }
.publish-btn .publish-arrow { width: 16px; height: 16px; opacity: 0.8; transition: transform .2s; }
.publish-btn:hover .publish-arrow { transform: translateY(1px); }
.publish-dropdown {
display: none;
margin-top: 6px;
background: var(--bg-card, #fff);
border: 1px solid var(--border-light, #eee);
border-radius: 12px;
padding: 6px;
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sidebar-publish:hover .publish-dropdown { display: block; }
.publish-option {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
border-radius: 8px;
cursor: pointer;
transition: background .15s;
}
.publish-option:hover { background: var(--bg-hover, #f5f5f5); }
.publish-option svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.publish-option-title { font-size: 14px; font-weight: 600; color: var(--text-primary, #1a1a1a); }
.publish-option-desc { font-size: 11px; color: var(--text-tertiary, #999); margin-top: 2px; }
/* ===== 导航项角标 ===== */
.nav-item-label {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;
}
.nav-badge {
min-width: 18px;
height: 18px;
padding: 0 5px;
background: #FF4D4F;
color: #fff;
font-size: 11px;
font-weight: 600;
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
/* ===== 底部用户卡片箭头 ===== */
.sidebar-user-arrow {
width: 16px;
height: 16px;
color: var(--text-tertiary, #999);
flex-shrink: 0;
margin-left: auto;
}
</style>
<link rel="stylesheet" href="../css/web-refresh.css?v=20261020-brand-color">
</head>
<body class="settings-page">
<div class="app">
<aside class="sidebar">
<div class="sidebar-logo" onclick="location.href='feed.html'">
<div class="sidebar-logo-icon">青</div>
<div class="sidebar-logo-text">
<span class="main">青核 Youthome</span>
<span class="sub">校园实名社交</span>
</div>
</div>
<!-- 发布按钮 -->
<div class="sidebar-publish">
<div class="publish-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
<span>发布</span>
<svg class="publish-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
</div>
<div class="publish-dropdown">
<div class="publish-option" onclick="location.href='publish-post.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<circle cx="8.5" cy="8.5" r="1.5"></circle>
<polyline points="21 15 16 10 5 21"></polyline>
</svg>
<div class="publish-option-text">
<div class="publish-option-title">发布动态</div>
<div class="publish-option-desc">分享图文、心情</div>
</div>
</div>
<div class="publish-option" onclick="location.href='publish-video.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="23 7 16 12 23 17 23 7"></polygon>
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
</svg>
<div class="publish-option-text">
<div class="publish-option-title">发布视频</div>
<div class="publish-option-desc">上传短视频</div>
</div>
</div>
<div class="publish-option" onclick="location.href='activity-create.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<line x1="12" y1="14" x2="12" y2="18"></line>
<line x1="10" y1="16" x2="14" y2="16"></line>
</svg>
<div class="publish-option-text">
<div class="publish-option-title">发起活动</div>
<div class="publish-option-desc">组织线下聚会</div>
</div>
</div>
</div>
</div>
<nav class="sidebar-nav">
<div class="nav-section-title">探索</div>
<div class="nav-item" onclick="location.href='feed.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path>
</svg>
动态广场
</div>
<div class="nav-item" onclick="location.href='video.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="23 7 16 12 23 17 23 7"></polygon>
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
</svg>
视频广场
</div>
<div class="nav-item" onclick="location.href='activities.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<div class="nav-section-title">我的</div>
<div class="nav-item" onclick="location.href='me.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
<div class="nav-item" onclick="location.href='notification.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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 class="nav-item-label">
消息通知
<span class="nav-badge">3</span>
</div>
</div>
<div class="nav-item active" onclick="location.href='settings.html'">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<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>
设置
</div>
</nav>
<div class="sidebar-footer">
<div class="sidebar-user" onclick="location.href='me.html'">
<div class="sidebar-avatar">
</div>
<div class="sidebar-user-info">
<div class="sidebar-user-name">林小夏</div>
<div class="sidebar-user-desc">复旦大学</div>
</div>
<svg class="sidebar-user-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</div>
</div>
</aside>
<div class="main-area">
<header class="top-bar">
<div class="top-bar-left">
<div class="search-wrapper">
<input type="text" class="search-input" placeholder="搜索内容、用户、话题…">
</div>
</div>
<div class="top-bar-right">
<button class="icon-btn"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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></button>
<button class="publish-btn"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M12 5v14"></path><path d="M5 12h14"></path></svg>发布</button>
<div class="avatar-btn">小</div>
</div>
</header>
<main class="content-area">
<div class="settings-layout">
<!-- 左侧导航 -->
<nav class="settings-nav">
<div class="settings-nav-title">设置分类</div>
<div class="settings-nav-list">
<div class="settings-nav-item active" data-settings-section="account">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>
账号安全
</div>
<div class="settings-nav-item" data-settings-section="privacy">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
<div class="settings-nav-item" data-settings-section="notifications">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
<div class="settings-nav-item" data-settings-section="general">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
通用设置
</div>
<div class="settings-nav-item" data-settings-section="about">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
关于青核
</div>
</div>
</nav>
<!-- 右侧内容 -->
<div class="settings-content">
<header class="settings-page-heading">
<div>
<h1 class="page-title">账号安全</h1>
<p class="settings-page-description">管理登录方式、身份认证与账号访问安全。</p>
</div>
<span class="settings-status"><span></span>账号状态正常</span>
</header>
<!-- 账号安全 -->
<div class="settings-section" data-settings-panel="account">
<div class="section-header">
<div class="section-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>
</div>
<div>
<div class="section-title">账号安全</div>
<div class="section-desc">管理您的账号信息和安全设置</div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">手机号</div>
<div class="setting-desc">用于登录和接收通知</div>
</div>
<div class="setting-right">
<span class="setting-value">138****8888</span>
<button class="btn btn-text" style="color: var(--primary);" onclick="openChangePhoneModal()">更换</button>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">登录密码</div>
<div class="setting-desc">定期修改密码可提高账号安全性</div>
</div>
<div class="setting-right">
<button class="btn btn-text" style="color: var(--primary);">修改</button>
<svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">实名认证</div>
<div class="setting-desc">学生身份认证,享受完整功能</div>
</div>
<div class="setting-right">
<span class="tag tag-success" style="font-size: 12px;">已认证</span>
<svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg>
</div>
</div>
<div class="setting-item" data-setting-action="devices">
<div class="setting-info">
<div class="setting-name">登录设备</div>
<div class="setting-desc">查看并管理最近登录过的设备</div>
</div>
<div class="setting-right">
<span class="setting-value">2 台设备</span>
<svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg>
</div>
</div>
</div>
<!-- 隐私设置 -->
<div class="settings-section" data-settings-panel="privacy" hidden>
<div class="section-header">
<div class="section-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>
</div>
<div>
<div class="section-title">隐私设置</div>
<div class="section-desc">控制您的个人信息可见性</div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">谁可以查看我的动态</div>
<div class="setting-desc">控制动态的可见范围</div>
</div>
<div class="setting-right">
<span class="setting-value">所有人</span>
<svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">允许陌生人私信</div>
<div class="setting-desc">关闭后仅互相关注的用户可发送私信</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">展示在线状态</div>
<div class="setting-desc">关闭后其他用户无法看到您的在线状态</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">个性化推荐</div>
<div class="setting-desc">基于您的行为推荐内容和活动</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
</div>
<!-- 通知设置 -->
<div class="settings-section" data-settings-panel="notifications" hidden>
<div class="section-header">
<div class="section-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
<div>
<div class="section-title">通知设置</div>
<div class="section-desc">管理各类消息通知</div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">点赞通知</div>
<div class="setting-desc">收到点赞时通知我</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">评论通知</div>
<div class="setting-desc">收到评论时通知我</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">新粉丝通知</div>
<div class="setting-desc">有新粉丝时通知我</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">活动提醒</div>
<div class="setting-desc">报名的活动开始前提醒我</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
</div>
<!-- 通用设置 -->
<div class="settings-section" data-settings-panel="general" hidden>
<div class="section-header">
<div class="section-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><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>
</div>
<div>
<div class="section-title">通用</div>
<div class="section-desc">应用通用设置</div>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">清理缓存</div>
<div class="setting-desc">重置已读状态和临时记录,动态与草稿不受影响</div>
</div>
<div class="setting-right">
<span class="setting-value">计算中…</span>
<button class="btn btn-text" style="color: var(--error);" onclick="openClearCacheModal()">清理</button>
</div>
</div>
<div class="setting-item">
<div class="setting-info">
<div class="setting-name">自动播放视频</div>
<div class="setting-desc">在 Wi-Fi 环境下自动播放列表视频</div>
</div>
<div class="setting-right">
<div class="switch on"></div>
</div>
</div>
</div>
<!-- 关于青核 -->
<div class="settings-section" data-settings-panel="about" hidden>
<div class="section-header">
<div class="section-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
</div>
<div>
<div class="section-title">关于青核</div>
<div class="section-desc">版本、帮助与服务协议</div>
</div>
</div>
<div class="setting-item" data-setting-action="help">
<div class="setting-info"><div class="setting-name">帮助与反馈</div><div class="setting-desc">查看常见问题或提交使用反馈</div></div>
<div class="setting-right"><svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg></div>
</div>
<div class="setting-item" data-setting-action="agreement">
<div class="setting-info"><div class="setting-name">用户协议</div><div class="setting-desc">了解平台服务规则与双方权利</div></div>
<div class="setting-right"><svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg></div>
</div>
<div class="setting-item" data-setting-action="privacy-policy">
<div class="setting-info"><div class="setting-name">隐私政策</div><div class="setting-desc">了解个人信息的收集和使用方式</div></div>
<div class="setting-right"><svg class="setting-arrow" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 18 6-6-6-6"></path></svg></div>
</div>
<div class="setting-item">
<div class="setting-info"><div class="setting-name">当前版本</div><div class="setting-desc">青核 Youthome 网页端</div></div>
<div class="setting-right"><span class="setting-value">v1.0.0</span></div>
</div>
</div>
<!-- 退出登录 -->
<div class="settings-danger-zone">
<div class="setting-item" style="justify-content: center; cursor: pointer;" onclick="logout()">
<div class="setting-info" style="text-align: center;">
<div class="setting-name danger-btn">退出登录</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
function openChangePhoneModal() { alert('更换手机号弹窗'); }
function openClearCacheModal() { alert('清理缓存确认弹窗'); }
async function logout() {
if (!confirm('确定要退出登录吗?本机保存的动态和草稿会保留,下次登录还能看到。')) return;
if (window.YouthomeApi?.token() && !window.YouthomeApi.isLocal()) {
try { await window.YouthomeApi.request('/users/logout', { method: 'POST' }); }
catch (error) { alert(error.message || '退出登录失败,请重试'); return; }
}
localStorage.removeItem('youthome:web:accessToken');
localStorage.removeItem('youthome:web:authUser');
sessionStorage.removeItem('youthome:web:accessToken');
sessionStorage.removeItem('youthome:web:authUser');
location.href = 'login.html';
}
</script>
<script src="../js/web-local-data.js?v=20261016-local" defer></script>
<script src="../js/web-api.js?v=20261020-api" defer></script>
<script src="../js/web-shell.js?v=20261013-message-links" defer></script>
</body>
</html>