2025-09-27 17:24:52 +08:00
|
|
|
/* 外层容器:页面整体背景 */
|
|
|
|
|
.page-wrapper {
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 核心:统一内容容器 */
|
|
|
|
|
.content-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 1. 投票区域样式 */
|
|
|
|
|
.voting-section {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
width: 80rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-details {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.username {
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-bottom: 4rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-status {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #888888;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 投票状态样式 */
|
|
|
|
|
.vote-status {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
padding: 6rpx 15rpx;
|
|
|
|
|
border-radius: 18rpx;
|
|
|
|
|
}
|
|
|
|
|
.status-voted {
|
|
|
|
|
background-color: rgba(46, 125, 50, 0.1);
|
|
|
|
|
color: #51bdb6;
|
|
|
|
|
}
|
|
|
|
|
.status-active {
|
|
|
|
|
background-color: rgba(79, 70, 229, 0.1);
|
|
|
|
|
color: #4F46E5;
|
|
|
|
|
}
|
|
|
|
|
.status-ended {
|
|
|
|
|
background-color: rgba(158, 158, 158, 0.1);
|
|
|
|
|
color: #757575;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.divider {
|
|
|
|
|
height: 2rpx;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
margin-bottom: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-title-section {
|
|
|
|
|
margin-bottom: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-title {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-bottom: 16rpx;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.voted-tip {
|
|
|
|
|
color: #51bdb6;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
margin-left: 10rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-desc {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #888888;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.options-container {
|
|
|
|
|
margin-bottom: 25rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 选项样式 */
|
|
|
|
|
.option-item {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 28rpx;
|
|
|
|
|
border: 2rpx solid #f0f0f0;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 未投票选中样式 */
|
|
|
|
|
.option-item.selected:not(.voted-option) {
|
|
|
|
|
border-color: #4F46E5;
|
|
|
|
|
background-color: rgba(79, 70, 229, 0.03);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 已投票选中样式 */
|
|
|
|
|
.option-item.selected.voted-option {
|
|
|
|
|
border-color: #51bdb6 !important;
|
|
|
|
|
background-color: rgba(46, 125, 50, 0.1) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 禁用状态 */
|
|
|
|
|
.option-item.disabled-option {
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-icon.bg-gray {
|
|
|
|
|
width: 64rpx;
|
|
|
|
|
height: 64rpx;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
background-color: rgba(200, 200, 200, 0.1);
|
|
|
|
|
color: #888888;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 已投票选中项图标 */
|
|
|
|
|
.option-item.selected.voted-option .option-icon {
|
|
|
|
|
background-color: #51bdb6;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 未投票选中项图标 */
|
|
|
|
|
.option-item.selected:not(.voted-option) .option-icon {
|
|
|
|
|
background-color: #4F46E5;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-details {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-name {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-bottom: 4rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 您的选择标签 */
|
|
|
|
|
.your-selection {
|
|
|
|
|
color: #51bdb6;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
margin-left: 12rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
background-color: rgba(46, 125, 50, 0.1);
|
|
|
|
|
padding: 2rpx 10rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-desc {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #888888;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-action-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 16rpx;
|
|
|
|
|
right: 16rpx;
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
height: 48rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
color: #666666;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.option-percent {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
min-width: 60rpx;
|
|
|
|
|
text-align: right;
|
|
|
|
|
margin-right: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.progress-bar {
|
|
|
|
|
height: 12rpx;
|
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
|
border-radius: 6rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
width: 160rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.progress-value {
|
|
|
|
|
height: 100%;
|
|
|
|
|
transition: width 0.5s ease-out;
|
|
|
|
|
background-color: #4F46E5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 已投票选中项进度条 */
|
|
|
|
|
.option-item.selected.voted-option .progress-value {
|
|
|
|
|
background-color: #51bdb6 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-indicator {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 24rpx;
|
|
|
|
|
right: 24rpx;
|
|
|
|
|
color: #4F46E5;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-indicator.show {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 已投票选中项指示器 */
|
|
|
|
|
.option-item.selected.voted-option .vote-indicator {
|
|
|
|
|
color: #51bdb6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-stats {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-text {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #888888;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-btn-wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 投票按钮样式修改:核心居中修正 */
|
|
|
|
|
.vote-btn {
|
|
|
|
|
width: 50%;
|
|
|
|
|
/* 核心修正:使用明确的 height 和 line-height 替代 padding */
|
|
|
|
|
height: 70rpx; /* 按钮高度 */
|
|
|
|
|
line-height: 70rpx; /* 行高与高度一致,确保文字垂直居中 */
|
|
|
|
|
padding: 0; /* 移除默认 padding 干扰 */
|
|
|
|
|
padding-bottom: 2vh;
|
|
|
|
|
background-color: #4F46E5;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
border-radius: 16rpx;
|
|
|
|
|
font-size: 28rpx; /* 字体增大一点,更具视觉冲击力 */
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
|
|
/* 核心居中:使用 flex 布局 */
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center; /* 水平居中 */
|
|
|
|
|
align-items: center; /* 垂直居中 */
|
|
|
|
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保内部的文本和图标能够正确居中 */
|
|
|
|
|
.vote-btn .iconfont {
|
|
|
|
|
font-size: 28rpx; /* 图标大小与文字一致 */
|
|
|
|
|
|
|
|
|
|
/* 确保图标不占用额外高度空间 */
|
|
|
|
|
height: auto;
|
|
|
|
|
line-height: 1; /* 图标行高设为1 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保内部的文字不会有额外的行高干扰垂直居中 */
|
|
|
|
|
.vote-btn .btn-text {
|
|
|
|
|
/* 移除 display: block 的默认行高干扰 */
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 清除小程序button默认边框 */
|
|
|
|
|
.vote-btn::after {
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* hover状态保持原有逻辑 */
|
|
|
|
|
.vote-btn:not(.vote-btn-ended):not(.vote-btn-disabled):hover {
|
|
|
|
|
background-color: rgba(79, 70, 229, 0.9);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 点击状态保持原有逻辑 */
|
|
|
|
|
.vote-btn:not(.vote-btn-ended):not(.vote-btn-disabled):active {
|
|
|
|
|
transform: scale(0.98);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 禁用状态样式保持不变 */
|
|
|
|
|
.vote-btn-ended, .vote-btn-disabled {
|
|
|
|
|
background-color: #cccccc !important;
|
|
|
|
|
color: #888888 !important;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-status-tip {
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #666666;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vote-status-tip.error {
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-divider {
|
|
|
|
|
height: 2rpx;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 2. 评论区域样式 */
|
|
|
|
|
.comment-section {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-count {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #666;
|
|
|
|
|
margin-bottom: 15rpx;
|
|
|
|
|
padding-bottom: 8rpx;
|
|
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-item {
|
|
|
|
|
padding: 0rpx;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
margin-bottom: 0rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-level {
|
|
|
|
|
padding: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.reply-level {
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
padding: 15rpx;
|
|
|
|
|
margin-top: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-comment {
|
|
|
|
|
margin-left: 50rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-sub-comment {
|
|
|
|
|
margin-left: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-header .avatar {
|
|
|
|
|
width: 56rpx;
|
|
|
|
|
height: 56rpx;
|
|
|
|
|
margin-right: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-header .username {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
margin-right: 8rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-comment .username {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-content {
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-comment .comment-content {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
height: 36rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-left {
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
color: #999999;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-comment .footer-left {
|
|
|
|
|
font-size: 20rpx;
|
|
|
|
|
color: #aaaaaa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-right {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.like-icon-wrap, .dislike-icon-wrap {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.like-icon, .dislike-icon {
|
|
|
|
|
width: 24rpx;
|
|
|
|
|
height: 24rpx;
|
|
|
|
|
margin-right: 4rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.like-icon.liked {
|
|
|
|
|
filter: drop-shadow(0 0 0.5rpx #ff4d4f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dislike-icon.disliked {
|
|
|
|
|
filter: drop-shadow(0 0 0.5rpx #4F46E5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.likes-count, .dislikes-count {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.replies-container {
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-status {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 40rpx 0;
|
|
|
|
|
color: #666;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.comment-divider {
|
|
|
|
|
height: 1px;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
margin: 12rpx 0;
|
|
|
|
|
margin-left: inherit;
|
|
|
|
|
margin-right: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 图标字体样式 */
|
|
|
|
|
.iconfont {
|
|
|
|
|
font-family: "iconfont" !important;
|
|
|
|
|
font-size: inherit;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-thumbs-up:before {
|
|
|
|
|
content: "\e60a";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-check-circle:before {
|
|
|
|
|
content: "\e610";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.like-icon-wrap {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.like-icon {
|
|
|
|
|
font-size: 16rpx;
|
|
|
|
|
margin-right: 4rpx;
|
|
|
|
|
color: #999; /* 默认颜色为灰色 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ⭐️ 核心:用户已点赞时的样式 */
|
|
|
|
|
.like-icon.liked {
|
|
|
|
|
color: #FF4D4F; /* 示例:点赞后变为红色 */
|
|
|
|
|
/* 或者添加一个轻微的阴影来增强视觉效果 */
|
|
|
|
|
/* text-shadow: 0 0 2rpx rgba(255, 77, 79, 0.7); */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 点赞数文本:保持原样式不变 */
|
|
|
|
|
.likes-count {
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 新增:回复输入框容器(固定在底部,全屏宽度) */
|
|
|
|
|
.reply-input-container {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-top: 1rpx solid #f5f5f5;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
z-index: 999; /* 提高层级,确保在所有内容上方 */
|
|
|
|
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05); /* 增加阴影,突出“弹出”感 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 输入框样式 */
|
|
|
|
|
.reply-input {
|
|
|
|
|
flex: 1; /* 占满剩余宽度 */
|
|
|
|
|
height: 56rpx;
|
|
|
|
|
background-color: #f5f5f5;
|
|
|
|
|
border-radius: 28rpx; /* 圆角,更美观 */
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 提交按钮样式 */
|
|
|
|
|
.reply-submit-btn {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 56rpx;
|
|
|
|
|
line-height: 56rpx;
|
|
|
|
|
background-color: #4F46E5;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-radius: 28rpx;
|
|
|
|
|
margin-left: 16rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
padding: 0; /* 清除默认内边距 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 提交按钮禁用样式(可选:内容为空时禁用) */
|
|
|
|
|
.reply-submit-btn:disabled {
|
|
|
|
|
background-color: #cccccc;
|
|
|
|
|
color: #888;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 原有样式不变... */
|