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.
729 lines
27 KiB
729 lines
27 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;
|
|
--like: #FF6B9D;
|
|
--like-light: #FFB6C1;
|
|
--like-bg: #FFF0F5;
|
|
|
|
/* =====================================================
|
|
* 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-btn.text-btn { width: auto; font-size: 14px; padding: 0 8px; font-weight: 600; color: var(--like); }
|
|
|
|
/* 头部说明 */
|
|
.header-desc {
|
|
padding: 8px 20px 16px;
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
line-height: 1.6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 滚动区 */
|
|
.scroll-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-bottom: 100px;
|
|
}
|
|
|
|
.scroll-area::-webkit-scrollbar { display: none; }
|
|
|
|
.section-title {
|
|
padding: 16px 20px 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* 表单卡片 */
|
|
.form-card {
|
|
background: var(--youth-bg-card);
|
|
margin: 0 16px 12px;
|
|
border-radius: 12px;
|
|
padding: 4px 16px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 14px 0;
|
|
position: relative;
|
|
gap: 12px;
|
|
}
|
|
|
|
.form-row + .form-row::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-label .icon { font-size: 16px; }
|
|
|
|
.form-value {
|
|
font-size: 14px;
|
|
color: var(--youth-text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.form-value.primary { color: var(--like); font-weight: 600; }
|
|
|
|
.form-arrow {
|
|
color: var(--youth-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 性别选择 */
|
|
.gender-select {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 12px 0 4px;
|
|
}
|
|
|
|
.gender-option {
|
|
flex: 1;
|
|
padding: 12px;
|
|
background: var(--youth-bg-page);
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
border: 2px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.gender-option.selected {
|
|
background: var(--like-bg);
|
|
border-color: var(--like);
|
|
}
|
|
|
|
.gender-icon { font-size: 24px; margin-bottom: 4px; }
|
|
|
|
.gender-name {
|
|
font-size: 12px;
|
|
color: var(--youth-text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.gender-option.selected .gender-name {
|
|
color: var(--like);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 滑块 */
|
|
.slider-row {
|
|
padding: 14px 0;
|
|
}
|
|
|
|
.slider-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.slider-label {
|
|
font-size: 14px;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.slider-value {
|
|
font-size: 14px;
|
|
color: var(--like);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.slider-container {
|
|
position: relative;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.slider-track {
|
|
width: 100%;
|
|
height: 4px;
|
|
background: var(--youth-border-light);
|
|
border-radius: 2px;
|
|
position: relative;
|
|
}
|
|
|
|
.slider-fill {
|
|
position: absolute;
|
|
left: 20%;
|
|
right: 20%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--like-light), var(--like));
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.slider-thumb {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: #fff;
|
|
border: 3px solid var(--like);
|
|
border-radius: 50%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
|
|
cursor: grab;
|
|
}
|
|
|
|
.slider-thumb.left { left: 20%; }
|
|
.slider-thumb.right { right: 20%; }
|
|
|
|
.slider-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 8px;
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
/* 开关 */
|
|
.switch {
|
|
position: relative;
|
|
width: 46px;
|
|
height: 26px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
|
|
.switch-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background-color: var(--youth-border-light);
|
|
transition: 0.3s;
|
|
border-radius: 26px;
|
|
}
|
|
|
|
.switch-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 22px;
|
|
width: 22px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: white;
|
|
transition: 0.3s;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
input:checked + .switch-slider {
|
|
background-color: var(--like);
|
|
}
|
|
|
|
input:checked + .switch-slider:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* 距离滑块 */
|
|
.distance-slider {
|
|
-webkit-appearance: none;
|
|
width: 100%;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: linear-gradient(to right, var(--like) 0%, var(--like) 60%, var(--youth-border-light) 60%, var(--youth-border-light) 100%);
|
|
outline: none;
|
|
}
|
|
|
|
.distance-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
border: 3px solid var(--like);
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
/* 兴趣标签 */
|
|
.interest-section {
|
|
background: var(--youth-bg-card);
|
|
margin: 0 16px 12px;
|
|
border-radius: 14px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.interest-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.interest-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.interest-count {
|
|
font-size: 12px;
|
|
color: var(--like);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.interest-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.interest-tag {
|
|
padding: 6px 14px;
|
|
background: var(--youth-bg-page);
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
color: var(--youth-text-secondary);
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.interest-tag.selected {
|
|
background: var(--like-bg);
|
|
color: var(--like);
|
|
border-color: var(--like);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 底部按钮 */
|
|
.bottom-actions {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
|
|
background: var(--youth-bg-card);
|
|
border-top: 1px solid var(--youth-border-light);
|
|
z-index: 10;
|
|
}
|
|
|
|
.btn-save {
|
|
width: 100%;
|
|
padding: 14px;
|
|
background: linear-gradient(135deg, #FF6B9D, #FF8E53);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
|
|
}
|
|
|
|
/* VIP提示 */
|
|
.vip-badge-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.vip-chip {
|
|
padding: 2px 8px;
|
|
background: linear-gradient(135deg, #FFD700, #FFA500);
|
|
color: #1A1A2E;
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
|
|
/* 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 x="4.5" y="5" width="3" height="6" rx="0.5"/><rect x="9" y="2.5" width="3" height="8.5" rx="0.5"/><rect x="13.5" y="0" width="3" height="11" rx="0.5"/></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 x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"/><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"/></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 text-btn" onclick="resetFilter()">重置</button>
|
|
</div>
|
|
|
|
<div class="header-desc">
|
|
设置你的匹配偏好,我们会为你推荐更合适的人。精准的筛选可以大大提升匹配质量哦~
|
|
</div>
|
|
|
|
<div class="scroll-area">
|
|
<!-- 基本偏好 -->
|
|
<div class="section-title">基本偏好</div>
|
|
<div class="form-card">
|
|
<div class="form-row" style="flex-direction:column;align-items:stretch;gap:0;">
|
|
<span class="form-label"><span class="icon"><span class="icon-svg icon-user"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg></span></span> 想认识</span>
|
|
<div class="gender-select">
|
|
<div class="gender-option" onclick="selectGender(this)">
|
|
<div class="gender-icon"><span class="icon-svg icon-user"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg></span></div>
|
|
<div class="gender-name">男生</div>
|
|
</div>
|
|
<div class="gender-option selected" onclick="selectGender(this)">
|
|
<div class="gender-icon"><span class="icon-svg icon-user"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg></span></div>
|
|
<div class="gender-name">女生</div>
|
|
</div>
|
|
<div class="gender-option" onclick="selectGender(this)">
|
|
<div class="gender-icon">🌈</div>
|
|
<div class="gender-name">全部</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-card">
|
|
<div class="form-row" style="flex-direction:column;align-items:stretch;">
|
|
<div class="slider-row">
|
|
<div class="slider-header">
|
|
<span class="slider-label"><span class="icon">🎂</span> 年龄范围</span>
|
|
<span class="slider-value">18 - 25 岁</span>
|
|
</div>
|
|
<div class="slider-container">
|
|
<div class="slider-track">
|
|
<div class="slider-fill" style="left:0%;right:30%;"></div>
|
|
<div class="slider-thumb left" style="left:0%;"></div>
|
|
<div class="slider-thumb right" style="right:30%;"></div>
|
|
</div>
|
|
</div>
|
|
<div class="slider-labels">
|
|
<span>18</span>
|
|
<span>22</span>
|
|
<span>26</span>
|
|
<span>30+</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-card">
|
|
<div class="form-row" style="flex-direction:column;align-items:stretch;">
|
|
<div class="slider-row">
|
|
<div class="slider-header">
|
|
<span class="slider-label"><span class="icon"><span class="icon-svg icon-map-pin"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg></span></span> 距离范围</span>
|
|
<span class="slider-value">5 km</span>
|
|
</div>
|
|
<input type="range" class="distance-slider" min="1" max="50" value="5" oninput="updateDistance(this.value)">
|
|
<div class="slider-labels">
|
|
<span>1km</span>
|
|
<span>10km</span>
|
|
<span>25km</span>
|
|
<span>50km+</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 身份筛选 -->
|
|
<div class="section-title">身份筛选</div>
|
|
<div class="form-card">
|
|
<div class="form-row">
|
|
<span class="form-label"><span class="icon">🏫</span> 学校</span>
|
|
<span class="form-value">本校优先</span>
|
|
<span class="form-arrow">
|
|
<svg width="14" height="14" 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>
|
|
</span>
|
|
</div>
|
|
<div class="form-row">
|
|
<span class="form-label"><span class="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 d="M6 12v5c3 3 9 3 12 0v-5"/></svg></span></span> 学历</span>
|
|
<span class="form-value">本科及以上</span>
|
|
<span class="form-arrow">
|
|
<svg width="14" height="14" 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>
|
|
</span>
|
|
</div>
|
|
<div class="form-row">
|
|
<span class="form-label"><span class="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 d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg></span></span> 年级</span>
|
|
<span class="form-value">不限</span>
|
|
<span class="form-arrow">
|
|
<svg width="14" height="14" 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>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 兴趣标签 -->
|
|
<div class="section-title">兴趣偏好</div>
|
|
<div class="interest-section">
|
|
<div class="interest-header">
|
|
<span class="interest-title">
|
|
<span class="icon">💖</span>
|
|
感兴趣的领域
|
|
</span>
|
|
<span class="interest-count">已选 6 个</span>
|
|
</div>
|
|
<div class="interest-tags">
|
|
<span class="interest-tag selected" onclick="toggleInterest(this)"><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"/><circle cx="12" cy="13" r="3"/></svg></span> 摄影</span>
|
|
<span class="interest-tag selected" onclick="toggleInterest(this)"><span class="icon-svg icon-clapperboard"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6.13 3.98-.83 2.5"/><path d="M3.77 6.04 2.1 11.1a2 2 0 0 0 .52 2.1l8.1 8.1a2 2 0 0 0 2.1.5l5.06-1.67"/><path d="M15.5 4.5 17 9"/><path d="m17.5 4.5 2.5-2.5 1 1-2.5 2.5"/><path d="m15.5 6.5 2.5 2.5"/><path d="m11.5 10.5 2.5 2.5"/><path d="m7.5 14.5 2.5 2.5"/></svg></span> 电影</span>
|
|
<span class="interest-tag selected" onclick="toggleInterest(this)">☕ 咖啡</span>
|
|
<span class="interest-tag" onclick="toggleInterest(this)"><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"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg></span> 音乐</span>
|
|
<span class="interest-tag selected" onclick="toggleInterest(this)"><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 cx="17.5" cy="10.5" r=".5"/><circle cx="8.5" cy="7.5" r=".5"/><circle cx="6.5" cy="12.5" r=".5"/><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"/></svg></span> 艺术</span>
|
|
<span class="interest-tag" onclick="toggleInterest(this)"><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 d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"/><path d="M4 22h16"/><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"/><path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"/><path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"/></svg></span> 运动</span>
|
|
<span class="interest-tag" onclick="toggleInterest(this)"><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 d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg></span> 阅读</span>
|
|
<span class="interest-tag selected" onclick="toggleInterest(this)">✈️ 旅行</span>
|
|
<span class="interest-tag" onclick="toggleInterest(this)"><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 x1="8" y1="9" x2="8" y2="13"/><line x1="15" y1="12" x2="15.01" y2="12"/><line x1="18" y1="10" x2="18.01" y2="10"/><rect width="20" height="12" x="2" y="6" rx="2"/></svg></span> 游戏</span>
|
|
<span class="interest-tag selected" onclick="toggleInterest(this)">🐱 宠物</span>
|
|
<span class="interest-tag" onclick="toggleInterest(this)">🍜 美食</span>
|
|
<span class="interest-tag" onclick="toggleInterest(this)">💻 科技</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 高级设置 -->
|
|
<div class="section-title">
|
|
高级设置
|
|
<span class="vip-badge-row" style="display:inline-flex;margin-left:6px;">
|
|
<span class="vip-chip">VIP</span>
|
|
</span>
|
|
</div>
|
|
<div class="form-card">
|
|
<div class="form-row">
|
|
<span class="form-label"><span class="icon"><span class="icon-svg icon-check"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></span></span> 仅显示真人认证</span>
|
|
<label class="switch">
|
|
<input type="checkbox" checked>
|
|
<span class="switch-slider"></span>
|
|
</label>
|
|
</div>
|
|
<div class="form-row">
|
|
<span class="form-label">
|
|
<span class="icon">🌟</span> 仅显示VIP
|
|
<span class="vip-chip" style="margin-left:6px;">VIP</span>
|
|
</span>
|
|
<label class="switch">
|
|
<input type="checkbox">
|
|
<span class="switch-slider"></span>
|
|
</label>
|
|
</div>
|
|
<div class="form-row">
|
|
<span class="form-label">
|
|
<span class="icon">📏</span> 身高筛选
|
|
<span class="vip-chip" style="margin-left:6px;">VIP</span>
|
|
</span>
|
|
<span class="form-value">未设置</span>
|
|
<span class="form-arrow">
|
|
<svg width="14" height="14" 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>
|
|
</span>
|
|
</div>
|
|
<div class="form-row">
|
|
<span class="form-label">
|
|
<span class="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"/><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/></svg></span></span> 职业方向
|
|
<span class="vip-chip" style="margin-left:6px;">VIP</span>
|
|
</span>
|
|
<span class="form-value">不限</span>
|
|
<span class="form-arrow">
|
|
<svg width="14" height="14" 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>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="padding: 0 20px 16px; font-size: 11px; color: var(--youth-text-tertiary); line-height: 1.6; text-align: center;">
|
|
完善偏好可以提升 3 倍匹配效率<br>
|
|
升级 VIP 解锁更多高级筛选功能
|
|
</div>
|
|
</div>
|
|
|
|
<div class="bottom-actions">
|
|
<button class="btn-save" onclick="savePreferences()">保存偏好设置</button>
|
|
</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 resetFilter() { alert('重置为默认设置'); }
|
|
function savePreferences() { alert('偏好设置已保存'); }
|
|
|
|
function selectGender(el) {
|
|
document.querySelectorAll('.gender-option').forEach(o => o.classList.remove('selected'));
|
|
el.classList.add('selected');
|
|
}
|
|
|
|
function toggleInterest(el) {
|
|
el.classList.toggle('selected');
|
|
const count = document.querySelectorAll('.interest-tag.selected').length;
|
|
document.querySelector('.interest-count').textContent = `已选 ${count} 个`;
|
|
}
|
|
|
|
function updateDistance(val) {
|
|
const slider = document.querySelector('.distance-slider');
|
|
const percent = (val - 1) / 49 * 100;
|
|
slider.style.background = `linear-gradient(to right, var(--like) 0%, var(--like) ${percent}%, var(--youth-border-light) ${percent}%, var(--youth-border-light) 100%)`;
|
|
document.querySelector('.slider-value').textContent = val + ' km';
|
|
}</script>
|
|
</body>
|
|
</html>
|
|
|