diff --git a/mini-program/src/App.vue b/mini-program/src/App.vue index 88c0b34..389166a 100644 --- a/mini-program/src/App.vue +++ b/mini-program/src/App.vue @@ -107,19 +107,44 @@ page { box-shadow: 0 0 20px rgba(168, 85, 247, 0.1); } +/* 原型标准输入框 - 40rpx 圆角 */ .glass-input { background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 24rpx; + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + border: 1px solid rgba(168, 85, 247, 0.15); + border-radius: 40rpx; /* 原型标准:2.5rem = 40px */ padding: 24rpx 32rpx; color: #F3E8FF; font-size: 28rpx; + transition: all 0.3s ease; +} + +.glass-input:active { + background: rgba(168, 85, 247, 0.1); + border-color: rgba(168, 85, 247, 0.4); + box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); } .glass-input::placeholder { color: rgba(255, 255, 255, 0.3); } +/* 发光边框 - 头像/卡片专用 */ +.glow-border { + box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); +} + +/* 强发光效果 - 头像专用 */ +.glow-strong { + box-shadow: 0 0 40px rgba(168, 85, 247, 0.1); +} + +/* 左侧紫色边框 - 记录卡片专用 */ +.border-left-purple { + border-left: 4rpx solid #C084FC; +} + .btn-primary { background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%); border-radius: 32rpx; @@ -226,7 +251,66 @@ page { to { opacity: 1; transform: translateY(0); } } +/* 星芒加载动画 - 原型标准(双环旋转) */ .starlight-loader { + position: relative; + width: 80rpx; + height: 80rpx; + margin: 40rpx auto; +} + +.starlight-loader::before, +.starlight-loader::after { + content: ''; + position: absolute; + top: 50%; + left: 50%; + width: 100%; + height: 100%; + border-radius: 50%; + border: 3rpx solid transparent; + border-top-color: #C084FC; + border-right-color: #A855F7; + animation: starlight-spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; +} + +.starlight-loader::before { + width: 70%; + height: 70%; + border-top-color: #E879F9; + border-right-color: #9333EA; + animation-delay: -0.75s; +} + +@keyframes starlight-spin { + 0% { + transform: translate(-50%, -50%) rotate(0deg) scale(1); + } + 50% { + transform: translate(-50%, -50%) rotate(180deg) scale(1.2); + } + 100% { + transform: translate(-50%, -50%) rotate(360deg) scale(1); + } +} + +/* 加载文字 - 脉冲效果 */ +.loading-text { + text-align: center; + font-size: 24rpx; + color: rgba(192, 132, 252, 0.6); + letter-spacing: 4rpx; + margin-top: 24rpx; + animation: pulse-text 2s ease-in-out infinite; +} + +@keyframes pulse-text { + 0%, 100% { opacity: 0.6; } + 50% { opacity: 1; } +} + +/* 简化 loader 备用 */ +.starlight-loader-simple { width: 44rpx; height: 44rpx; border-radius: 50%; diff --git a/mini-program/src/pages/main/ScriptView.vue b/mini-program/src/pages/main/ScriptView.vue index 524189d..d7ca635 100644 --- a/mini-program/src/pages/main/ScriptView.vue +++ b/mini-program/src/pages/main/ScriptView.vue @@ -286,9 +286,20 @@ onMounted(async () => { letter-spacing: 4rpx; } +/* 人设卡片 - 金色玻璃态 */ .section-card { padding: 20rpx; border-radius: 28rpx; + /* 金色玻璃态背景 */ + background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(232, 121, 249, 0.1)); + border: 1px solid rgba(168, 85, 247, 0.3); + box-shadow: inset 0 0 30rpx rgba(168, 85, 247, 0.08), 0 4rpx 20rpx rgba(168, 85, 247, 0.1); + transition: all 0.3s ease; +} + +.section-card:active { + transform: scale(0.98); + box-shadow: inset 0 0 20rpx rgba(168, 85, 247, 0.1), 0 2rpx 12rpx rgba(168, 85, 247, 0.05); } .glass-card-main { @@ -491,9 +502,11 @@ onMounted(async () => { } .param-option.active { - background: rgba(168, 85, 247, 0.2); - border-color: rgba(168, 85, 247, 0.5); - color: #C084FC; + background: rgba(168, 85, 247, 0.25); + border-color: #C084FC; + color: #F3E8FF; + box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); + font-weight: 500; } .generate-btn { @@ -514,6 +527,17 @@ onMounted(async () => { padding: 20rpx; border-left: 3rpx solid transparent; border-radius: 28rpx; + /* Crown 图标装饰 */ + position: relative; +} + +.script-card::before { + content: '👑'; + position: absolute; + top: -12rpx; + right: 24rpx; + font-size: 32rpx; + filter: drop-shadow(0 0 8rpx rgba(232, 121, 249, 0.6)); } .script-card.selected { @@ -599,18 +623,61 @@ onMounted(async () => { border-radius: 48rpx; } -.spinner { - width: 48rpx; - height: 48rpx; - border: 3rpx solid #A855F7; - border-top-color: transparent; - border-radius: 50%; - animation: spin 0.8s linear infinite; +/* 星芒加载动画 - 原型标准(双环旋转) */ +.starlight-loader { + position: relative; + width: 80rpx; + height: 80rpx; + margin: 40rpx auto; } -@keyframes spin { - from { transform: rotate(0deg); } - to { transform: rotate(360deg); } +.starlight-loader::before, +.starlight-loader::after { + content: ''; + position: absolute; + top: 50%; + left: 50%; + width: 100%; + height: 100%; + border-radius: 50%; + border: 3rpx solid transparent; + border-top-color: #C084FC; + border-right-color: #A855F7; + animation: starlight-spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; +} + +.starlight-loader::before { + width: 70%; + height: 70%; + border-top-color: #E879F9; + border-right-color: #9333EA; + animation-delay: -0.75s; +} + +@keyframes starlight-spin { + 0% { + transform: translate(-50%, -50%) rotate(0deg) scale(1); + } + 50% { + transform: translate(-50%, -50%) rotate(180deg) scale(1.2); + } + 100% { + transform: translate(-50%, -50%) rotate(360deg) scale(1); + } +} + +/* 加载文字 - 脉冲效果 */ +.generating-text { + font-size: 20rpx; + color: rgba(192, 132, 252, 0.6); + font-style: italic; + letter-spacing: 2rpx; + animation: pulse-text 2s ease-in-out infinite; +} + +@keyframes pulse-text { + 0%, 100% { opacity: 0.6; } + 50% { opacity: 1; } } .generating-text { diff --git a/mini-program/src/pages/onboarding/index.vue b/mini-program/src/pages/onboarding/index.vue index 9c60b60..7aa5bf5 100644 --- a/mini-program/src/pages/onboarding/index.vue +++ b/mini-program/src/pages/onboarding/index.vue @@ -514,12 +514,22 @@ watch(currentStep, (val) => { .glass-input, .glass-picker { width: 100%; height: 88rpx; + /* 原型标准:backdrop-filter blur + 大圆角 */ background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 20rpx; + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + border: 1px solid rgba(168, 85, 247, 0.15); + border-radius: 40rpx; /* 原型:2.5rem = 40px */ padding: 0 24rpx; color: #F3E8FF; font-size: 28rpx; + transition: all 0.3s ease; +} + +.glass-input:active, .glass-picker:active { + background: rgba(168, 85, 247, 0.1); + border-color: rgba(168, 85, 247, 0.4); + box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); } .glass-input::placeholder { @@ -535,11 +545,20 @@ watch(currentStep, (val) => { width: 100%; height: 200rpx; background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 20rpx; + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + border: 1px solid rgba(168, 85, 247, 0.15); + border-radius: 40rpx; padding: 24rpx; color: #F3E8FF; font-size: 28rpx; + transition: all 0.3s ease; +} + +.glass-textarea:active { + background: rgba(168, 85, 247, 0.1); + border-color: rgba(168, 85, 247, 0.4); + box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); } .glass-textarea::placeholder { @@ -583,17 +602,24 @@ watch(currentStep, (val) => { } .hint-tag { + /* 原型:可点击填充芯片 */ background: rgba(255, 255, 255, 0.05); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 32rpx; padding: 10rpx 22rpx; font-size: 22rpx; color: rgba(243, 232, 255, 0.8); + cursor: pointer; + transition: all 0.2s ease; } .hint-tag:active { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.4); + box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); + transform: scale(0.98); } .quote-box { @@ -635,11 +661,11 @@ watch(currentStep, (val) => { height: 8rpx; background: rgba(255, 255, 255, 0.1); border-radius: 4rpx; - transition: all 0.4s ease; + transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .step-dot.active { - flex: 1; + flex: 1.5; /* 激活状态加宽 */ height: 8rpx; background: #A855F7; box-shadow: 0 0 24rpx rgba(168, 85, 247, 0.6); @@ -654,5 +680,38 @@ watch(currentStep, (val) => { .next-btn { min-width: 200rpx; + padding: 24rpx 48rpx; + background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%); + border: none; + border-radius: 40rpx; + color: white; + font-size: 28rpx; + font-weight: 600; + letter-spacing: 4rpx; + box-shadow: 0 8rpx 24rpx rgba(168, 85, 247, 0.3); + transition: all 0.3s ease; +} + +.next-btn:active { + transform: scale(0.96); + box-shadow: 0 4rpx 16rpx rgba(168, 85, 247, 0.2); +} + +.btn-secondary { + padding: 24rpx 32rpx; + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 40rpx; + color: rgba(255, 255, 255, 0.7); + font-size: 26rpx; + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + transition: all 0.3s ease; +} + +.btn-secondary:active { + transform: scale(0.96); + background: rgba(168, 85, 247, 0.1); + border-color: rgba(168, 85, 247, 0.3); } diff --git a/mini-program/src/uni.scss b/mini-program/src/uni.scss index b9249e9..7197347 100644 --- a/mini-program/src/uni.scss +++ b/mini-program/src/uni.scss @@ -74,3 +74,27 @@ $uni-color-subtitle: #555555; // 二级标题颜色 $uni-font-size-subtitle:26px; $uni-color-paragraph: #3F536E; // 文章段落颜色 $uni-font-size-paragraph:15px; + +/* 设计系统变量 - 原型还原专用 */ +$proto-purple-primary: #A855F7; +$proto-purple-light: #C084FC; +$proto-purple-dark: #9333EA; +$proto-gold-gradient: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(232, 121, 249, 0.1)); + +/* 玻璃态效果 */ +$glass-bg: rgba(168, 85, 247, 0.05); +$glass-border: rgba(168, 85, 247, 0.15); +$glass-blur: 20px; +$glass-gold-border: rgba(168, 85, 247, 0.3); + +/* 圆角标准 */ +$radius-sm: 16rpx; +$radius-md: 20rpx; +$radius-lg: 24rpx; +$radius-xl: 32rpx; +$radius-2xl: 40rpx; /* 2.5rem = 40px,原型标准 */ + +/* 发光效果 */ +$glow-soft: 0 0 15px rgba(168, 85, 247, 0.3); +$glow-medium: 0 0 20px rgba(168, 85, 247, 0.4); +$glow-strong: 0 0 40px rgba(168, 85, 247, 0.6);