You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
278 lines
5.8 KiB
278 lines
5.8 KiB
.page-wrapper {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
|
|
padding: 30rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 卡片样式 */
|
|
.form-card {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 32rpx;
|
|
margin-bottom: 30rpx;
|
|
box-shadow: 0 20rpx 40rpx rgba(0, 0, 0, 0.05), 0 4rpx 12rpx rgba(0, 0, 0, 0.03);
|
|
overflow: hidden;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.8);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 卡片头部 */
|
|
.card-header {
|
|
padding: 28rpx 32rpx;
|
|
background: linear-gradient(90deg, #ffffff, #fafcff);
|
|
border-bottom: 2rpx solid rgba(7, 193, 96, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.header-icon {
|
|
font-size: 36rpx;
|
|
line-height: 1;
|
|
filter: drop-shadow(0 4rpx 6rpx rgba(7, 193, 96, 0.2));
|
|
}
|
|
|
|
.header-title {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #1a2b3c;
|
|
letter-spacing: 1rpx;
|
|
}
|
|
|
|
/* 徽章样式 */
|
|
.required-badge {
|
|
background: linear-gradient(135deg, #ff6b6b, #ff4757);
|
|
color: white;
|
|
font-size: 22rpx;
|
|
padding: 4rpx 16rpx;
|
|
border-radius: 30rpx;
|
|
margin-left: 16rpx;
|
|
box-shadow: 0 4rpx 10rpx rgba(255, 71, 87, 0.3);
|
|
}
|
|
|
|
.optional-badge {
|
|
background: linear-gradient(135deg, #a0a0a0, #808080);
|
|
color: white;
|
|
font-size: 22rpx;
|
|
padding: 4rpx 16rpx;
|
|
border-radius: 30rpx;
|
|
margin-left: 16rpx;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 卡片内容 */
|
|
.card-content {
|
|
padding: 0 32rpx 32rpx 32rpx;
|
|
}
|
|
|
|
.card-content.no-padding {
|
|
padding: 0;
|
|
}
|
|
|
|
/* 输入框包装器 */
|
|
.input-wrapper,
|
|
.textarea-wrapper {
|
|
background: #f8fafd;
|
|
border-radius: 24rpx;
|
|
margin: 0 32rpx 32rpx 32rpx;
|
|
border: 2rpx solid transparent;
|
|
transition: all 0.3s ease;
|
|
box-shadow: inset 0 2rpx 6rpx rgba(0, 0, 0, 0.02);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.input-wrapper:focus-within,
|
|
.textarea-wrapper:focus-within {
|
|
border-color: #07c160;
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 6rpx rgba(7, 193, 96, 0.1), inset 0 2rpx 6rpx rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
/* 输入框样式 */
|
|
input, textarea {
|
|
width: 100%;
|
|
font-size: 30rpx;
|
|
color: #1e293b;
|
|
padding: 24rpx 28rpx;
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
textarea {
|
|
min-height: 120rpx;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.placeholder-style {
|
|
color: #aab8c5;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* 分类选择器 */
|
|
.picker-trigger {
|
|
background: #f8fafd;
|
|
padding: 24rpx 28rpx;
|
|
border-radius: 24rpx;
|
|
font-size: 30rpx;
|
|
color: #aab8c5;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border: 2rpx solid transparent;
|
|
transition: all 0.3s ease;
|
|
box-shadow: inset 0 2rpx 6rpx rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.picker-trigger.selected {
|
|
color: #1e293b;
|
|
border-color: #07c160;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.picker-arrow {
|
|
font-size: 28rpx;
|
|
color: #94a3b8;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
/* 标签组 */
|
|
.tag-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.tag-item {
|
|
padding: 16rpx 36rpx;
|
|
background: #f1f5f9;
|
|
border-radius: 60rpx;
|
|
font-size: 28rpx;
|
|
color: #475569;
|
|
border: 2rpx solid #e2e8f0;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.tag-item.active {
|
|
background: linear-gradient(135deg, #07c160, #059669);
|
|
color: white;
|
|
border-color: #07c160;
|
|
transform: translateY(-2rpx);
|
|
box-shadow: 0 10rpx 20rpx rgba(7, 193, 96, 0.3);
|
|
}
|
|
|
|
/* 已选标签区域 */
|
|
.selected-tags {
|
|
margin-top: 24rpx;
|
|
padding: 24rpx;
|
|
background: linear-gradient(135deg, #f0fdf4, #dcfce7);
|
|
border-radius: 24rpx;
|
|
border: 2rpx solid rgba(7, 193, 96, 0.2);
|
|
}
|
|
|
|
.selected-label {
|
|
font-size: 26rpx;
|
|
color: #059669;
|
|
font-weight: 500;
|
|
display: block;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.selected-tag-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.selected-tag-item {
|
|
padding: 10rpx 28rpx;
|
|
background: white;
|
|
border-radius: 40rpx;
|
|
font-size: 26rpx;
|
|
color: #07c160;
|
|
border: 2rpx solid #07c160;
|
|
box-shadow: 0 4rpx 10rpx rgba(7, 193, 96, 0.1);
|
|
}
|
|
|
|
/* 标签字符串预览 */
|
|
.tag-string-preview {
|
|
font-size: 26rpx;
|
|
color: #475569;
|
|
padding: 16rpx;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
border-radius: 16rpx;
|
|
border: 2rpx dashed #07c160;
|
|
}
|
|
|
|
.tag-string-value {
|
|
color: #07c160;
|
|
font-weight: 500;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* 内容区域特殊样式 */
|
|
.content-card .content-textarea {
|
|
min-height: 300rpx;
|
|
}
|
|
|
|
/* 提交区域 */
|
|
.submit-area {
|
|
margin-top: 60rpx;
|
|
padding-bottom: 40rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.submit-btn {
|
|
width: 100%;
|
|
height: 96rpx;
|
|
background: linear-gradient(135deg, #07c160, #059669);
|
|
border-radius: 60rpx;
|
|
color: white;
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
box-shadow: 0 20rpx 40rpx rgba(7, 193, 96, 0.3);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.submit-btn:active {
|
|
transform: translateY(-4rpx);
|
|
box-shadow: 0 30rpx 50rpx rgba(7, 193, 96, 0.4);
|
|
}
|
|
|
|
.submit-btn[disabled] {
|
|
opacity: 0.7;
|
|
transform: none;
|
|
box-shadow: 0 10rpx 20rpx rgba(7, 193, 96, 0.2);
|
|
}
|
|
|
|
.tip-text {
|
|
margin-top: 24rpx;
|
|
font-size: 26rpx;
|
|
color: #94a3b8;
|
|
letter-spacing: 2rpx;
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.form-card {
|
|
animation: fadeIn 0.4s ease-out forwards;
|
|
}
|