512 lines
14 KiB
Plaintext
512 lines
14 KiB
Plaintext
/* pages/kaoheguan/kaoheguan.wxss — 完整版:适度背景 + 整体下移 */
|
||
|
||
page {
|
||
background: #0a0c14;
|
||
color: #e0e6f0;
|
||
font-family: 'SF Pro Display', 'PingFang SC', system-ui;
|
||
height: 100vh;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 根容器:让出自定义导航栏与底部 TabBar 空间 */
|
||
.universe-root {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
padding-top: calc(88rpx + env(safe-area-inset-top));
|
||
padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
|
||
box-sizing: border-box;
|
||
z-index: 1;
|
||
}
|
||
|
||
/* ========== 全屏背景图(适度弱化) ========== */
|
||
.full-bg {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100vw;
|
||
height: 100vh;
|
||
z-index: 0;
|
||
opacity: 1; /* 从0.15调整到0.3,若隐若现但不抢夺内容 */
|
||
pointer-events: none;
|
||
object-fit: cover;
|
||
filter: blur(1px); /* 轻微模糊,增加梦幻感 */
|
||
}
|
||
|
||
/* ========== 动态星空(Canvas) ========== */
|
||
.starfield-canvas {
|
||
position: fixed;
|
||
top: 0; left: 0;
|
||
width: 100vw; height: 100vh;
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
opacity: 0.35;
|
||
}
|
||
|
||
/* ========== 极光飘带 ========== */
|
||
.aurora-ribbon {
|
||
position: fixed;
|
||
top: -10%;
|
||
left: -30%;
|
||
width: 160%;
|
||
height: 60%;
|
||
background: radial-gradient(ellipse at 50% 50%, rgba(100, 140, 255, 0.12) 0%, transparent 70%);
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
animation: drift 20s ease-in-out infinite alternate;
|
||
}
|
||
|
||
@keyframes drift {
|
||
0% { transform: translate(0, 0) rotate(0deg); }
|
||
100% { transform: translate(10%, 5%) rotate(3deg); }
|
||
}
|
||
|
||
/* ========== 舒缓流星 ========== */
|
||
/* 流星1:右上 → 左下,缓慢,间隔10秒 */
|
||
.universe-root::before {
|
||
content: "";
|
||
position: fixed;
|
||
top: 5%;
|
||
right: -2%;
|
||
width: 2rpx;
|
||
height: 85rpx;
|
||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
|
||
transform: rotate(-35deg);
|
||
animation: meteor1 10s 0s linear infinite;
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
opacity: 0;
|
||
}
|
||
|
||
/* 流星2:稍有不同的角度与延迟 */
|
||
.universe-root::after {
|
||
content: "";
|
||
position: fixed;
|
||
top: 10%;
|
||
right: -5%;
|
||
width: 2rpx;
|
||
height: 70rpx;
|
||
background: linear-gradient(to bottom, rgba(200, 210, 255, 0.55), transparent);
|
||
transform: rotate(-28deg);
|
||
animation: meteor2 11s 4s linear infinite;
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
opacity: 0;
|
||
}
|
||
|
||
@keyframes meteor1 {
|
||
0% {
|
||
opacity: 0;
|
||
transform: translate(0, 0) rotate(-35deg);
|
||
}
|
||
10% {
|
||
opacity: 0.5;
|
||
}
|
||
28% {
|
||
opacity: 0;
|
||
transform: translate(-500rpx, 450rpx) rotate(-35deg);
|
||
}
|
||
100% {
|
||
opacity: 0;
|
||
transform: translate(-500rpx, 450rpx) rotate(-35deg);
|
||
}
|
||
}
|
||
|
||
@keyframes meteor2 {
|
||
0% {
|
||
opacity: 0;
|
||
transform: translate(0, 0) rotate(-28deg);
|
||
}
|
||
8% {
|
||
opacity: 0.45;
|
||
}
|
||
25% {
|
||
opacity: 0;
|
||
transform: translate(-480rpx, 420rpx) rotate(-28deg);
|
||
}
|
||
100% {
|
||
opacity: 0;
|
||
transform: translate(-480rpx, 420rpx) rotate(-28deg);
|
||
}
|
||
}
|
||
|
||
/* ========== 未注册状态 ========== */
|
||
.unreg-floating {
|
||
position: relative;
|
||
z-index: 10;
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.unreg-core {
|
||
width: 80%;
|
||
max-width: 640rpx;
|
||
background: rgba(255,255,255,0.04);
|
||
backdrop-filter: blur(30px);
|
||
border-radius: 50rpx;
|
||
padding: 80rpx 50rpx 60rpx;
|
||
border: 1rpx solid rgba(255,255,255,0.1);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.unreg-icon { width: 100rpx; height: 100rpx; margin-bottom: 20rpx; }
|
||
.unreg-title { font-size: 42rpx; font-weight: 700; color: #fff; margin-bottom: 12rpx; }
|
||
.unreg-desc { font-size: 28rpx; color: #8590b0; margin-bottom: 50rpx; text-align: center; }
|
||
.unreg-input { width: 100%; height: 90rpx; background: rgba(255,255,255,0.08); border-radius: 30rpx; padding: 0 30rpx; color: #fff; font-size: 30rpx; box-sizing: border-box; margin-bottom: 30rpx; }
|
||
.unreg-placeholder { color: rgba(255,255,255,0.3); }
|
||
.unreg-btn { width: 100%; height: 90rpx; background: linear-gradient(135deg, #4f6ef6, #8b5cf6); border-radius: 45rpx; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
|
||
.unreg-btn:active { transform: scale(0.98); }
|
||
.unreg-btn-text { font-size: 34rpx; font-weight: 600; color: #fff; }
|
||
|
||
/* ========== 已注册状态(整体下移) ========== */
|
||
.orbit-zone {
|
||
position: relative;
|
||
z-index: 10;
|
||
flex: 1;
|
||
padding: 80rpx 30rpx 0; /* 顶部从40rpx增加到60rpx,整体下移 */
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
/* 身份条 */
|
||
.top-identity {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 40rpx;
|
||
position: relative;
|
||
z-index: 2;
|
||
}
|
||
.identity-avatar {
|
||
width: 90rpx; height: 90rpx; border-radius: 50%;
|
||
border: 2rpx solid rgba(255,255,255,0.2);
|
||
margin-right: 20rpx;
|
||
}
|
||
.identity-info { flex: 1; }
|
||
.identity-name { font-size: 36rpx; font-weight: 700; color: #fff; }
|
||
.identity-uid {
|
||
display: flex; align-items: center; margin-top: 8rpx;
|
||
}
|
||
.uid-txt { font-size: 24rpx; color: #9098b0; font-family: monospace; }
|
||
.status-indicator {
|
||
width: 12rpx; height: 12rpx; border-radius: 50%;
|
||
background: #4ade80; margin-left: 12rpx;
|
||
transition: background 0.3s;
|
||
}
|
||
.status-indicator.active { background: #fbbf24; }
|
||
.refresh-touch {
|
||
width: 60rpx; height: 60rpx;
|
||
background: rgba(255,255,255,0.06);
|
||
border-radius: 20rpx;
|
||
display: flex; align-items: center; justify-content: center;
|
||
transition: background 0.2s;
|
||
}
|
||
.refresh-touch:active { background: rgba(255,255,255,0.15); }
|
||
.refresh-icon { width: 36rpx; height: 36rpx; }
|
||
|
||
/* 板块标签云 */
|
||
.plate-cloud { margin-bottom: 30rpx; }
|
||
.plate-cloud-scroll { white-space: nowrap; }
|
||
.plate-chip {
|
||
display: inline-block;
|
||
padding: 8rpx 24rpx;
|
||
border-radius: 30rpx;
|
||
background: rgba(79,110,246,0.1);
|
||
color: #a5b4fc;
|
||
font-size: 26rpx;
|
||
margin-right: 16rpx;
|
||
border: 1rpx solid rgba(79,110,246,0.3);
|
||
box-shadow: 0 0 12rpx rgba(79,110,246,0.1);
|
||
transition: all 0.3s;
|
||
}
|
||
.plate-chip:active { transform: scale(0.95); background: rgba(79,110,246,0.2); }
|
||
|
||
/* 中央余额星球 */
|
||
.balance-planet {
|
||
position: relative;
|
||
width: 280rpx;
|
||
height: 280rpx;
|
||
margin: 20rpx auto 30rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.planet-ring {
|
||
position: absolute;
|
||
width: 280rpx;
|
||
height: 280rpx;
|
||
border-radius: 50%;
|
||
border: 2rpx solid rgba(79,110,246,0.4);
|
||
animation: ringRotate 12s linear infinite;
|
||
}
|
||
@keyframes ringRotate { to { transform: rotate(360deg); } }
|
||
.planet-body {
|
||
width: 210rpx;
|
||
height: 210rpx;
|
||
border-radius: 50%;
|
||
background: radial-gradient(circle at 30% 30%, rgba(79,110,246,0.3), rgba(15,15,30,0.8));
|
||
backdrop-filter: blur(10px);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 1rpx solid rgba(255,255,255,0.1);
|
||
transition: transform 0.3s;
|
||
}
|
||
.balance-planet:active .planet-body { transform: scale(0.95); }
|
||
.planet-num {
|
||
font-size: 52rpx;
|
||
font-weight: 900;
|
||
color: #fff;
|
||
text-shadow: 0 0 30rpx rgba(79,110,246,0.8);
|
||
animation: numGlow 2s ease-in-out infinite alternate;
|
||
}
|
||
@keyframes numGlow {
|
||
from { text-shadow: 0 0 20rpx rgba(79,110,246,0.6); }
|
||
to { text-shadow: 0 0 40rpx rgba(79,110,246,1); }
|
||
}
|
||
.planet-label {
|
||
font-size: 24rpx;
|
||
color: #a5b4fc;
|
||
margin-top: 8rpx;
|
||
}
|
||
.planet-glow {
|
||
position: absolute;
|
||
width: 300rpx;
|
||
height: 300rpx;
|
||
border-radius: 50%;
|
||
background: radial-gradient(circle, rgba(79,110,246,0.2), transparent 70%);
|
||
animation: planetPulse 4s ease-in-out infinite;
|
||
pointer-events: none;
|
||
}
|
||
@keyframes planetPulse {
|
||
0%, 100% { opacity: 0.3; transform: scale(1); }
|
||
50% { opacity: 0.8; transform: scale(1.08); }
|
||
}
|
||
|
||
/* 流星数据条 */
|
||
.meteor-stats {
|
||
display: flex;
|
||
justify-content: space-around;
|
||
align-items: center;
|
||
margin-bottom: 30rpx;
|
||
padding: 20rpx 0;
|
||
position: relative;
|
||
}
|
||
.meteor-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
flex: 1;
|
||
}
|
||
.meteor-num {
|
||
font-size: 36rpx;
|
||
font-weight: 800;
|
||
background: linear-gradient(135deg, #a5b4fc, #4f6ef6);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
transition: all 0.3s;
|
||
}
|
||
.meteor-item:active .meteor-num { transform: scale(1.1); }
|
||
.meteor-label {
|
||
font-size: 22rpx;
|
||
color: #64748b;
|
||
margin-top: 10rpx;
|
||
}
|
||
.meteor-divider {
|
||
width: 2rpx;
|
||
height: 40rpx;
|
||
background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
|
||
}
|
||
|
||
/* ========== 十字星阵功能区 ========== */
|
||
.star-cross {
|
||
position: relative;
|
||
width: 520rpx;
|
||
height: 520rpx;
|
||
margin: 40rpx auto 50rpx;
|
||
}
|
||
|
||
/* 按钮公共样式 */
|
||
.cross-item {
|
||
position: absolute;
|
||
width: 150rpx;
|
||
height: 150rpx;
|
||
background: radial-gradient(circle at 30% 30%, rgba(79,110,246,0.25), rgba(0,0,0,0.25));
|
||
border-radius: 50%;
|
||
border: 1rpx solid rgba(255,255,255,0.12);
|
||
backdrop-filter: blur(10px);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: transform 0.2s, box-shadow 0.2s;
|
||
z-index: 5;
|
||
overflow: visible;
|
||
}
|
||
|
||
/* 行星光环 */
|
||
.orbit-ring {
|
||
position: absolute;
|
||
top: -8rpx;
|
||
left: -8rpx;
|
||
right: -8rpx;
|
||
bottom: -8rpx;
|
||
border-radius: 50%;
|
||
border: 2rpx solid rgba(79,110,246,0.5);
|
||
border-top-color: transparent;
|
||
border-bottom-color: transparent;
|
||
animation: spinRing 4s linear infinite;
|
||
pointer-events: none;
|
||
}
|
||
.pause-spin .orbit-ring {
|
||
animation-play-state: paused;
|
||
}
|
||
|
||
@keyframes spinRing {
|
||
to { transform: rotate(360deg); }
|
||
}
|
||
|
||
.cross-item:active {
|
||
transform: scale(0.95);
|
||
box-shadow: 0 0 30rpx rgba(79,110,246,0.6);
|
||
}
|
||
|
||
/* 图标强化 */
|
||
.cross-icon {
|
||
width: 58rpx;
|
||
height: 58rpx;
|
||
margin-bottom: 8rpx;
|
||
filter: drop-shadow(0 0 14rpx rgba(79,110,246,0.9))
|
||
drop-shadow(0 0 28rpx rgba(99,102,241,0.7));
|
||
animation: iconFloat 3s ease-in-out infinite;
|
||
z-index: 2;
|
||
}
|
||
|
||
@keyframes iconFloat {
|
||
0%, 100% { transform: translateY(0); }
|
||
50% { transform: translateY(-3rpx); }
|
||
}
|
||
|
||
.cross-text {
|
||
font-size: 24rpx;
|
||
color: #e0e6f0;
|
||
font-weight: 600;
|
||
z-index: 2;
|
||
}
|
||
|
||
/* 上 */
|
||
.cross-top { top: 0; left: 50%; transform: translateX(-50%); }
|
||
/* 下 */
|
||
.cross-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
|
||
/* 左 */
|
||
.cross-left { left: 0; top: 50%; transform: translateY(-50%); }
|
||
/* 右 */
|
||
.cross-right { right: 0; top: 50%; transform: translateY(-50%); }
|
||
|
||
/* 中央五角星(固定,仅呼吸) */
|
||
.pentagram {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
width: 0; height: 0;
|
||
transform: translate(-50%, -50%);
|
||
border-left: 36rpx solid transparent;
|
||
border-right: 36rpx solid transparent;
|
||
border-bottom: 84rpx solid rgba(79,110,246,0.85);
|
||
filter: drop-shadow(0 0 18rpx rgba(79,110,246,0.7));
|
||
animation: star-pulse 2s ease-in-out infinite;
|
||
}
|
||
.pentagram::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 36rpx;
|
||
left: -36rpx;
|
||
width: 0; height: 0;
|
||
border-left: 36rpx solid transparent;
|
||
border-right: 36rpx solid transparent;
|
||
border-bottom: 84rpx solid rgba(79,110,246,0.85);
|
||
transform: rotate(72deg);
|
||
}
|
||
.pentagram::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 36rpx;
|
||
left: -36rpx;
|
||
width: 0; height: 0;
|
||
border-left: 36rpx solid transparent;
|
||
border-right: 36rpx solid transparent;
|
||
border-bottom: 84rpx solid rgba(79,110,246,0.85);
|
||
transform: rotate(-72deg);
|
||
}
|
||
|
||
@keyframes star-pulse {
|
||
0%, 100% { opacity: 0.8; }
|
||
50% { opacity: 1; }
|
||
}
|
||
|
||
/* ========== 加载星门 ========== */
|
||
.loading-portal {
|
||
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
||
background: rgba(10,12,20,0.95);
|
||
backdrop-filter: blur(15px);
|
||
display: flex; flex-direction: column;
|
||
align-items: center; justify-content: center;
|
||
z-index: 999;
|
||
}
|
||
.portal-ring {
|
||
width: 100rpx; height: 100rpx;
|
||
border-radius: 50%;
|
||
border: 3rpx solid rgba(79,110,246,0.2);
|
||
border-top-color: #4f6ef6;
|
||
animation: portalSpin 1s linear infinite;
|
||
margin-bottom: 30rpx;
|
||
}
|
||
@keyframes portalSpin { to { transform: rotate(360deg); } }
|
||
.portal-text { font-size: 28rpx; color: #64748b; }
|
||
|
||
/* ========== 🆕 以下为新增样式,绝无任何修改 ========== */
|
||
|
||
/* 认证状态标签 */
|
||
.renzheng-tag {
|
||
font-size: 22rpx;
|
||
padding: 4rpx 12rpx;
|
||
border-radius: 20rpx;
|
||
margin-top: 8rpx;
|
||
display: inline-block;
|
||
}
|
||
.renzheng-tag.authed {
|
||
background: rgba(76, 175, 80, 0.15);
|
||
color: #4caf50;
|
||
border: 1rpx solid rgba(76, 175, 80, 0.4);
|
||
}
|
||
.renzheng-tag.unauth {
|
||
background: rgba(244, 67, 54, 0.1);
|
||
color: #f44336;
|
||
border: 1rpx solid rgba(244, 67, 54, 0.4);
|
||
}
|
||
|
||
/* 红色角标 */
|
||
.badge {
|
||
position: absolute;
|
||
top: -4rpx;
|
||
right: -8rpx;
|
||
min-width: 36rpx;
|
||
height: 36rpx;
|
||
background: #f44336;
|
||
color: #fff;
|
||
font-size: 22rpx;
|
||
font-weight: 600;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0 8rpx;
|
||
box-shadow: 0 2rpx 8rpx rgba(244, 67, 54, 0.4);
|
||
z-index: 10;
|
||
} |