260 lines
4.0 KiB
Plaintext
260 lines
4.0 KiB
Plaintext
/* 全局样式 */
|
|
page {
|
|
--primary-color: #FF6B35;
|
|
--primary-light: #FF8C5A;
|
|
--secondary-color: #2EC4B6;
|
|
--accent-color: #FFBA08;
|
|
--dark-bg: #1A1A2E;
|
|
--light-bg: #F8F9FA;
|
|
--text-primary: #2C3E50;
|
|
--text-secondary: #7F8C8D;
|
|
--border-color: #E8E8E8;
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
font-size: 28rpx;
|
|
color: var(--text-primary);
|
|
background-color: var(--light-bg);
|
|
}
|
|
|
|
/* 通用样式 */
|
|
.container {
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 16rpx;
|
|
padding: 24rpx;
|
|
margin-bottom: 20rpx;
|
|
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-center {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.flex-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.flex-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 按钮样式 */
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 40rpx;
|
|
padding: 20rpx 60rpx;
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--secondary-color);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 40rpx;
|
|
padding: 20rpx 60rpx;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: var(--primary-color);
|
|
border: 2rpx solid var(--primary-color);
|
|
border-radius: 40rpx;
|
|
padding: 18rpx 58rpx;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
/* 等级标签 */
|
|
.level-tag {
|
|
display: inline-block;
|
|
padding: 6rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.level-tag.lv1 {
|
|
background: #E8F5E9;
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.level-tag.lv2 {
|
|
background: #E3F2FD;
|
|
color: #2196F3;
|
|
}
|
|
|
|
.level-tag.lv3 {
|
|
background: #FFF3E0;
|
|
color: #FF9800;
|
|
}
|
|
|
|
.level-tag.lv4 {
|
|
background: #FCE4EC;
|
|
color: #E91E63;
|
|
}
|
|
|
|
.level-tag.lv5 {
|
|
background: #F3E5F5;
|
|
color: #9C27B0;
|
|
}
|
|
|
|
/* 性别标签 */
|
|
.gender-male {
|
|
color: #2196F3;
|
|
}
|
|
|
|
.gender-female {
|
|
color: #E91E63;
|
|
}
|
|
|
|
/* 排名样式 */
|
|
.rank-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
border-radius: 50%;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rank-badge.top1 {
|
|
background: linear-gradient(135deg, #FFD700, #FFA500);
|
|
color: #fff;
|
|
}
|
|
|
|
.rank-badge.top2 {
|
|
background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
|
|
color: #fff;
|
|
}
|
|
|
|
.rank-badge.top3 {
|
|
background: linear-gradient(135deg, #CD7F32, #B87333);
|
|
color: #fff;
|
|
}
|
|
|
|
.rank-badge.normal {
|
|
background: var(--light-bg);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 100rpx 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state image {
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
margin-bottom: 20rpx;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* 加载状态 */
|
|
.loading-state {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40rpx 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* 战力值变动 */
|
|
.power-change {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.power-change.positive {
|
|
color: #52C41A;
|
|
}
|
|
|
|
.power-change.negative {
|
|
color: #F5222D;
|
|
}
|
|
|
|
/* 列表项 */
|
|
.list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 24rpx;
|
|
background: #fff;
|
|
border-bottom: 1rpx solid var(--border-color);
|
|
}
|
|
|
|
.list-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* 头像 */
|
|
.avatar {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 50%;
|
|
background: var(--light-bg);
|
|
}
|
|
|
|
.avatar-large {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* 标签 */
|
|
.tag {
|
|
display: inline-block;
|
|
padding: 4rpx 12rpx;
|
|
border-radius: 8rpx;
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.tag-success {
|
|
background: #E8F5E9;
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.tag-warning {
|
|
background: #FFF3E0;
|
|
color: #FF9800;
|
|
}
|
|
|
|
.tag-danger {
|
|
background: #FFEBEE;
|
|
color: #F44336;
|
|
}
|
|
|
|
/* 页面标题 */
|
|
.page-title {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
/* 分割线 */
|
|
.divider {
|
|
height: 1rpx;
|
|
background: var(--border-color);
|
|
margin: 20rpx 0;
|
|
}
|