zhibo/android-app/app/src/main/assets/web/styles/profile.css

483 lines
8.6 KiB
CSS
Raw Normal View History

2026-01-06 14:24:42 +08:00
/* ========== 基础重置 ========== */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
:root {
--bg-dark: #0a0a14;
--bg-mid: #12122b;
--neon-pink: #FF2E63;
--neon-cyan: #08D9D6;
--neon-purple: #a855f7;
--gold-start: #f6d365;
--gold-end: #fda085;
--glass-bg: rgba(255, 255, 255, 0.05);
--glass-border: rgba(255, 255, 255, 0.1);
--text-primary: #ffffff;
--text-secondary: rgba(255, 255, 255, 0.6);
}
html, body {
width: 100%;
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
background: var(--bg-dark);
color: var(--text-primary);
overflow-x: hidden;
}
/* ========== 主容器 ========== */
.profile-app {
position: relative;
width: 100%;
max-width: 430px;
min-height: 100vh;
margin: 0 auto;
background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
overflow: hidden;
}
.profile-inner {
position: relative;
z-index: 10;
padding: 14px 16px;
padding-bottom: 100px;
}
/* ========== 背景层 ========== */
.bg-layer {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.avatar-blur {
position: absolute;
top: -50px;
left: 50%;
transform: translateX(-50%);
width: 300px;
height: 300px;
background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
border-radius: 50%;
filter: blur(100px);
opacity: 0.4;
}
.gradient-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 60%);
}
.grid-lines {
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: 40px 40px;
mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}
/* ========== 玻璃拟态 ========== */
.glass {
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 16px;
}
/* ========== 顶部栏 ========== */
.top-bar {
display: flex;
justify-content: flex-end;
margin-bottom: 20px;
}
.top-actions {
display: flex;
gap: 10px;
}
.icon-btn {
width: 40px;
height: 40px;
border: none;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
cursor: pointer;
transition: all 0.3s ease;
}
.icon-btn:active {
transform: scale(0.92);
background: rgba(255, 255, 255, 0.15);
}
/* ========== 用户信息区 ========== */
.user-section {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.avatar-area {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.avatar-ring {
position: relative;
width: 90px;
height: 90px;
border-radius: 50%;
padding: 4px;
background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
}
.ring-glow {
position: absolute;
inset: -4px;
border-radius: 50%;
background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
filter: blur(10px);
opacity: 0.5;
animation: ring-pulse 2s ease-in-out infinite;
}
@keyframes ring-pulse {
0%, 100% { opacity: 0.5; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.05); }
}
.avatar-img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
}
.edit-btn {
padding: 6px 14px;
border: none;
font-size: 12px;
color: var(--text-primary);
cursor: pointer;
transition: all 0.3s;
}
.edit-btn:active {
transform: scale(0.95);
}
.user-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.user-name {
font-size: 26px;
font-weight: 700;
margin-bottom: 8px;
background: linear-gradient(90deg, #fff, var(--neon-cyan));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.user-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 10px;
}
.tag {
padding: 4px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
}
.tag.level {
background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
color: #fff;
}
.tag.fans {
background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
color: #5a3d00;
}
.tag.vip {
background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
color: #fff;
}
.user-id {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--text-secondary);
}
.gender-icon {
color: var(--neon-cyan);
}
.copy-btn {
background: none;
border: none;
font-size: 14px;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.3s;
}
.copy-btn:active {
opacity: 1;
}
/* ========== 钱包卡片 ========== */
.wallet-card {
position: relative;
padding: 20px;
margin-bottom: 16px;
overflow: hidden;
background: linear-gradient(135deg, rgba(246, 211, 101, 0.15), rgba(253, 160, 133, 0.1));
border: 1px solid rgba(246, 211, 101, 0.3);
}
.wallet-glow {
position: absolute;
top: -50%;
right: -30%;
width: 150px;
height: 150px;
background: radial-gradient(circle, rgba(246, 211, 101, 0.4) 0%, transparent 70%);
animation: wallet-pulse 3s ease-in-out infinite;
}
@keyframes wallet-pulse {
0%, 100% { opacity: 0.4; transform: scale(1); }
50% { opacity: 0.7; transform: scale(1.2); }
}
.wallet-shine {
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: wallet-shine 4s ease-in-out infinite;
}
@keyframes wallet-shine {
0%, 100% { left: -100%; }
50% { left: 100%; }
}
.wallet-content {
position: relative;
display: flex;
align-items: center;
gap: 14px;
}
.wallet-icon {
font-size: 36px;
}
.wallet-info {
flex: 1;
display: flex;
flex-direction: column;
}
.wallet-label {
font-size: 12px;
color: var(--text-secondary);
}
.wallet-value {
font-size: 24px;
font-weight: 700;
background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.wallet-actions {
display: flex;
gap: 10px;
}
.wallet-btn {
padding: 8px 18px;
border: none;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
color: #5a3d00;
}
.wallet-btn.outline {
background: transparent;
border: 1px solid var(--gold-start);
color: var(--gold-start);
}
.wallet-btn:active {
transform: scale(0.95);
}
/* ========== 统计数据 ========== */
.stats-section {
display: flex;
align-items: center;
padding: 18px 10px;
margin-bottom: 16px;
}
.stat-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
transition: transform 0.3s;
}
.stat-item:active {
transform: scale(0.95);
}
.stat-value {
font-size: 20px;
font-weight: 700;
background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-label {
font-size: 12px;
color: var(--text-secondary);
margin-top: 4px;
}
.stat-divider {
width: 1px;
height: 30px;
background: var(--glass-border);
}
/* ========== 功能菜单 ========== */
.menu-section {
display: flex;
flex-direction: column;
gap: 10px;
}
.menu-item {
display: flex;
align-items: center;
padding: 16px;
cursor: pointer;
transition: all 0.3s;
}
.menu-item:active {
transform: scale(0.98);
background: rgba(255, 255, 255, 0.08);
}
.menu-icon {
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
margin-right: 14px;
}
.menu-icon.pink {
background: rgba(255, 46, 99, 0.15);
}
.menu-icon.cyan {
background: rgba(8, 217, 214, 0.15);
}
.menu-icon.purple {
background: rgba(168, 85, 247, 0.15);
}
.menu-icon.gray {
background: rgba(255, 255, 255, 0.1);
}
.menu-text {
flex: 1;
display: flex;
flex-direction: column;
}
.menu-title {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
}
.menu-desc {
font-size: 12px;
color: var(--text-secondary);
margin-top: 2px;
}
.menu-arrow {
font-size: 20px;
color: var(--text-secondary);
}
/* ========== 响应式 ========== */
@media (max-height: 700px) {
.avatar-ring {
width: 75px;
height: 75px;
}
.user-name {
font-size: 22px;
}
.wallet-card {
padding: 16px;
}
.wallet-value {
font-size: 20px;
}
}