ai-c/app.wxss
2026-02-02 18:21:32 +08:00

201 lines
3.1 KiB
Plaintext

/* 统一导航栏样式 */
.unified-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 194rpx;
background: rgba(255, 255, 255, 0.95);
border-bottom: 2rpx solid #f9fafb;
display: flex;
align-items: flex-end;
justify-content: space-between;
padding: 0 32rpx 20rpx;
z-index: 1000;
}
.unified-header-left {
display: flex;
align-items: center;
gap: 8rpx;
width: 160rpx;
height: 56rpx;
}
.unified-header-title {
font-size: 40rpx;
font-weight: bold;
color: #101828;
flex: 1;
text-align: center;
}
.unified-header-right {
width: 160rpx;
height: 56rpx;
}
.unified-back-icon {
width: 56rpx;
height: 56rpx;
}
.unified-back-text {
font-size: 34rpx;
font-weight: bold;
color: #101828;
}
/* 隐藏原生tabBar边框 */
.wx-tabbar::before {
display: none !important;
}
/* 全局样式 */
page {
--primary: #914584;
--primary-light: #E8C3D4;
--background: #ffffff;
--foreground: #1a1a1a;
--muted: #ececf0;
--muted-foreground: #717182;
--border: rgba(0, 0, 0, 0.1);
--radius: 20rpx;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: var(--primary-light);
color: var(--foreground);
font-size: 28rpx;
line-height: 1.5;
width: 100%;
max-width: 100vw;
overflow-x: hidden;
box-sizing: border-box;
}
/* 全局盒模型 */
view, text, image, scroll-view, input {
box-sizing: border-box;
max-width: 100%;
}
.btn-reset {
padding: 0;
margin: 0;
line-height: inherit;
background: transparent;
border-radius: 0;
text-align: center;
}
.btn-reset::after { border: none; }
.safe-bottom {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
/* 通用类 */
.container {
padding: 30rpx;
}
.flex {
display: flex;
}
.flex-col {
flex-direction: column;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.gap-20 {
gap: 20rpx;
}
.gap-30 {
gap: 30rpx;
}
.text-center {
text-align: center;
}
.font-bold {
font-weight: bold;
}
.rounded-full {
border-radius: 50%;
}
.shadow {
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
}
/* 卡片样式 */
.card {
background: #fff;
border-radius: 32rpx;
padding: 30rpx;
box-shadow: 0 8rpx 40rpx rgba(59, 64, 86, 0.15);
}
/* 按钮样式 */
.btn-primary {
background: linear-gradient(135deg, #914584 0%, #B378FE 100%);
color: #fff;
border: none;
border-radius: 50rpx;
padding: 24rpx 48rpx;
font-size: 32rpx;
font-weight: bold;
}
.btn-secondary {
background: #f5f5f5;
color: #333;
border: none;
border-radius: 50rpx;
padding: 24rpx 48rpx;
font-size: 32rpx;
}
/* 头像样式 */
.avatar {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
object-fit: cover;
}
.avatar-sm {
width: 80rpx;
height: 80rpx;
}
.avatar-lg {
width: 160rpx;
height: 160rpx;
}
/* 动画 */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}