|
|
@@ -6,11 +6,22 @@
|
|
|
bottom: 0;
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ align-items: center; // 桌面端居中
|
|
|
justify-content: center;
|
|
|
z-index: 2400;
|
|
|
animation: fadeIn 0.2s ease;
|
|
|
pointer-events: auto;
|
|
|
+
|
|
|
+ // 🔥 移动端:从顶部开始,留出安全距离
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ align-items: flex-start;
|
|
|
+ padding-top: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ align-items: flex-start;
|
|
|
+ padding-top: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.modal-container {
|
|
|
@@ -26,6 +37,20 @@
|
|
|
pointer-events: auto;
|
|
|
position: relative;
|
|
|
z-index: 1;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:占满屏幕宽度,减小圆角
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ width: 95%;
|
|
|
+ max-height: calc(100vh - 40px); // 🔥 减去顶部padding
|
|
|
+ border-radius: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 100%;
|
|
|
+ max-height: calc(100vh - 20px); // 🔥 减去顶部padding
|
|
|
+ border-radius: 0;
|
|
|
+ margin-bottom: 10px; // 🔥 底部留出一点空间
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.modal-header {
|
|
|
@@ -35,11 +60,25 @@
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
+ // 🔥 移动端适配:减小padding
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 16px 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 14px 16px;
|
|
|
+ }
|
|
|
+
|
|
|
h3 {
|
|
|
margin: 0;
|
|
|
font-size: 18px;
|
|
|
font-weight: 600;
|
|
|
color: #1f2937;
|
|
|
+
|
|
|
+ // 🔥 移动端:调整字体大小
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.close-btn {
|
|
|
@@ -59,11 +98,34 @@
|
|
|
.modal-body {
|
|
|
flex: 1;
|
|
|
overflow-y: auto;
|
|
|
+ overflow-x: hidden; // 🔥 防止横向滚动
|
|
|
padding: 24px;
|
|
|
+ -webkit-overflow-scrolling: touch; // 🔥 iOS平滑滚动
|
|
|
+
|
|
|
+ // 🔥 移动端适配:减小padding,确保滚动流畅
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 18px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 12px; // 🔥 企业微信端:减小padding给内容更多空间
|
|
|
+ min-height: 0; // 🔥 允许flex子项收缩
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.form-section {
|
|
|
margin-bottom: 24px;
|
|
|
+ width: 100%; // 🔥 确保占满可用宽度
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:减小间距,让内容更紧凑
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ margin-bottom: 18px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ margin-bottom: 14px; // 🔥 企业微信端:进一步减小间距
|
|
|
+ }
|
|
|
|
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
|
@@ -77,6 +139,17 @@
|
|
|
font-weight: 600;
|
|
|
color: #374151;
|
|
|
|
|
|
+ // 🔥 移动端适配:调整字体和间距
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 13px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 13px;
|
|
|
+ margin-bottom: 8px; // 🔥 企业微信端:减小间距
|
|
|
+ }
|
|
|
+
|
|
|
.required {
|
|
|
color: #ef4444;
|
|
|
margin-left: 4px;
|
|
|
@@ -88,6 +161,19 @@
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
margin-bottom: 12px;
|
|
|
+ gap: 12px; // 🔥 确保标题和按钮之间有间距
|
|
|
+
|
|
|
+ // 🔥 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ margin-bottom: 10px;
|
|
|
+ gap: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ flex-wrap: nowrap; // 确保不换行
|
|
|
+ margin-bottom: 10px;
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.toggle-all-btn {
|
|
|
@@ -99,6 +185,19 @@
|
|
|
color: #6b7280;
|
|
|
cursor: pointer;
|
|
|
transition: all 0.2s;
|
|
|
+ white-space: nowrap; // 🔥 防止按钮文字换行
|
|
|
+ flex-shrink: 0; // 🔥 防止按钮被压缩
|
|
|
+
|
|
|
+ // 🔥 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 6px 14px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 6px 12px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
|
|
|
&:hover {
|
|
|
background: #f3f4f6;
|
|
|
@@ -112,6 +211,15 @@
|
|
|
display: grid;
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
gap: 12px;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:减小间距
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ gap: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.type-option {
|
|
|
@@ -124,6 +232,17 @@
|
|
|
align-items: flex-start;
|
|
|
gap: 12px;
|
|
|
|
|
|
+ // 🔥 移动端适配:减小padding
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 14px;
|
|
|
+ gap: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 12px;
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
&:hover {
|
|
|
border-color: #d1d5db;
|
|
|
background: #f9fafb;
|
|
|
@@ -149,6 +268,17 @@
|
|
|
flex-shrink: 0;
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
+ // 🔥 移动端适配:减小图标大小
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 36px;
|
|
|
+ height: 36px;
|
|
|
+
|
|
|
+ svg {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
&.minor {
|
|
|
background: #dbeafe;
|
|
|
color: #1e40af;
|
|
|
@@ -168,6 +298,11 @@
|
|
|
font-size: 15px;
|
|
|
font-weight: 600;
|
|
|
color: #1f2937;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:调整字体
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
p {
|
|
|
@@ -175,6 +310,11 @@
|
|
|
font-size: 13px;
|
|
|
color: #6b7280;
|
|
|
line-height: 1.4;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:调整字体
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -190,6 +330,23 @@
|
|
|
background: #f9fafb;
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid #e5e7eb;
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box; // 🔥 包含padding在内
|
|
|
+
|
|
|
+ // 🔥 移动端适配:调整网格列宽
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ gap: 8px;
|
|
|
+ padding: 10px;
|
|
|
+ max-height: 180px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ grid-template-columns: 1fr; // 🔥 单列布局,确保宽度充足
|
|
|
+ gap: 8px;
|
|
|
+ padding: 8px; // 🔥 减小padding,给内容更多空间
|
|
|
+ max-height: 240px; // 🔥 增加高度
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.space-item {
|
|
|
@@ -202,6 +359,22 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 8px;
|
|
|
+ min-height: 40px;
|
|
|
+ width: 100%; // 🔥 确保占满grid单元格宽度
|
|
|
+ box-sizing: border-box; // 🔥 包含padding和border在内
|
|
|
+ position: relative; // 🔥 为绝对定位做准备
|
|
|
+
|
|
|
+ // 🔥 移动端:确保有足够宽度和空间
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 10px 12px;
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px 12px; // 🔥 适中的padding
|
|
|
+ min-height: 40px; // 🔥 标准高度
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
|
|
|
&:hover {
|
|
|
border-color: #d1d5db;
|
|
|
@@ -216,16 +389,48 @@
|
|
|
input[type="checkbox"] {
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
- flex-shrink: 0;
|
|
|
+ flex-shrink: 0; // 🔥 防止checkbox被压缩
|
|
|
+ margin: 0; // 🔥 使用gap控制间距,不需要margin
|
|
|
+
|
|
|
+ // 🔥 移动端:稍微增大checkbox
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
span {
|
|
|
flex: 1;
|
|
|
font-size: 13px;
|
|
|
color: #374151;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
+ line-height: 1.4;
|
|
|
+
|
|
|
+ // 🔥 桌面端:文字省略
|
|
|
+ @media (min-width: 769px) {
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ min-width: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 🔥 移动端:完整显示文字,绝对不竖向排列
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 13px;
|
|
|
+ white-space: nowrap !important; // 🔥 强制不换行
|
|
|
+ word-break: keep-all !important; // 🔥 保持单词完整
|
|
|
+ overflow: visible;
|
|
|
+ flex-shrink: 0; // 🔥 不允许收缩
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 12px; // 🔥 减小字体以适应更多内容
|
|
|
+ font-weight: 500;
|
|
|
+ white-space: nowrap !important; // 🔥 强制不换行
|
|
|
+ word-break: keep-all !important; // 🔥 保持单词完整
|
|
|
+ overflow: visible;
|
|
|
+ flex-shrink: 0; // 🔥 不允许收缩
|
|
|
+ letter-spacing: -0.3px; // 🔥 紧凑显示
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -242,6 +447,17 @@
|
|
|
font-size: 13px;
|
|
|
color: #4f46e5;
|
|
|
font-weight: 500;
|
|
|
+
|
|
|
+ // 🔥 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 12px;
|
|
|
+ margin-top: 6px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 13px;
|
|
|
+ margin-top: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 时间选择
|
|
|
@@ -249,6 +465,11 @@
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
gap: 8px;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:调整间距
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ gap: 6px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.time-option {
|
|
|
@@ -261,6 +482,15 @@
|
|
|
align-items: center;
|
|
|
gap: 8px;
|
|
|
|
|
|
+ // 🔥 移动端适配:减小padding
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 10px 14px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px 12px;
|
|
|
+ }
|
|
|
+
|
|
|
&:hover {
|
|
|
border-color: #d1d5db;
|
|
|
background: #f9fafb;
|
|
|
@@ -279,15 +509,29 @@
|
|
|
span {
|
|
|
font-size: 13px;
|
|
|
color: #374151;
|
|
|
+
|
|
|
+ // 🔥 移动端适配:调整字体
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.custom-days-input {
|
|
|
+.custom-time-input {
|
|
|
margin-top: 12px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
gap: 8px;
|
|
|
|
|
|
+ // 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ margin-top: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
input {
|
|
|
flex: 1;
|
|
|
padding: 10px 12px;
|
|
|
@@ -295,6 +539,17 @@
|
|
|
border-radius: 8px;
|
|
|
font-size: 14px;
|
|
|
|
|
|
+ // 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 9px 11px;
|
|
|
+ font-size: 13px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px 12px;
|
|
|
+ font-size: 14px; // 企业微信端保持易读
|
|
|
+ }
|
|
|
+
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
border-color: #4f46e5;
|
|
|
@@ -305,6 +560,12 @@
|
|
|
.unit {
|
|
|
font-size: 14px;
|
|
|
color: #6b7280;
|
|
|
+ white-space: nowrap; // 防止"天"字换行
|
|
|
+
|
|
|
+ // 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 13px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -318,6 +579,20 @@ textarea {
|
|
|
line-height: 1.6;
|
|
|
resize: vertical;
|
|
|
font-family: inherit;
|
|
|
+ min-height: 100px; // 🔥 设置最小高度
|
|
|
+
|
|
|
+ // 🔥 移动端适配
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 10px;
|
|
|
+ font-size: 13px;
|
|
|
+ min-height: 90px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px;
|
|
|
+ font-size: 14px; // 企业微信端保持易读
|
|
|
+ min-height: 80px; // 减小最小高度
|
|
|
+ }
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
@@ -348,6 +623,19 @@ textarea {
|
|
|
gap: 12px;
|
|
|
margin-top: 16px;
|
|
|
|
|
|
+ // 🔥 移动端适配:减小padding和间距
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 10px 12px;
|
|
|
+ gap: 10px;
|
|
|
+ margin-top: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px 12px;
|
|
|
+ gap: 8px;
|
|
|
+ margin-top: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
&.minor {
|
|
|
background: #f0fdf4;
|
|
|
border-color: #bbf7d0;
|
|
|
@@ -361,6 +649,12 @@ textarea {
|
|
|
flex-shrink: 0;
|
|
|
color: #2563eb;
|
|
|
margin-top: 2px;
|
|
|
+
|
|
|
+ // 🔥 移动端:稍微减小图标大小
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.info-text {
|
|
|
@@ -372,6 +666,16 @@ textarea {
|
|
|
color: #374151;
|
|
|
line-height: 1.6;
|
|
|
|
|
|
+ // 🔥 移动端适配:调整字体大小
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 1.5;
|
|
|
+ }
|
|
|
+
|
|
|
& + p {
|
|
|
margin-top: 4px;
|
|
|
}
|
|
|
@@ -386,6 +690,16 @@ textarea {
|
|
|
gap: 12px;
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
+ // 🔥 移动端适配:减小padding
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 14px 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 12px 16px;
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
button {
|
|
|
padding: 10px 20px;
|
|
|
border: none;
|
|
|
@@ -398,6 +712,22 @@ textarea {
|
|
|
align-items: center;
|
|
|
gap: 6px;
|
|
|
|
|
|
+ // 🔥 移动端适配:调整按钮大小
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 10px 18px;
|
|
|
+ font-size: 13px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px 16px;
|
|
|
+ font-size: 13px;
|
|
|
+
|
|
|
+ svg {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
&:disabled {
|
|
|
opacity: 0.5;
|
|
|
cursor: not-allowed;
|