|
/* 主容器样式 */
|
.flex {
|
display: flex;
|
}
|
.flex-1 {
|
flex: 1 1 0%;
|
}
|
.items-center {
|
align-items: center;
|
}
|
.cursor-pointer {
|
cursor: pointer;
|
}
|
.justify-center {
|
justify-content: center;
|
}
|
.justify-between {
|
justify-content: space-between;
|
}
|
.h-35px {
|
height: 35px;
|
line-height: 35px;
|
}
|
.px-3 {
|
padding-left: 0.75rem;
|
padding-right: 0.75rem;
|
}
|
.rounded {
|
border-radius: 0.25rem;
|
}
|
.border {
|
border-width: 1px;
|
}
|
.border-gray-300 {
|
border-color: rgb(209 213 219);
|
}
|
.bg-gray-50 {
|
background-color: rgb(249 250 251);
|
}
|
.active-bg-gray-100:active {
|
background-color: rgb(243 244 246);
|
}
|
.transition-all {
|
transition-property: all;
|
}
|
.duration-150 {
|
transition-duration: 150ms;
|
}
|
.truncate {
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
.text-gray-800 {
|
color: rgb(31 41 55);
|
}
|
.text-sm {
|
font-size: 0.875rem;
|
line-height: 1.25rem;
|
}
|
.text-gray-400 {
|
color: rgb(156 163 175);
|
}
|
.text-xs {
|
font-size: 0.75rem;
|
line-height: 1rem;
|
}
|
|
/* ------- 布局与容器 ------- */
|
.p-4 {
|
padding: 1rem;
|
}
|
.space-y-4 {
|
margin-top: 1rem;
|
}
|
.mb-4 {
|
margin-bottom: 1rem;
|
}
|
.mt-4 {
|
margin-top: 1rem;
|
}
|
|
/* ------- 字体与文字 ------- */
|
.text-2xl {
|
font-size: 1.5rem;
|
line-height: 2rem;
|
}
|
.text-sm {
|
font-size: 0.875rem;
|
line-height: 1.25rem;
|
}
|
.text-xs {
|
font-size: 0.75rem;
|
line-height: 1rem;
|
}
|
.text-center {
|
text-align: center;
|
}
|
.text-gray-500 {
|
color: #6b7280;
|
}
|
.font-bold {
|
font-weight: 700;
|
}
|
.font-medium {
|
font-weight: 500;
|
}
|
|
/* ------- 尺寸与布局 ------- */
|
.w-full {
|
width: 100%;
|
}
|
.flex {
|
display: flex;
|
}
|
.flex-1 {
|
flex: 1 1 0%;
|
}
|
.items-center {
|
align-items: center;
|
}
|
.h-full {
|
height: 100%;
|
}
|
.h-5 {
|
height: 1rem;
|
}
|
.h-11 {
|
height: 2rem;
|
}
|
.h-15 {
|
height: 3rem;
|
}
|
.h-12 {
|
height: 2rem;
|
}
|
.w-8 {
|
width: 2rem;
|
}
|
.ml-5 {
|
margin-left: 20rpx;
|
}
|
.h-8 {
|
height: 2rem;
|
}
|
.w-24 {
|
width: 5rem;
|
}
|
.w-28 {
|
width: 7rem;
|
}
|
|
/* ------- 边距与填充 ------- */
|
.p-2 {
|
padding: 0.5rem;
|
}
|
.px-3 {
|
padding-left: 0.75rem;
|
padding-right: 0.75rem;
|
}
|
.py-3 {
|
padding-top: 0.75rem;
|
padding-bottom: 0.75rem;
|
}
|
|
/* ------- 边框与圆角 ------- */
|
.border {
|
border-width: 1px;
|
border-style: solid;
|
border-color: #d1d5db;
|
}
|
.border-gray-300 {
|
border-color: #d1d5db;
|
}
|
.rounded {
|
border-radius: 0.25rem;
|
}
|
.rounded-lg {
|
border-radius: 0.5rem;
|
}
|
|
/* ------- 背景色与颜色 ------- */
|
.bg-blue-500 {
|
background-color: #3b82f6;
|
}
|
.bg-gray-300 {
|
background-color: #d1d5db;
|
}
|
.text-white {
|
color: #fff;
|
}
|
.mx-8 {
|
margin-left: 1rem;
|
margin-right: 1rem;
|
}
|
.text-center {
|
text-align: center;
|
}
|
.w-8 {
|
width: 2rem;
|
/* Tailwind w-8 默认 2rem */
|
}
|
|
/* ------- 按钮样式 ------- */
|
button {
|
border: none;
|
cursor: pointer;
|
}
|
|
/* 轻微交互效果 */
|
button:hover {
|
opacity: 0.9;
|
}
|
.page-wrapper {
|
position: relative;
|
min-height: 100vh;
|
/* 确保小内容时填满视口 */
|
overflow: hidden;
|
}
|
|
/* 顶部背景 */
|
.bg-top {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 100%;
|
height: 500rpx;
|
/* 可用固定像素或图片高度 */
|
background: url('https://farm.evcc.top/Uploads/yuanboyuan/background/bg_top.jpg') no-repeat top center;
|
background-size: cover;
|
z-index: 0;
|
}
|
|
/* 底部背景 */
|
.bg-bottom {
|
position: absolute;
|
bottom: 0;
|
left: 0;
|
width: 100%;
|
height: 500rpx;
|
/* 可用固定像素或图片高度 */
|
background: url('https://farm.evcc.top/Uploads/yuanboyuan/background/bg_bottom.jpg') no-repeat bottom center;
|
background-size: cover;
|
z-index: 0;
|
}
|
|
/* 内容层 */
|
.content-wrapper {
|
position: relative;
|
z-index: 1;
|
padding: 2rem 1rem;
|
}
|