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.
1175 lines
35 KiB
1175 lines
35 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN" style="height: 948px;">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>青核 Youthome - 工作信息</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
:root {
|
|
/* 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: 64px;
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--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.03);
|
|
--glass-bg: rgba(255, 255, 255, 0.72);
|
|
--glass-blur: blur(20px);
|
|
--glass-border: rgba(255, 255, 255, 0.3);
|
|
|
|
}
|
|
|
|
html, body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-primary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* ===== 状态栏 ===== */
|
|
.status-bar {
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
position: relative;
|
|
z-index: 10;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.status-bar svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* ===== 导航栏 ===== */
|
|
.nav-bar {
|
|
height: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--youth-radius-lg);
|
|
background: var(--youth-bg-card);
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: var(--shadow-card), var(--youth-inset-soft);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.nav-btn:active {
|
|
transform: scale(0.95);
|
|
box-shadow: var(--youth-inset-soft);
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.nav-placeholder {
|
|
width: 40px;
|
|
}
|
|
|
|
/* ===== 分支进度指示 ===== */
|
|
.branch-progress-section {
|
|
padding: 4px 20px 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.branch-progress {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--youth-accent);
|
|
border-radius: var(--youth-radius-xl);
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--youth-border-light);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.branch-progress::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.branch-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--youth-radius-md);
|
|
background: var(--youth-gradient-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 6px rgba(38, 194, 187, 0.3);
|
|
}
|
|
|
|
.branch-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.branch-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.branch-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-accent-foreground);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.branch-track {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.branch-track-bar {
|
|
flex: 1;
|
|
height: 4px;
|
|
background: var(--youth-gray-200);
|
|
border-radius: var(--youth-radius-full);
|
|
box-shadow: var(--youth-inset-soft);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.branch-track-fill {
|
|
width: 50%;
|
|
height: 100%;
|
|
background: var(--youth-gradient-progress);
|
|
border-radius: var(--youth-radius-full);
|
|
position: relative;
|
|
}
|
|
|
|
.branch-track-fill::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
|
|
}
|
|
|
|
.branch-step-text {
|
|
font-size: 11px;
|
|
color: var(--youth-muted-foreground);
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ===== 标题区 ===== */
|
|
.hero-section {
|
|
padding: 6px 20px 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 20px;
|
|
line-height: 1.2;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.hero-title .brand {
|
|
background: var(--youth-gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 15px;
|
|
color: var(--youth-muted-foreground);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ===== 工作状态单选卡片 ===== */
|
|
.status-cards-section {
|
|
padding: 0 16px 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
background: var(--youth-gradient-card);
|
|
border-radius: var(--youth-radius-xl);
|
|
border: 1.5px solid var(--youth-border-light);
|
|
box-shadow: var(--shadow-card);
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.status-card:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.status-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.status-card:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.status-card.selected {
|
|
border-color: transparent;
|
|
background: linear-gradient(135deg, rgba(38, 194, 187, 0.08) 0%, rgba(84, 202, 197, 0.12) 100%);
|
|
box-shadow: 0 4px 16px rgba(38, 194, 187, 0.15), var(--youth-inset-soft);
|
|
}
|
|
|
|
.status-card.selected::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.status-card.selected::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: var(--youth-radius-xl);
|
|
padding: 1.5px;
|
|
background: var(--youth-gradient-primary);
|
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask-composite: exclude;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.status-icon-box {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--youth-radius-lg);
|
|
background: var(--youth-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid var(--youth-border-light);
|
|
box-shadow: var(--youth-inset-soft);
|
|
}
|
|
|
|
.status-card.selected .status-icon-box {
|
|
background: var(--youth-gradient-primary);
|
|
border-color: transparent;
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.35);
|
|
}
|
|
|
|
.status-icon-box svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
color: var(--youth-gray-500);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.status-card.selected .status-icon-box svg {
|
|
color: white;
|
|
}
|
|
|
|
.status-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.status-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.status-desc {
|
|
font-size: 12px;
|
|
color: var(--youth-muted-foreground);
|
|
}
|
|
|
|
.status-radio {
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--youth-gray-300);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: all 0.3s ease;
|
|
background: var(--youth-bg-card);
|
|
}
|
|
|
|
.status-card.selected .status-radio {
|
|
border-color: var(--youth-primary);
|
|
background: var(--youth-gradient-primary);
|
|
box-shadow: 0 2px 6px rgba(38, 194, 187, 0.35);
|
|
}
|
|
|
|
.status-radio svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
color: white;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.status-card.selected .status-radio svg {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* ===== 表单卡片 ===== */
|
|
.form-card {
|
|
margin: 0 16px;
|
|
background: var(--youth-gradient-card);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
border: 1px solid var(--youth-border-light);
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.form-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
|
|
border-radius: 24px 24px 0 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.input-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.input-icon {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--youth-gray-400);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.input-icon svg {
|
|
width: 15px;
|
|
height: 44px;
|
|
}
|
|
|
|
.youth-input {
|
|
background: var(--youth-input);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: var(--youth-radius-lg);
|
|
padding: 9px 12px 9px 36px;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
box-shadow: var(--youth-inset-input);
|
|
transition: all 0.2s ease;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font-family: inherit;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
.youth-input:focus {
|
|
outline: none;
|
|
border-color: var(--youth-primary);
|
|
box-shadow: var(--youth-inset-input), 0 0 0 3px rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
.youth-input::placeholder {
|
|
color: var(--youth-gray-400);
|
|
}
|
|
|
|
/* 下拉选择器样式 */
|
|
.select-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.select-wrapper select {
|
|
background: var(--youth-input);
|
|
border: 1px solid var(--youth-border-light);
|
|
border-radius: var(--youth-radius-lg);
|
|
padding: 9px 32px 9px 36px;
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
box-shadow: var(--youth-inset-input);
|
|
transition: all 0.2s ease;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font-family: inherit;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.select-wrapper select:focus {
|
|
outline: none;
|
|
border-color: var(--youth-primary);
|
|
box-shadow: var(--youth-inset-input), 0 0 0 3px rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
.select-wrapper select:invalid {
|
|
color: var(--youth-gray-400);
|
|
}
|
|
|
|
.select-wrapper select option {
|
|
color: var(--youth-text-primary);
|
|
background: var(--youth-bg-card);
|
|
}
|
|
|
|
.select-arrow {
|
|
position: absolute;
|
|
right: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--youth-gray-400);
|
|
pointer-events: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.select-arrow svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* 城市选择器 - 输入模式 */
|
|
.city-input-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.city-input-wrapper .youth-input {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.city-chevron {
|
|
position: absolute;
|
|
right: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--youth-gray-400);
|
|
pointer-events: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.city-chevron svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* ===== 分组标题 ===== */
|
|
.section-divider {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 20px 0 14px;
|
|
}
|
|
|
|
.section-divider:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.section-divider-line {
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.section-divider-text {
|
|
font-size: 12px;
|
|
color: var(--youth-muted-foreground);
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.section-divider-icon {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--youth-primary);
|
|
flex-shrink: 0;
|
|
box-shadow: 0 0 0 3px rgba(38, 194, 187, 0.15);
|
|
}
|
|
|
|
/* ===== 底部操作区 ===== */
|
|
.bottom-actions {
|
|
padding: 10px 20px 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-save {
|
|
width: 100%;
|
|
height: 44px;
|
|
background: var(--youth-gradient-primary);
|
|
color: var(--youth-primary-foreground);
|
|
border: none;
|
|
border-radius: var(--youth-radius-xl);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
box-shadow: var(--youth-shadow-soft), 0 4px 12px rgba(38, 194, 187, 0.25);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
font-family: inherit;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.btn-save::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
|
|
border-radius: var(--youth-radius-xl) var(--youth-radius-xl) 0 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn-save::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
|
|
transition: left 0.6s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn-save:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
.btn-save:active::after {
|
|
left: 100%;
|
|
}
|
|
|
|
.btn-skip-bottom {
|
|
display: block;
|
|
width: 100%;
|
|
text-align: center;
|
|
margin-top: 14px;
|
|
font-size: 14px;
|
|
color: var(--youth-muted-foreground);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.btn-skip-bottom:active {
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.bg-decoration-2 {
|
|
position: absolute;
|
|
bottom: 100px;
|
|
left: -100px;
|
|
width: 240px;
|
|
height: 240px;
|
|
background: radial-gradient(circle, rgba(84, 202, 197, 0.08) 0%, transparent 70%);
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.content-wrap {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ===== 错误抖动动画 ===== */
|
|
@keyframes shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
25% { transform: translateX(-4px); }
|
|
75% { transform: translateX(4px); }
|
|
}
|
|
|
|
.input-error {
|
|
animation: shake 0.3s ease;
|
|
}
|
|
|
|
.input-error .youth-input,
|
|
.input-error select {
|
|
border-color: var(--youth-state-error);
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
/* ===== 响应式 ===== */
|
|
@media (max-width: 375px) {
|
|
.app-container {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* 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="app-container" id="page-profile-work" style="height: 948px;">
|
|
<!-- 背景装饰 -->
|
|
<div class="bg-decoration"></div>
|
|
<div class="bg-decoration-2"></div>
|
|
|
|
<div class="content-wrap">
|
|
<!-- 状态栏 -->
|
|
<div class="status-bar">
|
|
<span>9:41</span>
|
|
<div class="right-icons">
|
|
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"></path>
|
|
</svg>
|
|
<svg viewBox="0 0 24 24" fill="currentColor">
|
|
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 导航栏 -->
|
|
<div class="nav-bar">
|
|
<button class="nav-btn" data-dom-id="btn-back" onclick="goBack()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="15 18 9 12 15 6"></polyline>
|
|
</svg>
|
|
</button>
|
|
<span class="nav-title">工作信息</span>
|
|
<div class="nav-placeholder"></div>
|
|
</div>
|
|
|
|
<!-- 分支进度指示 -->
|
|
<div class="branch-progress-section">
|
|
|
|
</div>
|
|
|
|
<!-- 标题区 -->
|
|
<div class="hero-section">
|
|
<h1 class="hero-title">
|
|
你的<span class="brand">工作状态</span>是?
|
|
</h1>
|
|
<p class="hero-subtitle">帮助我们为你推荐更合适的内容</p>
|
|
</div>
|
|
|
|
<!-- 工作状态单选卡片组 -->
|
|
<div class="status-cards-section">
|
|
<div class="status-card" data-dom-id="status-employed" data-value="employed" onclick="selectStatus('employed')">
|
|
<div class="status-icon-box">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect>
|
|
<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="status-content">
|
|
<div class="status-title">在职工作</div>
|
|
<div class="status-desc">有稳定的全职工作</div>
|
|
</div>
|
|
<div class="status-radio">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="status-card" data-dom-id="status-freelance" data-value="freelance" onclick="selectStatus('freelance')">
|
|
<div class="status-icon-box">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 2L2 7l10 5 10-5-10-5z"></path>
|
|
<path d="M2 17l10 5 10-5"></path>
|
|
<path d="M2 12l10 5 10-5"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="status-content">
|
|
<div class="status-title">自由职业</div>
|
|
<div class="status-desc">灵活就业,自主安排</div>
|
|
</div>
|
|
<div class="status-radio">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="status-card" data-dom-id="status-startup" data-value="startup" onclick="selectStatus('startup')">
|
|
<div class="status-icon-box">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="status-content">
|
|
<div class="status-title">创业中</div>
|
|
<div class="status-desc">正在打造自己的事业</div>
|
|
</div>
|
|
<div class="status-radio">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="status-card" data-dom-id="status-jobseeking" data-value="jobseeking" onclick="selectStatus('jobseeking')">
|
|
<div class="status-icon-box">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<path d="M12 6v6l4 2"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="status-content">
|
|
<div class="status-title">待业 / 求职中</div>
|
|
<div class="status-desc">正在寻找新的机会</div>
|
|
</div>
|
|
<div class="status-radio">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="20 6 9 17 4 12"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 表单卡片 -->
|
|
<div class="form-card">
|
|
<!-- 分组标题 -->
|
|
<div class="section-divider">
|
|
<div class="section-divider-icon"></div>
|
|
<span class="section-divider-text">工作详情</span>
|
|
<div class="section-divider-line"></div>
|
|
</div>
|
|
|
|
<!-- 公司/单位名称 -->
|
|
<div class="form-group">
|
|
<label class="form-label" for="input-company">公司 / 单位名称</label>
|
|
<div class="input-wrapper" id="company-wrapper">
|
|
<span class="input-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
<path d="M9 22V12h6v10"></path>
|
|
<path d="M3 9h18"></path>
|
|
<path d="M7 7h.01"></path>
|
|
<path d="M12 7h.01"></path>
|
|
<path d="M17 7h.01"></path>
|
|
</svg>
|
|
</span>
|
|
<input type="text"
|
|
id="input-company"
|
|
class="youth-input"
|
|
data-dom-id="input-company"
|
|
placeholder="请输入公司/单位名称"
|
|
maxlength="50"
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 职位/岗位 -->
|
|
<div class="form-group">
|
|
<label class="form-label" for="input-position">职位 / 岗位</label>
|
|
<div class="input-wrapper" id="position-wrapper">
|
|
<span class="input-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect>
|
|
<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>
|
|
<path d="M8 13h.01"></path>
|
|
<path d="M12 13h.01"></path>
|
|
<path d="M16 13h.01"></path>
|
|
</svg>
|
|
</span>
|
|
<input type="text"
|
|
id="input-position"
|
|
class="youth-input"
|
|
data-dom-id="input-position"
|
|
placeholder="请输入你的职位"
|
|
maxlength="30"
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 所在行业 -->
|
|
<div class="form-group">
|
|
<label class="form-label" for="select-industry">所在行业</label>
|
|
<div class="select-wrapper" id="industry-wrapper">
|
|
<span class="input-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<line x1="2" y1="12" x2="22" y2="12"></line>
|
|
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
|
|
</svg>
|
|
</span>
|
|
<select id="select-industry"
|
|
data-dom-id="select-industry"
|
|
required
|
|
>
|
|
<option value="" disabled selected>请选择所在行业</option>
|
|
<option value="internet">互联网 / 科技</option>
|
|
<option value="education">教育 / 培训</option>
|
|
<option value="finance">金融 / 投资</option>
|
|
<option value="medical">医疗 / 健康</option>
|
|
<option value="design">设计 / 创意</option>
|
|
<option value="media">传媒 / 广告</option>
|
|
<option value="manufacturing">制造 / 工业</option>
|
|
<option value="retail">零售 / 电商</option>
|
|
<option value="realestate">房地产 / 建筑</option>
|
|
<option value="government">政府 / 事业单位</option>
|
|
<option value="other">其他</option>
|
|
</select>
|
|
<span class="select-arrow">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
</svg>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 工作城市 -->
|
|
<div class="form-group">
|
|
<label class="form-label" for="select-city">工作城市</label>
|
|
<div class="city-input-wrapper" id="city-wrapper">
|
|
<span class="input-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
|
|
<circle cx="12" cy="10" r="3"></circle>
|
|
</svg>
|
|
</span>
|
|
<select id="select-city"
|
|
class="youth-input"
|
|
data-dom-id="select-city"
|
|
style="padding-right: 40px;"
|
|
required
|
|
>
|
|
<option value="" disabled selected>请选择工作城市</option>
|
|
<option value="beijing">北京</option>
|
|
<option value="shanghai">上海</option>
|
|
<option value="guangzhou">广州</option>
|
|
<option value="shenzhen">深圳</option>
|
|
<option value="hangzhou">杭州</option>
|
|
<option value="chengdu">成都</option>
|
|
<option value="wuhan">武汉</option>
|
|
<option value="nanjing">南京</option>
|
|
<option value="xian">西安</option>
|
|
<option value="chongqing">重庆</option>
|
|
<option value="tianjin">天津</option>
|
|
<option value="suzhou">苏州</option>
|
|
<option value="xiamen">厦门</option>
|
|
<option value="qingdao">青岛</option>
|
|
<option value="changsha">长沙</option>
|
|
<option value="other">其他城市</option>
|
|
</select>
|
|
<span class="city-chevron">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
</svg>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部操作区 -->
|
|
<div class="bottom-actions">
|
|
<button class="btn-save" data-dom-id="btn-save-continue" onclick="handleSaveContinue()">
|
|
保存并继续
|
|
</button>
|
|
<button class="btn-skip-bottom" data-dom-id="btn-skip" onclick="handleSkip()">
|
|
暂不填写
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>// ===== 主题切换 =====
|
|
|
|
// 初始化主题
|
|
})();
|
|
|
|
// ===== 工作状态单选 =====
|
|
let selectedStatus = null;
|
|
|
|
function selectStatus(status) {
|
|
selectedStatus = status;
|
|
const cards = document.querySelectorAll('.status-card');
|
|
cards.forEach(card => {
|
|
if (card.dataset.value === status) {
|
|
card.classList.add('selected');
|
|
} else {
|
|
card.classList.remove('selected');
|
|
}
|
|
});
|
|
}
|
|
|
|
// ===== 返回按钮 =====
|
|
function goBack() {
|
|
window.location.href = 'profile-2.html';
|
|
}
|
|
|
|
// ===== 保存并继续 =====
|
|
function handleSaveContinue() {
|
|
// 清除之前的错误状态
|
|
clearAllErrors();
|
|
|
|
// 验证工作状态
|
|
if (!selectedStatus) {
|
|
shakeElement(document.querySelector('.status-cards-section'));
|
|
alert('请选择你的工作状态');
|
|
return;
|
|
}
|
|
|
|
const company = document.getElementById('input-company').value.trim();
|
|
const position = document.getElementById('input-position').value.trim();
|
|
const industry = document.getElementById('select-industry').value;
|
|
const city = document.getElementById('select-city').value;
|
|
|
|
// 求职中状态下,公司和职位可选
|
|
if (selectedStatus !== 'jobseeking') {
|
|
if (!company) {
|
|
showError('company-wrapper');
|
|
alert('请输入公司/单位名称');
|
|
return;
|
|
}
|
|
if (!position) {
|
|
showError('position-wrapper');
|
|
alert('请输入你的职位');
|
|
return;
|
|
}
|
|
}
|
|
|
|
if (!industry) {
|
|
showError('industry-wrapper');
|
|
alert('请选择所在行业');
|
|
return;
|
|
}
|
|
|
|
if (!city) {
|
|
showError('city-wrapper');
|
|
alert('请选择工作城市');
|
|
return;
|
|
}
|
|
|
|
// 保存到 localStorage
|
|
const profileData = JSON.parse(localStorage.getItem('youth-profile') || '{}');
|
|
profileData.educationType = 'parttime';
|
|
profileData.workStatus = selectedStatus;
|
|
profileData.company = company;
|
|
profileData.position = position;
|
|
profileData.industry = industry;
|
|
profileData.workCity = city;
|
|
localStorage.setItem('youth-profile', JSON.stringify(profileData));
|
|
|
|
// 跳转到第3步
|
|
window.location.href = 'profile-3.html';
|
|
}
|
|
|
|
// ===== 暂不填写 =====
|
|
function handleSkip() {
|
|
if (confirm('确定暂不填写工作信息吗?完善资料可以获得更精准的匹配哦~')) {
|
|
// 即使跳过也标记教育类型为非全日制
|
|
const profileData = JSON.parse(localStorage.getItem('youth-profile') || '{}');
|
|
profileData.educationType = 'parttime';
|
|
if (selectedStatus) {
|
|
profileData.workStatus = selectedStatus;
|
|
}
|
|
localStorage.setItem('youth-profile', JSON.stringify(profileData));
|
|
window.location.href = 'profile-3.html';
|
|
}
|
|
}
|
|
|
|
// ===== 错误提示辅助函数 =====
|
|
function showError(wrapperId) {
|
|
const wrapper = document.getElementById(wrapperId);
|
|
if (wrapper) {
|
|
wrapper.classList.add('input-error');
|
|
setTimeout(() => wrapper.classList.remove('input-error'), 500);
|
|
}
|
|
}
|
|
|
|
function clearAllErrors() {
|
|
document.querySelectorAll('.input-error').forEach(el => {
|
|
el.classList.remove('input-error');
|
|
});
|
|
}
|
|
|
|
function shakeElement(el) {
|
|
if (el) {
|
|
el.style.animation = 'none';
|
|
el.offsetHeight; // 触发重绘
|
|
el.style.animation = 'shake 0.4s ease';
|
|
}
|
|
}
|
|
|
|
// ===== 从 localStorage 恢复已填写的数据 =====
|
|
(function restoreData() {
|
|
const profileData = JSON.parse(localStorage.getItem('youth-profile') || '{}');
|
|
if (profileData.workStatus) {
|
|
selectStatus(profileData.workStatus);
|
|
}
|
|
if (profileData.company) {
|
|
document.getElementById('input-company').value = profileData.company;
|
|
}
|
|
if (profileData.position) {
|
|
document.getElementById('input-position').value = profileData.position;
|
|
}
|
|
if (profileData.industry) {
|
|
document.getElementById('select-industry').value = profileData.industry;
|
|
}
|
|
if (profileData.workCity) {
|
|
document.getElementById('select-city').value = profileData.workCity;
|
|
}
|
|
})();</script>
|
|
</body>
|
|
</html>
|
|
|