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.
1733 lines
52 KiB
1733 lines
52 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN" class="light">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>青核 Youthome - 实名认证</title>
|
|
<style id="theme-vars">
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
:root {
|
|
--youthome-primary: #17B0CF;
|
|
--youthome-primary-hover: #1298B3;
|
|
--youthome-primary-active: #0E8098;
|
|
--youthome-primary-foreground: #FFFFFF;
|
|
--youthome-primary-light: #E8F8FB;
|
|
--youthome-primary-lighter: #E8F8FB;
|
|
--youthome-mint: #D4F3F1;
|
|
--youthome-charcoal: #2D2D2D;
|
|
--youthome-rice: #FAF8F5;
|
|
--youthome-warm-orange: #FFB380;
|
|
--youthome-warm-orange-light: #FFF0E6;
|
|
--youthome-background: #F7F8FA;
|
|
--youthome-foreground: #1F1F1F;
|
|
--youthome-card: #FFFFFF;
|
|
--youthome-text-primary: #1F1F1F;
|
|
--youthome-text-regular: #595959;
|
|
--youthome-text-secondary: #8C8C8C;
|
|
--youthome-text-tertiary: #BFBFBF;
|
|
--youthome-muted: #F2F3F5;
|
|
--youthome-muted-foreground: #8C8C8C;
|
|
--youthome-border: #E8E8E8;
|
|
--youthome-border-light: #F0F0F0;
|
|
--youthome-input: #E8E8E8;
|
|
--youthome-ring: #17B0CF;
|
|
--youthome-success: #52C41A;
|
|
--youthome-warning: #FAAD14;
|
|
--youthome-error: #F5222D;
|
|
--youthome-error-light: #FFF1F0;
|
|
--youthome-radius-sm: 4px;
|
|
--youthome-radius-md: 8px;
|
|
--youthome-radius-lg: 12px;
|
|
--youthome-radius-xl: 16px;
|
|
--youthome-radius-2xl: 20px;
|
|
--youthome-radius-full: 9999px;
|
|
--youthome-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--youthome-shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.1);
|
|
--youthome-shadow-btn: 0 2px 8px rgba(23, 176, 207, 0.25);
|
|
--youthome-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
/* ===== 标准尺寸变量 ===== */
|
|
--sidebar-width: 240px;
|
|
--topbar-height: 56px;
|
|
--control-height: 44px;
|
|
--page-width: 1920px;
|
|
--search-width: 360px;
|
|
--search-height: 36px;
|
|
--nav-item-height: 48px;
|
|
--page-padding-x: 24px;
|
|
--card-padding: 20px;
|
|
--primary: #17B0CF;
|
|
--primary-hover: #1298B3;
|
|
--primary-light: #73D3E6;
|
|
--bg-page: #F7F8FA;
|
|
--bg-card: #FFFFFF;
|
|
--text-primary: #1F1F1F;
|
|
--text-secondary: #8C8C8C;
|
|
--border: #E8E8E8;
|
|
}
|
|
</style>
|
|
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.1/dist/index.global.js"></script>
|
|
<script src="https://unpkg.com/lucide@1.8.0/dist/umd/lucide.min.js"></script>
|
|
<style type="text/tailwindcss">
|
|
@theme inline {
|
|
--color-background: var(--youthome-background);
|
|
--color-foreground: var(--youthome-foreground);
|
|
--color-card: var(--youthome-card);
|
|
--color-primary: var(--youthome-primary);
|
|
--color-primary-foreground: var(--youthome-primary-foreground);
|
|
--color-muted: var(--youthome-muted);
|
|
--color-muted-foreground: var(--youthome-muted-foreground);
|
|
--color-border: var(--youthome-border);
|
|
--color-input: var(--youthome-input);
|
|
--color-ring: var(--youthome-ring);
|
|
--color-success: var(--youthome-success);
|
|
--color-warning: var(--youthome-warning);
|
|
--color-error: var(--youthome-error);
|
|
--radius-sm: var(--youthome-radius-sm);
|
|
--radius-md: var(--youthome-radius-md);
|
|
--radius-lg: var(--youthome-radius-lg);
|
|
--radius-xl: var(--youthome-radius-xl);
|
|
}
|
|
@layer base {
|
|
body { background: var(--youthome-background); color: var(--youthome-text-regular); font-family: var(--youthome-font-sans); }
|
|
}
|
|
</style>
|
|
<style id="page-custom-styles">
|
|
/* ===== 页面自定义样式 ===== */
|
|
|
|
/* 侧边栏导航项 */
|
|
.sidebar-nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
height: 40px;
|
|
padding: 0 16px;
|
|
border-radius: 10px;
|
|
transition: background-color 0.15s ease;
|
|
cursor: pointer;
|
|
margin-bottom: 2px;
|
|
}
|
|
.sidebar-nav-item:hover {
|
|
background: var(--youthome-muted);
|
|
}
|
|
.sidebar-nav-item.active {
|
|
background: var(--youthome-primary);
|
|
}
|
|
.sidebar-nav-item.active .nav-icon {
|
|
color: #FFFFFF;
|
|
}
|
|
.sidebar-nav-item.active .nav-text {
|
|
color: #FFFFFF;
|
|
font-weight: 600;
|
|
}
|
|
.sidebar-nav-item .nav-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
color: var(--youthome-text-secondary);
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-nav-item .nav-text {
|
|
font-size: 14px;
|
|
color: var(--youthome-text-regular);
|
|
}
|
|
|
|
/* 侧边栏分组标题 */
|
|
.sidebar-group-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-tertiary);
|
|
padding: 0 16px;
|
|
margin-bottom: 6px;
|
|
margin-top: 16px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
/* 发布按钮 */
|
|
.publish-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, #73D3E6 0%, #17B0CF 50%, #0E8098 100%);
|
|
color: white;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
box-shadow: 0 3px 12px rgba(23, 176, 207, 0.3);
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
}
|
|
.publish-btn::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%);
|
|
pointer-events: none;
|
|
}
|
|
.publish-btn:hover {
|
|
box-shadow: 0 4px 16px rgba(23, 176, 207, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
.publish-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* 底部用户卡片 */
|
|
.sidebar-user-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
background: var(--youthome-muted);
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease;
|
|
margin-top: auto;
|
|
}
|
|
.sidebar-user-card:hover {
|
|
background: var(--youthome-border);
|
|
}
|
|
.sidebar-user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #73D3E6 0%, #17B0CF 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.sidebar-user-name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.sidebar-user-desc {
|
|
font-size: 11px;
|
|
color: var(--youthome-text-tertiary);
|
|
margin-top: 1px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* 滚动条美化 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #D9D9D9;
|
|
border-radius: 3px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #BFBFBF;
|
|
}
|
|
|
|
/* ===== 认证卡片 ===== */
|
|
.auth-card {
|
|
width: 560px;
|
|
background: #FFFFFF;
|
|
border-radius: 20px;
|
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
|
|
padding: 40px 48px;
|
|
}
|
|
|
|
/* 步骤指示器 */
|
|
.steps-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 32px;
|
|
}
|
|
.step-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
.step-circle {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
position: relative;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.step-circle.pending {
|
|
background: var(--youthome-muted);
|
|
color: var(--youthome-text-tertiary);
|
|
border: 2px solid var(--youthome-border);
|
|
}
|
|
.step-circle.active {
|
|
background: linear-gradient(135deg, #73D3E6 0%, #17B0CF 50%, #0E8098 100%);
|
|
color: white;
|
|
box-shadow: 0 3px 12px rgba(23, 176, 207, 0.4), 0 0 0 4px rgba(23, 176, 207, 0.12);
|
|
animation: stepPulse 2s ease-in-out infinite;
|
|
}
|
|
@keyframes stepPulse {
|
|
0%, 100% { box-shadow: 0 3px 12px rgba(23, 176, 207, 0.4), 0 0 0 4px rgba(23, 176, 207, 0.12); }
|
|
50% { box-shadow: 0 3px 16px rgba(23, 176, 207, 0.5), 0 0 0 6px rgba(23, 176, 207, 0.15); }
|
|
}
|
|
.step-circle.completed {
|
|
background: linear-gradient(135deg, #73D3E6 0%, #17B0CF 50%, #0E8098 100%);
|
|
color: white;
|
|
box-shadow: 0 2px 6px rgba(23, 176, 207, 0.3);
|
|
}
|
|
.step-circle.completed svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
.step-label {
|
|
margin-top: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--youthome-text-tertiary);
|
|
white-space: nowrap;
|
|
}
|
|
.step-item.active .step-label {
|
|
color: var(--youthome-primary);
|
|
font-weight: 600;
|
|
}
|
|
.step-item.completed .step-label {
|
|
color: var(--youthome-primary);
|
|
}
|
|
.step-connector {
|
|
width: 80px;
|
|
height: 3px;
|
|
margin: 0 8px;
|
|
margin-bottom: 22px;
|
|
border-radius: 2px;
|
|
background: var(--youthome-border);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.step-connector.filled {
|
|
background: linear-gradient(90deg, #73D3E6 0%, #17B0CF 100%);
|
|
}
|
|
|
|
/* 表单输入 */
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
.form-label {
|
|
display: block;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--youthome-text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
.form-input {
|
|
width: 100%;
|
|
height: 46px;
|
|
padding: 0 16px;
|
|
border: 1px solid var(--youthome-border);
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
color: var(--youthome-text-primary);
|
|
background: #FFFFFF;
|
|
transition: all 0.2s ease;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
|
|
}
|
|
.form-input:hover {
|
|
border-color: var(--youthome-text-tertiary);
|
|
}
|
|
.form-input:focus {
|
|
border-color: var(--youthome-primary);
|
|
box-shadow: 0 0 0 3px rgba(23, 176, 207, 0.12);
|
|
outline: none;
|
|
}
|
|
.form-input::placeholder {
|
|
color: var(--youthome-text-tertiary);
|
|
}
|
|
.form-input-wrapper {
|
|
position: relative;
|
|
}
|
|
.form-input-icon {
|
|
position: absolute;
|
|
left: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--youthome-text-tertiary);
|
|
pointer-events: none;
|
|
}
|
|
.form-input-wrapper .form-input {
|
|
padding-left: 42px;
|
|
}
|
|
.form-input-wrapper:focus-within .form-input-icon {
|
|
color: var(--youthome-primary);
|
|
}
|
|
.form-hint {
|
|
font-size: 12px;
|
|
color: var(--youthome-text-tertiary);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* 上传区域 */
|
|
.upload-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
.upload-box {
|
|
border: 2px dashed var(--youthome-border);
|
|
border-radius: 12px;
|
|
padding: 24px 16px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: var(--youthome-muted);
|
|
}
|
|
.upload-box:hover {
|
|
border-color: var(--youthome-primary);
|
|
background: var(--youthome-primary-lighter);
|
|
}
|
|
.upload-box-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin: 0 auto 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youthome-primary);
|
|
}
|
|
.upload-box-title {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
.upload-box-desc {
|
|
font-size: 11px;
|
|
color: var(--youthome-text-tertiary);
|
|
}
|
|
|
|
/* 大上传区 */
|
|
.upload-area-large {
|
|
border: 2px dashed var(--youthome-border);
|
|
border-radius: 12px;
|
|
padding: 32px 24px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: var(--youthome-muted);
|
|
}
|
|
.upload-area-large:hover {
|
|
border-color: var(--youthome-primary);
|
|
background: var(--youthome-primary-lighter);
|
|
}
|
|
.upload-area-large.dragover {
|
|
border-color: var(--youthome-primary);
|
|
background: var(--youthome-primary-lighter);
|
|
transform: scale(0.99);
|
|
}
|
|
.upload-area-icon {
|
|
width: 52px;
|
|
height: 52px;
|
|
margin: 0 auto 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--youthome-primary);
|
|
}
|
|
.upload-area-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-primary);
|
|
margin-bottom: 4px;
|
|
}
|
|
.upload-area-desc {
|
|
font-size: 12px;
|
|
color: var(--youthome-text-tertiary);
|
|
margin-bottom: 6px;
|
|
}
|
|
.upload-area-hint {
|
|
font-size: 11px;
|
|
color: var(--youthome-text-tertiary);
|
|
}
|
|
|
|
/* OCR说明 */
|
|
.ocr-notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 14px;
|
|
background: var(--youthome-primary-lighter);
|
|
border-radius: 10px;
|
|
margin-top: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.ocr-notice-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--youthome-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
.ocr-notice-text {
|
|
font-size: 12px;
|
|
color: var(--youthome-primary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 下拉选择 */
|
|
.form-select {
|
|
width: 100%;
|
|
height: 46px;
|
|
padding: 0 16px;
|
|
border: 1px solid var(--youthome-border);
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
color: var(--youthome-text-primary);
|
|
background: #FFFFFF;
|
|
transition: all 0.2s ease;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 14px center;
|
|
cursor: pointer;
|
|
}
|
|
.form-select:hover {
|
|
border-color: var(--youthome-text-tertiary);
|
|
}
|
|
.form-select:focus {
|
|
border-color: var(--youthome-primary);
|
|
box-shadow: 0 0 0 3px rgba(23, 176, 207, 0.12);
|
|
outline: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2326C2BB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
|
}
|
|
|
|
/* 信息汇总卡片 */
|
|
.summary-card {
|
|
background: var(--youthome-muted);
|
|
border-radius: 12px;
|
|
padding: 16px 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.summary-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--youthome-border-light);
|
|
}
|
|
.summary-row:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
.summary-row:first-child {
|
|
padding-top: 0;
|
|
}
|
|
.summary-label {
|
|
font-size: 13px;
|
|
color: var(--youthome-text-secondary);
|
|
}
|
|
.summary-value {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-primary);
|
|
}
|
|
|
|
/* 复选框 */
|
|
.checkbox-wrapper {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
margin-bottom: 24px;
|
|
}
|
|
.custom-checkbox {
|
|
flex-shrink: 0;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 6px;
|
|
background: #FFFFFF;
|
|
border: 1.5px solid var(--youthome-border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
margin-top: 1px;
|
|
}
|
|
.custom-checkbox.checked {
|
|
background: var(--youthome-primary);
|
|
border-color: var(--youthome-primary);
|
|
}
|
|
.custom-checkbox svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
color: white;
|
|
opacity: 0;
|
|
transform: scale(0.5);
|
|
transition: all 0.2s ease;
|
|
}
|
|
.custom-checkbox.checked svg {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
.checkbox-label {
|
|
font-size: 13px;
|
|
color: var(--youthome-text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
.checkbox-label strong {
|
|
color: var(--youthome-text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 主按钮 */
|
|
.btn-primary-large {
|
|
width: 100%;
|
|
height: 48px;
|
|
border: none;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, #73D3E6 0%, #17B0CF 50%, #0E8098 100%);
|
|
color: white;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
box-shadow: 0 3px 12px rgba(23, 176, 207, 0.25);
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
}
|
|
.btn-primary-large::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%);
|
|
pointer-events: none;
|
|
}
|
|
.btn-primary-large:hover {
|
|
box-shadow: 0 4px 16px rgba(23, 176, 207, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
.btn-primary-large:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 2px 8px rgba(23, 176, 207, 0.2);
|
|
}
|
|
.btn-primary-large:disabled {
|
|
background: var(--youthome-border);
|
|
box-shadow: none;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
.btn-primary-large:disabled::before {
|
|
display: none;
|
|
}
|
|
|
|
/* 次按钮 */
|
|
.btn-secondary-large {
|
|
width: 100%;
|
|
height: 48px;
|
|
border: 1px solid var(--youthome-border);
|
|
border-radius: 12px;
|
|
background: #FFFFFF;
|
|
color: var(--youthome-text-secondary);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-family: inherit;
|
|
margin-top: 10px;
|
|
}
|
|
.btn-secondary-large:hover {
|
|
border-color: var(--youthome-primary);
|
|
color: var(--youthome-primary);
|
|
}
|
|
|
|
/* 安全提示 */
|
|
.security-tip {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 12px 16px;
|
|
background: linear-gradient(135deg, rgba(23, 176, 207, 0.06) 0%, rgba(115, 211, 230, 0.1) 100%);
|
|
border-radius: 10px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid rgba(23, 176, 207, 0.15);
|
|
}
|
|
.security-tip-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
color: var(--youthome-primary);
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
.security-tip-text {
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: var(--youthome-primary-dark);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* ===== 成功态 ===== */
|
|
.success-state {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
}
|
|
.success-icon-wrap {
|
|
width: 88px;
|
|
height: 88px;
|
|
margin: 0 auto 20px;
|
|
position: relative;
|
|
}
|
|
.success-icon-circle {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #73D3E6 0%, #17B0CF 50%, #0E8098 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 6px 24px rgba(23, 176, 207, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
|
|
position: relative;
|
|
animation: successBounce 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|
|
@keyframes successBounce {
|
|
0% { transform: scale(0.3); opacity: 0; }
|
|
50% { transform: scale(1.1); }
|
|
75% { transform: scale(0.95); }
|
|
100% { transform: scale(1); opacity: 1; }
|
|
}
|
|
.success-icon-circle::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 4px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 55%;
|
|
height: 35%;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
}
|
|
.success-icon-glow {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle, rgba(23, 176, 207, 0.25) 0%, rgba(23, 176, 207, 0.08) 40%, transparent 70%);
|
|
pointer-events: none;
|
|
animation: glowPulse 2.5s ease-in-out infinite;
|
|
}
|
|
@keyframes glowPulse {
|
|
0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
|
|
50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
|
|
}
|
|
.success-checkmark {
|
|
width: 44px;
|
|
height: 44px;
|
|
position: relative;
|
|
z-index: 1;
|
|
color: white;
|
|
}
|
|
.success-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--youthome-text-primary);
|
|
margin-bottom: 8px;
|
|
}
|
|
.success-subtitle {
|
|
font-size: 14px;
|
|
color: var(--youthome-text-secondary);
|
|
margin-bottom: 32px;
|
|
line-height: 1.6;
|
|
}
|
|
.success-info-card {
|
|
background: var(--youthome-muted);
|
|
border-radius: 12px;
|
|
padding: 16px 20px;
|
|
text-align: left;
|
|
margin-bottom: 28px;
|
|
}
|
|
.success-info-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
}
|
|
.success-info-label {
|
|
font-size: 13px;
|
|
color: var(--youthome-text-secondary);
|
|
}
|
|
.success-info-value {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-primary);
|
|
}
|
|
|
|
/* 步骤面板切换 */
|
|
.step-panel {
|
|
display: none;
|
|
}
|
|
.step-panel.active {
|
|
display: block;
|
|
animation: fadeInUp 0.35s ease;
|
|
}
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 加密标识 */
|
|
.encrypt-icon {
|
|
position: absolute;
|
|
right: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--youthome-primary);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
.encrypt-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* ===== 布局 ===== */
|
|
.app {
|
|
display: flex;
|
|
width: 1920px
|
|
max-width: 100%;
|
|
overflow: hidden;;
|
|
min-height: 1080px;
|
|
margin: 0 auto;
|
|
}
|
|
.sidebar {
|
|
width: var(--sidebar-width);
|
|
height: 100vh;
|
|
background: var(--youthome-background);
|
|
border-right: 1px solid var(--youthome-border-light);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
}
|
|
.sidebar-logo {
|
|
padding: 24px 20px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border-bottom: 1px solid var(--youthome-border-light);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-logo-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
background: linear-gradient(135deg, #73D3E6, #17B0CF);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-logo-text .main {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--youthome-text-primary);
|
|
display: block;
|
|
}
|
|
.sidebar-logo-text .sub {
|
|
font-size: 11px;
|
|
color: var(--youthome-text-tertiary);
|
|
}
|
|
.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(--youthome-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: #fff;
|
|
border: 1px solid var(--youthome-border-light);
|
|
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(--youthome-muted); }
|
|
.publish-option svg { width: 22px; height: 22px; color: var(--youthome-primary); flex-shrink: 0; }
|
|
.publish-option-title { font-size: 14px; font-weight: 600; color: var(--youthome-text-primary); }
|
|
.publish-option-desc { font-size: 11px; color: var(--youthome-text-tertiary); margin-top: 2px; }
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 8px 12px 24px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.nav-section-title {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-tertiary);
|
|
padding: 12px 12px 8px;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--youthome-text-secondary);
|
|
cursor: pointer;
|
|
transition: all .15s ease;
|
|
}
|
|
.nav-item:hover {
|
|
background: var(--youthome-muted);
|
|
color: var(--youthome-text-primary);
|
|
}
|
|
.nav-item.active {
|
|
background: var(--youthome-primary-light);
|
|
color: var(--youthome-primary);
|
|
font-weight: 600;
|
|
}
|
|
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
|
|
.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-footer {
|
|
padding: 12px 16px 16px;
|
|
border-top: 1px solid var(--youthome-border-light);
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: background .15s;
|
|
}
|
|
.sidebar-user:hover { background: var(--youthome-muted); }
|
|
.sidebar-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
background: var(--youthome-muted);
|
|
}
|
|
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
|
|
.sidebar-user-info { flex: 1; min-width: 0; }
|
|
.sidebar-user-name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youthome-text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.sidebar-user-desc {
|
|
font-size: 11px;
|
|
color: var(--youthome-text-tertiary);
|
|
margin-top: 2px;
|
|
}
|
|
.sidebar-user-arrow {
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--youthome-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ===== 顶部栏 ===== */
|
|
.top-bar {
|
|
height: var(--topbar-height);
|
|
background: var(--youthome-card);
|
|
border-bottom: 1px solid var(--youthome-border-light);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 32px;
|
|
flex-shrink: 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 15;
|
|
}
|
|
.top-bar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.page-title-main {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--youthome-text-primary);
|
|
}
|
|
|
|
/* ===== 主内容区 ===== */
|
|
.main-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.content-body {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="../css/web-refresh.css?v=20261020-brand-color">
|
|
</head>
|
|
<body class="min-h-screen antialiased">
|
|
<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>
|
|
</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" 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" style="height: 185.667px; flex-grow: 0; flex-basis: auto;">
|
|
<div class="sidebar-user" onclick="location.href='me.html'">
|
|
<div class="sidebar-avatar">
|
|
<img src="../assets/avatar-01-female-short-light.jpg" alt="林小夏">
|
|
</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-content">
|
|
<!-- 顶部栏 -->
|
|
<header class="top-bar">
|
|
<div class="top-bar-left">
|
|
<span class="page-title-main">实名认证</span>
|
|
</div>
|
|
<div class="top-bar-right"></div>
|
|
</header>
|
|
|
|
<!-- 内容区 -->
|
|
<div class="content-body">
|
|
<div class="auth-card">
|
|
<!-- 标题区 -->
|
|
<div class="text-center mb-8">
|
|
<h1 class="text-[24px] font-bold mb-2" style="color: var(--youthome-text-primary);">实名认证</h1>
|
|
<p class="text-[14px]" style="color: var(--youthome-text-secondary);">完成认证,解锁全部功能</p>
|
|
</div>
|
|
|
|
<!-- 步骤指示器 -->
|
|
<div class="steps-indicator" id="stepsIndicator">
|
|
<div class="step-item active" id="stepItem1">
|
|
<div class="step-circle active">1</div>
|
|
<span class="step-label">填写信息</span>
|
|
</div>
|
|
<div class="step-connector" id="connector1"></div>
|
|
<div class="step-item" id="stepItem2">
|
|
<div class="step-circle pending">2</div>
|
|
<span class="step-label">上传学籍</span>
|
|
</div>
|
|
<div class="step-connector" id="connector2"></div>
|
|
<div class="step-item" id="stepItem3">
|
|
<div class="step-circle pending">3</div>
|
|
<span class="step-label">提交审核</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ===== 第1步:填写身份信息 ===== -->
|
|
<div class="step-panel active" id="stepPanel1">
|
|
<div class="form-group">
|
|
<label class="form-label">真实姓名</label>
|
|
<div class="form-input-wrapper">
|
|
<svg class="form-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<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>
|
|
<input type="text" class="form-input" id="inputRealname" placeholder="请输入真实姓名" maxlength="20">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">身份证号</label>
|
|
<div class="form-input-wrapper">
|
|
<svg class="form-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="2" y="5" width="20" height="14" rx="2"></rect>
|
|
<path d="M2 10h20"></path>
|
|
<path d="M6 15h4"></path>
|
|
</svg>
|
|
<input type="text" class="form-input" id="inputIdcard" placeholder="请输入18位身份证号" maxlength="21" style="padding-right: 70px;">
|
|
<div class="encrypt-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<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>
|
|
<p class="form-hint">请输入与本人一致的18位身份证号码</p>
|
|
</div>
|
|
|
|
<div class="security-tip">
|
|
<svg class="security-tip-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"></path>
|
|
<path d="m9 12 2 2 4-4"></path>
|
|
</svg>
|
|
<span class="security-tip-text">你的实名信息仅用于身份认证,青核严格保密,不会用于其他用途</span>
|
|
</div>
|
|
|
|
<button class="btn-primary-large" onclick="goToStep(2)">下一步</button>
|
|
</div>
|
|
|
|
<!-- ===== 第2步:上传学籍报告 ===== -->
|
|
<div class="step-panel" id="stepPanel2">
|
|
<div class="form-group">
|
|
<label class="form-label">学籍验证报告</label>
|
|
<div class="upload-area-large" id="uploadArea" onclick="document.getElementById('fileReport').click()">
|
|
<div class="upload-area-icon">
|
|
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
<line x1="12" y1="18" x2="12" y2="12"></line>
|
|
<polyline points="9 15 12 12 15 15"></polyline>
|
|
</svg>
|
|
</div>
|
|
<div class="upload-area-title">点击或拖拽上传学籍报告</div>
|
|
<div class="upload-area-desc">支持 JPG / PNG 图片,文件大小不超过 10MB</div>
|
|
<div class="upload-area-hint">请上传学信网「教育部学籍在线验证报告」</div>
|
|
</div>
|
|
<input type="file" id="fileReport" accept="image/jpeg,image/png" style="display: none;">
|
|
</div>
|
|
|
|
<div class="ocr-notice">
|
|
<svg class="ocr-notice-icon" 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 16v-4"></path>
|
|
<path d="M12 8h.01"></path>
|
|
</svg>
|
|
<span class="ocr-notice-text">选择报告后点击下一步进行识别</span>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">学校名称</label>
|
|
<div class="form-input-wrapper">
|
|
<svg class="form-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M22 10v6M2 10l10-5 10 5-10 5z"></path>
|
|
<path d="M6 12v5c3 3 9 3 12 0v-5"></path>
|
|
</svg>
|
|
<input type="text" class="form-input" id="inputSchool" placeholder="等待报告识别" readonly>
|
|
</div>
|
|
<p class="form-hint">学校信息以报告识别结果为准</p>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">学历层次</label>
|
|
<select class="form-select" id="selectDegree">
|
|
<option value="本科">本科</option>
|
|
<option value="硕士">硕士</option>
|
|
<option value="博士">博士</option>
|
|
<option value="专科">专科</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">入学年份</label>
|
|
<select class="form-select" id="selectYear">
|
|
<option value="2024">2024级</option>
|
|
<option value="2023">2023级</option>
|
|
<option value="2022" selected>2022级</option>
|
|
<option value="2021">2021级</option>
|
|
<option value="2020">2020级</option>
|
|
<option value="2019">2019级</option>
|
|
</select>
|
|
</div>
|
|
|
|
<button class="btn-primary-large" onclick="goToStep(3)">下一步</button>
|
|
<button class="btn-secondary-large" onclick="goToStep(1)">上一步</button>
|
|
</div>
|
|
|
|
<!-- ===== 第3步:确认提交 ===== -->
|
|
<div class="step-panel" id="stepPanel3">
|
|
<h2 class="text-[16px] font-semibold mb-4" style="color: var(--youthome-text-primary);">请确认以下信息</h2>
|
|
|
|
<div class="summary-card">
|
|
<div class="summary-row">
|
|
<span class="summary-label">真实姓名</span>
|
|
<span class="summary-value" id="summaryName">张明远</span>
|
|
</div>
|
|
<div class="summary-row">
|
|
<span class="summary-label">身份证号</span>
|
|
<span class="summary-value" id="summaryIdcard">110101********1234</span>
|
|
</div>
|
|
<div class="summary-row">
|
|
<span class="summary-label">学校名称</span>
|
|
<span class="summary-value" id="summarySchool">清华大学</span>
|
|
</div>
|
|
<div class="summary-row">
|
|
<span class="summary-label">学历层次</span>
|
|
<span class="summary-value" id="summaryDegree">本科</span>
|
|
</div>
|
|
<div class="summary-row">
|
|
<span class="summary-label">入学年份</span>
|
|
<span class="summary-value" id="summaryYear">2022级</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="checkbox-wrapper" onclick="toggleConfirm()">
|
|
<div class="custom-checkbox" id="checkboxConfirm">
|
|
<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>
|
|
<span class="checkbox-label">
|
|
我确认以上信息<strong>真实有效</strong>,与学信网学籍报告一致,同意授权青核进行学籍核验
|
|
</span>
|
|
</div>
|
|
|
|
<button class="btn-primary-large" id="btnSubmit" onclick="submitAuth()" disabled>提交审核</button>
|
|
<button class="btn-secondary-large" onclick="goToStep(2)">返回修改</button>
|
|
</div>
|
|
|
|
<!-- ===== 成功态 ===== -->
|
|
<div class="step-panel" id="stepPanelSuccess">
|
|
<div class="success-state">
|
|
<div class="success-icon-wrap">
|
|
<div class="success-icon-glow"></div>
|
|
<div class="success-icon-circle">
|
|
<svg class="success-checkmark" viewBox="0 0 52 52" fill="none">
|
|
<path d="M14 27L22 35L38 19" stroke="white" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<h2 class="success-title">认证已提交</h2>
|
|
<p class="success-subtitle">认证结果已保存至账号</p>
|
|
|
|
<div class="success-info-card">
|
|
<div class="success-info-row">
|
|
<span class="success-info-label">认证类型</span>
|
|
<span class="success-info-value">学信网学籍认证</span>
|
|
</div>
|
|
<div class="success-info-row">
|
|
<span class="success-info-label">提交时间</span>
|
|
<span class="success-info-value" id="authSubmittedAt"></span>
|
|
</div>
|
|
<div class="success-info-row">
|
|
<span class="success-info-label">审核状态</span>
|
|
<span class="success-info-value" style="color: var(--youthome-primary);">已提交</span>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="btn-primary-large" onclick="returnHome()">返回首页</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
let currentStep = 1;
|
|
let isConfirmed = false;
|
|
let reportId = null;
|
|
let recognizing = false;
|
|
let submitting = false;
|
|
|
|
function authError(message) {
|
|
document.querySelector('.web-toast')?.remove();
|
|
const node = document.createElement('div');
|
|
node.className = 'web-toast is-error';
|
|
node.setAttribute('role', 'status');
|
|
node.textContent = message;
|
|
document.body.appendChild(node);
|
|
setTimeout(() => node.remove(), 4000);
|
|
}
|
|
|
|
// 切换步骤
|
|
async function goToStep(step) {
|
|
// 第1步验证
|
|
if (step === 2 && currentStep === 1) {
|
|
const realname = document.getElementById('inputRealname').value.trim();
|
|
const idcard = document.getElementById('inputIdcard').value.replace(/\s/g, '');
|
|
|
|
if (!realname) {
|
|
alert('请输入真实姓名');
|
|
return;
|
|
}
|
|
if (realname.length < 2) {
|
|
alert('请输入正确的姓名');
|
|
return;
|
|
}
|
|
if (!idcard) {
|
|
alert('请输入身份证号');
|
|
return;
|
|
}
|
|
if (!/^\d{17}[\dXx]$/.test(idcard)) {
|
|
alert('请输入正确的18位身份证号');
|
|
return;
|
|
}
|
|
}
|
|
|
|
if (step === 3 && currentStep === 2 && !reportId) {
|
|
const file = document.getElementById('fileReport').files[0];
|
|
if (!file) { authError('请先选择学籍报告图片'); return; }
|
|
if (!['image/jpeg', 'image/png'].includes(file.type) || file.size > 10 * 1024 * 1024) {
|
|
authError('请上传不超过 10MB 的 JPG 或 PNG 图片'); return;
|
|
}
|
|
if (window.YouthomeApi?.isLocal()) { authError('实名认证需要连接后端,当前本地演示模式无法提交'); return; }
|
|
if (!window.YouthomeApi?.token()) { authError('请先登录后再认证'); return; }
|
|
if (recognizing) return;
|
|
recognizing = true;
|
|
const notice = document.querySelector('.ocr-notice-text');
|
|
notice.textContent = '正在识别学籍报告…';
|
|
try {
|
|
const form = new FormData();
|
|
form.append('file', file);
|
|
const result = await window.YouthomeApi.request('/ocr/chsi-report', { method: 'POST', body: form });
|
|
if (!result?.validChsiReport || !result.reportId || result.dedup?.status !== 'AVAILABLE') {
|
|
throw new Error(result?.dedup?.status && result.dedup.status !== 'AVAILABLE'
|
|
? '该学信网报告已被认证' : '未获得可用的认证材料,请重新上传报告');
|
|
}
|
|
const name = document.getElementById('inputRealname').value.trim();
|
|
const idCard = document.getElementById('inputIdcard').value.replace(/\s/g, '').toUpperCase();
|
|
if (result.name && result.name.trim() !== name) throw new Error('报告姓名与填写信息不一致');
|
|
if (result.idCard && result.idCard.replace(/\s/g, '').toUpperCase() !== idCard) throw new Error('报告身份证号与填写信息不一致');
|
|
reportId = result.reportId;
|
|
document.getElementById('inputSchool').value = result.school || '';
|
|
const degree = document.getElementById('selectDegree');
|
|
if (result.level && !Array.from(degree.options).some((option) => option.value === result.level)) degree.add(new Option(result.level, result.level));
|
|
if (result.level) degree.value = result.level;
|
|
degree.disabled = true;
|
|
const year = String(result.enrollmentDate || '').slice(0, 4);
|
|
const yearSelect = document.getElementById('selectYear');
|
|
if (year && !Array.from(yearSelect.options).some((option) => option.value === year)) yearSelect.add(new Option(year + '级', year));
|
|
if (year) yearSelect.value = year;
|
|
yearSelect.disabled = true;
|
|
notice.textContent = '报告识别完成,请核对信息';
|
|
} catch (error) {
|
|
notice.textContent = '识别失败,请重新选择报告';
|
|
authError(error.message || '报告识别失败');
|
|
recognizing = false;
|
|
return;
|
|
}
|
|
recognizing = false;
|
|
}
|
|
|
|
// 隐藏当前步骤
|
|
document.getElementById('stepPanel' + currentStep).classList.remove('active');
|
|
|
|
// 更新步骤指示器
|
|
updateStepIndicator(step);
|
|
|
|
// 显示新步骤
|
|
currentStep = step;
|
|
document.getElementById('stepPanel' + step).classList.add('active');
|
|
|
|
// 如果是第3步,同步信息
|
|
if (step === 3) {
|
|
syncSummaryInfo();
|
|
}
|
|
}
|
|
|
|
// 更新步骤指示器
|
|
function updateStepIndicator(targetStep) {
|
|
for (let i = 1; i <= 3; i++) {
|
|
const item = document.getElementById('stepItem' + i);
|
|
const circle = item.querySelector('.step-circle');
|
|
const label = item.querySelector('.step-label');
|
|
|
|
if (i < targetStep) {
|
|
// 已完成
|
|
item.classList.remove('active');
|
|
item.classList.add('completed');
|
|
circle.classList.remove('active', 'pending');
|
|
circle.classList.add('completed');
|
|
circle.innerHTML = '<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>';
|
|
label.style.color = 'var(--youthome-primary)';
|
|
} else if (i === targetStep) {
|
|
// 当前步骤
|
|
item.classList.add('active');
|
|
item.classList.remove('completed');
|
|
circle.classList.add('active');
|
|
circle.classList.remove('completed', 'pending');
|
|
circle.innerHTML = i;
|
|
label.style.color = 'var(--youthome-primary)';
|
|
label.style.fontWeight = '600';
|
|
} else {
|
|
// 待完成
|
|
item.classList.remove('active', 'completed');
|
|
circle.classList.remove('active', 'completed');
|
|
circle.classList.add('pending');
|
|
circle.innerHTML = i;
|
|
label.style.color = '';
|
|
label.style.fontWeight = '';
|
|
}
|
|
}
|
|
|
|
// 更新连接线
|
|
const connector1 = document.getElementById('connector1');
|
|
const connector2 = document.getElementById('connector2');
|
|
|
|
if (targetStep > 1) {
|
|
connector1.classList.add('filled');
|
|
} else {
|
|
connector1.classList.remove('filled');
|
|
}
|
|
|
|
if (targetStep > 2) {
|
|
connector2.classList.add('filled');
|
|
} else {
|
|
connector2.classList.remove('filled');
|
|
}
|
|
}
|
|
|
|
// 同步第3步汇总信息
|
|
function syncSummaryInfo() {
|
|
const realname = document.getElementById('inputRealname').value.trim();
|
|
let idcard = document.getElementById('inputIdcard').value.replace(/\s/g, '');
|
|
// 身份证号脱敏显示
|
|
if (idcard.length >= 14) {
|
|
idcard = idcard.substring(0, 6) + '********' + idcard.substring(14);
|
|
}
|
|
const school = document.getElementById('inputSchool').value;
|
|
const degree = document.getElementById('selectDegree').value;
|
|
const year = document.getElementById('selectYear').value + '级';
|
|
|
|
document.getElementById('summaryName').textContent = realname;
|
|
document.getElementById('summaryIdcard').textContent = idcard;
|
|
document.getElementById('summarySchool').textContent = school;
|
|
document.getElementById('summaryDegree').textContent = degree;
|
|
document.getElementById('summaryYear').textContent = year;
|
|
}
|
|
|
|
// 确认复选框
|
|
function toggleConfirm() {
|
|
isConfirmed = !isConfirmed;
|
|
const checkbox = document.getElementById('checkboxConfirm');
|
|
const btnSubmit = document.getElementById('btnSubmit');
|
|
|
|
if (isConfirmed) {
|
|
checkbox.classList.add('checked');
|
|
btnSubmit.disabled = false;
|
|
} else {
|
|
checkbox.classList.remove('checked');
|
|
btnSubmit.disabled = true;
|
|
}
|
|
}
|
|
|
|
// 提交审核
|
|
async function submitAuth() {
|
|
if (!isConfirmed || !reportId || submitting) return;
|
|
submitting = true;
|
|
const button = document.getElementById('btnSubmit');
|
|
button.disabled = true;
|
|
try {
|
|
const user = await window.YouthomeApi.request('/profile/xuexin/submit', {
|
|
method: 'POST', body: JSON.stringify({ reportId })
|
|
});
|
|
if (user && window.YouthomeApi.updateSessionUser) window.YouthomeApi.updateSessionUser(user);
|
|
} catch (error) {
|
|
authError(error.message || '认证提交失败');
|
|
button.disabled = false;
|
|
submitting = false;
|
|
return;
|
|
}
|
|
|
|
// 隐藏第3步,显示成功态
|
|
document.getElementById('stepPanel3').classList.remove('active');
|
|
|
|
// 隐藏步骤指示器
|
|
document.getElementById('stepsIndicator').style.display = 'none';
|
|
|
|
// 显示成功态
|
|
document.getElementById('stepPanelSuccess').classList.add('active');
|
|
document.getElementById('authSubmittedAt').textContent = new Date().toLocaleString('zh-CN', { hour12: false });
|
|
submitting = false;
|
|
}
|
|
|
|
// 返回首页
|
|
function returnHome() {
|
|
alert('返回首页');
|
|
}
|
|
|
|
// 身份证号格式化
|
|
(function() {
|
|
const idcardInput = document.getElementById('inputIdcard');
|
|
|
|
idcardInput.addEventListener('input', function(e) {
|
|
let value = e.target.value.replace(/\s/g, '').replace(/[^\dXx]/g, '');
|
|
|
|
if (value.length > 18) {
|
|
value = value.substring(0, 18);
|
|
}
|
|
|
|
let formatted = '';
|
|
if (value.length > 0) {
|
|
formatted = value.substring(0, Math.min(6, value.length));
|
|
}
|
|
if (value.length > 6) {
|
|
formatted += ' ' + value.substring(6, Math.min(14, value.length));
|
|
}
|
|
if (value.length > 14) {
|
|
formatted += ' ' + value.substring(14, value.length);
|
|
}
|
|
|
|
e.target.value = formatted.toUpperCase();
|
|
});
|
|
})();
|
|
|
|
// 拖拽上传支持
|
|
(function() {
|
|
const uploadArea = document.getElementById('uploadArea');
|
|
if (!uploadArea) return;
|
|
|
|
document.getElementById('fileReport').addEventListener('change', () => {
|
|
reportId = null;
|
|
document.getElementById('selectDegree').disabled = false;
|
|
document.getElementById('selectYear').disabled = false;
|
|
});
|
|
|
|
uploadArea.addEventListener('dragover', function(e) {
|
|
e.preventDefault();
|
|
uploadArea.classList.add('dragover');
|
|
});
|
|
|
|
uploadArea.addEventListener('dragleave', function(e) {
|
|
e.preventDefault();
|
|
uploadArea.classList.remove('dragover');
|
|
});
|
|
|
|
uploadArea.addEventListener('drop', function(e) {
|
|
e.preventDefault();
|
|
uploadArea.classList.remove('dragover');
|
|
const files = e.dataTransfer.files;
|
|
if (files.length > 0) {
|
|
console.log('上传文件:', files[0].name);
|
|
}
|
|
});
|
|
})();
|
|
</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" defer></script>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|