|
|
@@ -1383,13 +1383,13 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- padding: 20px 24px;
|
|
|
+ padding: 16px 20px; // 🔥 缩小padding让header更紧凑
|
|
|
border-bottom: 1px solid #e5e7eb;
|
|
|
flex-shrink: 0; // 🔥 防止header被压缩
|
|
|
|
|
|
h3 {
|
|
|
margin: 0;
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 18px; // 🔥 略微缩小标题字体
|
|
|
font-weight: 600;
|
|
|
color: #111827;
|
|
|
}
|
|
|
@@ -1426,7 +1426,7 @@
|
|
|
.modal-body {
|
|
|
flex: 1 1 auto !important; // 🔥 允许增长和缩小
|
|
|
overflow-y: auto !important; // 🔥 确保生效
|
|
|
- padding: 24px !important; // 🔥 恢复底部padding,确保内容可以完全滚动显示
|
|
|
+ padding: 20px !important; // 🔥 缩小padding,让内容更紧凑
|
|
|
min-height: 0; // 🔥 允许flex容器正确缩小
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
@@ -1452,13 +1452,14 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: flex-end;
|
|
|
- gap: 12px;
|
|
|
- padding: 16px 24px;
|
|
|
+ gap: 10px; // 🔥 缩小按钮间距
|
|
|
+ padding: 14px 20px; // 🔥 缩小padding让footer更紧凑
|
|
|
border-top: 1px solid #e5e7eb;
|
|
|
flex-shrink: 0 !important; // 🔥 关键!防止footer被压缩
|
|
|
background: white !important; // 🔥 确保背景不透明
|
|
|
- z-index: 10; // 🔥 确保在最上层
|
|
|
- position: relative; // 🔥 为z-index生效
|
|
|
+ z-index: 10 !important; // 🔥 确保在最上层
|
|
|
+ position: relative !important; // 🔥 为z-index生效
|
|
|
+ min-height: 56px; // 🔥 确保最小高度
|
|
|
|
|
|
button {
|
|
|
padding: 10px 20px;
|
|
|
@@ -1502,12 +1503,12 @@
|
|
|
// ============ 表单样式 ============
|
|
|
|
|
|
.form-group {
|
|
|
- margin-bottom: 20px;
|
|
|
+ margin-bottom: 14px; // 🔥 缩小间距,让表单更紧凑
|
|
|
|
|
|
.form-label {
|
|
|
display: block;
|
|
|
- margin-bottom: 8px;
|
|
|
- font-size: 14px;
|
|
|
+ margin-bottom: 6px; // 🔥 缩小间距
|
|
|
+ font-size: 13px; // 🔥 略微缩小字体
|
|
|
font-weight: 500;
|
|
|
color: #374151;
|
|
|
}
|
|
|
@@ -1515,7 +1516,7 @@
|
|
|
.form-input,
|
|
|
.form-select {
|
|
|
width: 100% !important; // 🔥 确保生效
|
|
|
- padding: 10px 14px !important; // 🔥 确保生效
|
|
|
+ padding: 8px 12px !important; // 🔥 缩小padding
|
|
|
border: 1.5px solid #e5e7eb !important; // 🔥 确保生效
|
|
|
border-radius: 8px !important; // 🔥 确保生效
|
|
|
font-size: 14px;
|
|
|
@@ -1541,8 +1542,8 @@
|
|
|
.input-with-hint {
|
|
|
.input-hint {
|
|
|
display: block;
|
|
|
- margin-top: 6px;
|
|
|
- font-size: 12px;
|
|
|
+ margin-top: 4px; // 🔥 缩小间距
|
|
|
+ font-size: 11px; // 🔥 略微缩小字体
|
|
|
color: #6b7280;
|
|
|
}
|
|
|
}
|
|
|
@@ -1550,9 +1551,9 @@
|
|
|
.checkbox-label {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- gap: 10px;
|
|
|
+ gap: 8px; // 🔥 缩小间距
|
|
|
cursor: pointer;
|
|
|
- padding: 12px;
|
|
|
+ padding: 10px; // 🔥 缩小padding
|
|
|
border-radius: 8px;
|
|
|
transition: background 0.2s ease;
|
|
|
|
|
|
@@ -1561,14 +1562,14 @@
|
|
|
}
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
- width: 18px;
|
|
|
- height: 18px;
|
|
|
+ width: 16px; // 🔥 略微缩小
|
|
|
+ height: 16px; // 🔥 略微缩小
|
|
|
cursor: pointer;
|
|
|
accent-color: #667eea;
|
|
|
}
|
|
|
|
|
|
span {
|
|
|
- font-size: 14px;
|
|
|
+ font-size: 13px; // 🔥 略微缩小字体
|
|
|
color: #374151;
|
|
|
user-select: none;
|
|
|
}
|
|
|
@@ -1576,14 +1577,14 @@
|
|
|
|
|
|
.radio-group {
|
|
|
display: flex !important; // 🔥 确保生效
|
|
|
- gap: 12px;
|
|
|
+ gap: 10px; // 🔥 缩小间距
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
.radio-label {
|
|
|
display: flex !important; // 🔥 确保生效
|
|
|
align-items: center;
|
|
|
- gap: 8px;
|
|
|
- padding: 10px 16px !important; // 🔥 确保生效
|
|
|
+ gap: 6px; // 🔥 缩小间距
|
|
|
+ padding: 8px 12px !important; // 🔥 缩小padding
|
|
|
border: 1.5px solid #e5e7eb !important; // 🔥 确保生效
|
|
|
border-radius: 8px !important; // 🔥 确保生效
|
|
|
cursor: pointer;
|
|
|
@@ -1619,11 +1620,11 @@
|
|
|
|
|
|
.scene-grid {
|
|
|
display: grid !important; // 🔥 确保生效
|
|
|
- grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important; // 🔥 确保生效
|
|
|
- gap: 12px;
|
|
|
+ grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important; // 🔥 缩小最小宽度
|
|
|
+ gap: 10px; // 🔥 缩小间距
|
|
|
|
|
|
.scene-card {
|
|
|
- padding: 16px 12px !important; // 🔥 确保生效
|
|
|
+ padding: 12px 10px !important; // 🔥 缩小padding
|
|
|
border: 1.5px solid #e5e7eb !important; // 🔥 确保生效
|
|
|
border-radius: 10px !important; // 🔥 确保生效
|
|
|
background: white !important; // 🔥 确保生效
|
|
|
@@ -1714,21 +1715,21 @@
|
|
|
// ============ 加价规则配置 ============
|
|
|
|
|
|
.pricing-adjustments {
|
|
|
- margin-top: 24px;
|
|
|
- padding: 20px;
|
|
|
+ margin-top: 16px; // 🔥 缩小上边距
|
|
|
+ padding: 14px; // 🔥 缩小padding
|
|
|
background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
|
|
|
- border-radius: 12px;
|
|
|
+ border-radius: 10px; // 🔥 略微缩小圆角
|
|
|
border: 1px solid #e5e7eb;
|
|
|
|
|
|
.section-title {
|
|
|
- margin: 0 0 16px 0;
|
|
|
- font-size: 15px;
|
|
|
+ margin: 0 0 12px 0; // 🔥 缩小下边距
|
|
|
+ font-size: 14px; // 🔥 缩小字体
|
|
|
font-weight: 600;
|
|
|
color: #374151;
|
|
|
}
|
|
|
|
|
|
.form-group {
|
|
|
- margin-bottom: 16px;
|
|
|
+ margin-bottom: 12px; // 🔥 缩小间距
|
|
|
|
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
|
@@ -1739,18 +1740,18 @@
|
|
|
// ============ 价格预览 ============
|
|
|
|
|
|
.price-preview {
|
|
|
- margin-top: 24px;
|
|
|
- padding: 20px;
|
|
|
+ margin-top: 16px; // 🔥 缩小上边距
|
|
|
+ padding: 14px; // 🔥 缩小padding
|
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
|
- border-radius: 12px;
|
|
|
+ border-radius: 10px; // 🔥 略微缩小圆角
|
|
|
border: 2px solid #fbbf24;
|
|
|
|
|
|
.price-preview-row {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- padding: 8px 0;
|
|
|
- font-size: 14px;
|
|
|
+ padding: 6px 0; // 🔥 缩小padding
|
|
|
+ font-size: 13px; // 🔥 略微缩小字体
|
|
|
|
|
|
&.adjustment {
|
|
|
color: #f59e0b;
|
|
|
@@ -1762,14 +1763,14 @@
|
|
|
}
|
|
|
|
|
|
&.total {
|
|
|
- margin-top: 8px;
|
|
|
- padding-top: 12px;
|
|
|
+ margin-top: 6px; // 🔥 缩小间距
|
|
|
+ padding-top: 10px; // 🔥 缩小padding
|
|
|
border-top: 2px solid rgba(251, 191, 36, 0.3);
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 15px; // 🔥 略微缩小字体
|
|
|
font-weight: 600;
|
|
|
|
|
|
.price {
|
|
|
- font-size: 24px;
|
|
|
+ font-size: 20px; // 🔥 缩小价格字体
|
|
|
color: #d97706;
|
|
|
}
|
|
|
}
|
|
|
@@ -2684,37 +2685,57 @@
|
|
|
// ============ 移动端适配(模态框) ============
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
- .modal-container {
|
|
|
- max-width: none;
|
|
|
- width: 100%;
|
|
|
- max-height: 98vh; // 🔥 移动端增加到98vh,留出状态栏空间
|
|
|
- margin: 0;
|
|
|
- border-radius: 16px 16px 0 0;
|
|
|
+ .modal-overlay {
|
|
|
+ padding: 0 !important; // 🔥 移动端移除padding
|
|
|
+ }
|
|
|
+
|
|
|
+ .modal-container,
|
|
|
+ .add-product-modal {
|
|
|
+ max-width: none !important;
|
|
|
+ width: 100vw !important; // 🔥 全宽
|
|
|
+ max-height: 100vh !important; // 🔥 关键:设为100vh,完全填充屏幕
|
|
|
+ height: 100vh !important; // 🔥 固定高度为100vh
|
|
|
+ margin: 0 !important;
|
|
|
+ border-radius: 0 !important; // 🔥 移动端去掉圆角
|
|
|
+ display: flex !important;
|
|
|
+ flex-direction: column !important;
|
|
|
+ overflow: hidden !important;
|
|
|
}
|
|
|
|
|
|
.modal-header {
|
|
|
- padding: 16px 20px;
|
|
|
+ padding: 12px 16px !important; // 🔥 移动端缩小padding
|
|
|
+ flex-shrink: 0 !important; // 🔥 不允许压缩
|
|
|
|
|
|
h3 {
|
|
|
- font-size: 18px;
|
|
|
+ font-size: 16px !important; // 🔥 缩小字体
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.modal-body {
|
|
|
- padding: 20px !important; // 🔥 保持四周padding一致
|
|
|
+ flex: 1 1 auto !important; // 🔥 允许自动填充剩余空间
|
|
|
+ overflow-y: auto !important; // 🔥 必须可滚动
|
|
|
+ overflow-x: hidden !important;
|
|
|
+ padding: 14px 16px !important; // 🔥 移动端缩小padding
|
|
|
+ min-height: 0 !important; // 🔥 允许缩小
|
|
|
+ max-height: none !important; // 🔥 移除max-height限制,让flex自动计算
|
|
|
+ -webkit-overflow-scrolling: touch; // 🔥 iOS平滑滚动
|
|
|
}
|
|
|
|
|
|
.modal-footer {
|
|
|
- padding: 12px 20px;
|
|
|
- flex-shrink: 0 !important; // 🔥 确保不被压缩
|
|
|
+ padding: 12px 16px !important; // 🔥 移动端缩小padding
|
|
|
+ flex-shrink: 0 !important; // 🔥 关键:不允许压缩
|
|
|
background: white !important; // 🔥 确保背景可见
|
|
|
- z-index: 10; // 🔥 确保在最上层
|
|
|
- position: relative;
|
|
|
+ z-index: 999 !important; // 🔥 确保在最上层
|
|
|
+ position: sticky !important; // 🔥 粘性定位
|
|
|
+ bottom: 0 !important; // 🔥 固定在底部
|
|
|
+ box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important; // 🔥 添加阴影提示
|
|
|
|
|
|
button {
|
|
|
flex: 1;
|
|
|
- padding: 12px;
|
|
|
- min-height: 44px; // 🔥 移动端按钮最小高度,易于点击
|
|
|
+ padding: 12px 16px !important; // 🔥 增大触摸区域
|
|
|
+ font-size: 15px !important; // 🔥 增大字体便于阅读
|
|
|
+ min-height: 44px !important; // 🔥 iOS建议最小触摸区域
|
|
|
+ font-weight: 600 !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -2741,13 +2762,15 @@
|
|
|
|
|
|
.scene-grid {
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
- gap: 10px;
|
|
|
+ gap: 8px !important; // 🔥 移动端间距
|
|
|
|
|
|
.scene-card {
|
|
|
- padding: 12px 8px;
|
|
|
+ padding: 12px 8px !important; // 🔥 增大触摸区域
|
|
|
+ min-height: 44px !important; // 🔥 iOS建议最小触摸高度
|
|
|
|
|
|
.scene-name {
|
|
|
- font-size: 12px;
|
|
|
+ font-size: 13px !important; // 🔥 移动端易读字体
|
|
|
+ font-weight: 500 !important;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -2764,38 +2787,160 @@
|
|
|
grid-template-columns: 1fr;
|
|
|
}
|
|
|
|
|
|
+ .form-group {
|
|
|
+ margin-bottom: 12px !important; // 🔥 移动端适中间距,便于触摸
|
|
|
+
|
|
|
+ .form-label {
|
|
|
+ margin-bottom: 6px !important; // 🔥 标签间距
|
|
|
+ font-size: 14px !important; // 🔥 移动端字体
|
|
|
+ font-weight: 500 !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-input,
|
|
|
+ .form-select {
|
|
|
+ padding: 10px 12px !important; // 🔥 增大触摸区域
|
|
|
+ font-size: 15px !important; // 🔥 移动端易读字体
|
|
|
+ min-height: 44px !important; // 🔥 iOS建议最小触摸高度
|
|
|
+ }
|
|
|
+
|
|
|
+ input[type="number"] {
|
|
|
+ font-size: 16px !important; // 🔥 防止iOS自动缩放
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .pricing-adjustments {
|
|
|
+ margin-top: 12px !important; // 🔥 移动端适中上边距
|
|
|
+ padding: 12px !important; // 🔥 移动端padding
|
|
|
+ border-radius: 8px !important;
|
|
|
+
|
|
|
+ .section-title {
|
|
|
+ margin-bottom: 8px !important; // 🔥 标题间距
|
|
|
+ font-size: 14px !important; // 🔥 移动端字体
|
|
|
+ font-weight: 600 !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-group {
|
|
|
+ margin-bottom: 10px !important; // 🔥 表单项间距
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.price-preview {
|
|
|
- padding: 16px;
|
|
|
+ padding: 12px !important; // 🔥 移动端padding
|
|
|
+ margin-top: 12px !important; // 🔥 上边距
|
|
|
+ margin-bottom: 20px !important; // 🔥 底部留出足够空间
|
|
|
|
|
|
- .price-preview-row.total .price {
|
|
|
- font-size: 20px;
|
|
|
+ .price-preview-row {
|
|
|
+ padding: 6px 0 !important; // 🔥 移动端行间距
|
|
|
+ font-size: 14px !important; // 🔥 移动端易读字体
|
|
|
+
|
|
|
+ &.total {
|
|
|
+ margin-top: 8px !important;
|
|
|
+ padding-top: 12px !important; // 🔥 总价区分
|
|
|
+ font-size: 15px !important; // 🔥 总价字体
|
|
|
+ font-weight: 600 !important;
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-size: 20px !important; // 🔥 总价突出显示
|
|
|
+ font-weight: 700 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// ============ 超小屏幕优化 (手机竖屏) ============
|
|
|
@media (max-width: 480px) {
|
|
|
- // 🔥 超小屏幕下模态框优化
|
|
|
+ // 🔥 超小屏幕下继承移动端全屏布局
|
|
|
.modal-container,
|
|
|
.add-product-modal {
|
|
|
- max-height: 99vh !important; // 🔥 超小屏幕几乎全屏
|
|
|
- border-radius: 12px 12px 0 0;
|
|
|
+ // 继承移动端的100vh全屏设置
|
|
|
+ }
|
|
|
+
|
|
|
+ .modal-header {
|
|
|
+ padding: 10px 12px !important; // 🔥 超小屏幕进一步缩小
|
|
|
}
|
|
|
|
|
|
.modal-body {
|
|
|
- padding: 16px !important; // 🔥 减小padding节省空间
|
|
|
+ padding: 12px !important; // 🔥 超小屏幕缩小padding
|
|
|
+ // max-height由flex自动计算,无需手动设置
|
|
|
}
|
|
|
|
|
|
.modal-footer {
|
|
|
- padding: 10px 16px;
|
|
|
- flex-shrink: 0 !important;
|
|
|
- background: white !important;
|
|
|
- z-index: 10;
|
|
|
+ padding: 10px 12px !important; // 🔥 超小屏幕缩小padding
|
|
|
|
|
|
button {
|
|
|
- padding: 10px 16px;
|
|
|
- font-size: 13px;
|
|
|
- min-height: 42px; // 🔥 超小屏幕按钮高度
|
|
|
+ padding: 10px 12px !important; // 🔥 保持足够触摸区域
|
|
|
+ font-size: 14px !important;
|
|
|
+ min-height: 42px !important; // 🔥 保持iOS最小触摸高度
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // 🔥 超小屏幕下适当缩小间距(不要过度缩小)
|
|
|
+ .form-group {
|
|
|
+ margin-bottom: 10px !important;
|
|
|
+
|
|
|
+ .form-label {
|
|
|
+ margin-bottom: 5px !important;
|
|
|
+ font-size: 13px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-input,
|
|
|
+ .form-select {
|
|
|
+ padding: 9px 10px !important;
|
|
|
+ font-size: 14px !important;
|
|
|
+ min-height: 42px !important; // 🔥 保持最小触摸高度
|
|
|
+ }
|
|
|
+
|
|
|
+ input[type="number"] {
|
|
|
+ font-size: 16px !important; // 🔥 防止iOS自动缩放
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .pricing-adjustments {
|
|
|
+ margin-top: 10px !important;
|
|
|
+ padding: 10px !important;
|
|
|
+
|
|
|
+ .section-title {
|
|
|
+ margin-bottom: 6px !important;
|
|
|
+ font-size: 13px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .form-group {
|
|
|
+ margin-bottom: 8px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .price-preview {
|
|
|
+ padding: 10px !important;
|
|
|
+ margin-top: 10px !important;
|
|
|
+ margin-bottom: 16px !important;
|
|
|
+
|
|
|
+ .price-preview-row {
|
|
|
+ padding: 5px 0 !important;
|
|
|
+ font-size: 13px !important;
|
|
|
+
|
|
|
+ &.total {
|
|
|
+ margin-top: 6px !important;
|
|
|
+ padding-top: 10px !important;
|
|
|
+ font-size: 14px !important;
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-size: 18px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .scene-grid {
|
|
|
+ gap: 6px !important;
|
|
|
+
|
|
|
+ .scene-card {
|
|
|
+ padding: 10px 6px !important;
|
|
|
+ min-height: 42px !important; // 🔥 保持最小触摸高度
|
|
|
+
|
|
|
+ .scene-name {
|
|
|
+ font-size: 12px !important;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|