|
@@ -13,6 +13,7 @@ $animation-duration-normal: 0.3s;
|
|
|
$animation-duration-slow: 0.5s;
|
|
|
$animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
|
|
|
+// 弹窗背景遮罩 - 优化全屏居中布局
|
|
|
.modal-backdrop {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
@@ -21,7 +22,7 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
height: 100vh;
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
backdrop-filter: blur(4px);
|
|
|
- z-index: 10000; // 统一z-index层级管理
|
|
|
+ z-index: 10000; // 统一z-index层级管理,确保在所有内容之上
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
@@ -30,14 +31,21 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
// 强制所有设备都使用相同的居中布局
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
padding: 1rem;
|
|
|
+ align-items: center; // 确保移动端也居中显示
|
|
|
}
|
|
|
|
|
|
@media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
|
|
|
padding: 1rem;
|
|
|
+ align-items: center; // 确保平板端也居中显示
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (min-width: $tablet-breakpoint) {
|
|
|
+ padding: 2rem;
|
|
|
+ align-items: center; // 确保桌面端也居中显示
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 弹窗主容器
|
|
|
+// 弹窗主容器 - 优化布局稳定性
|
|
|
.modal-container {
|
|
|
background: white;
|
|
|
border-radius: 16px;
|
|
@@ -52,21 +60,24 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
flex-direction: column;
|
|
|
margin: 0; // 移除所有边距,完全依赖flex居中
|
|
|
|
|
|
- // 响应式调整 - 统一居中显示
|
|
|
+ // 响应式调整 - 统一居中显示,避免布局冲突
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
max-width: calc(100% - 2rem); // 保持左右边距
|
|
|
border-radius: 16px;
|
|
|
max-height: 75vh;
|
|
|
+ margin: 0; // 确保无边距
|
|
|
}
|
|
|
|
|
|
@media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
|
|
|
max-width: 90%;
|
|
|
max-height: 78vh;
|
|
|
+ margin: 0; // 确保无边距
|
|
|
}
|
|
|
|
|
|
@media (min-width: $tablet-breakpoint) {
|
|
|
max-width: 600px;
|
|
|
max-height: 80vh;
|
|
|
+ margin: 0; // 确保无边距
|
|
|
}
|
|
|
|
|
|
// 深色模式适配
|
|
@@ -483,6 +494,7 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
padding: 24px;
|
|
|
background: #f9f9f9;
|
|
|
border-radius: 12px;
|
|
|
+ position: relative; // 确保相对定位
|
|
|
|
|
|
.loading-spinner {
|
|
|
width: 32px;
|
|
@@ -512,6 +524,8 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
|
|
|
// 分析结果
|
|
|
.analysis-result {
|
|
|
+ position: relative; // 确保相对定位
|
|
|
+
|
|
|
.result-header {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -529,7 +543,7 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .result-badge {
|
|
|
+ .result-count {
|
|
|
background: #34c759;
|
|
|
color: white;
|
|
|
font-size: 11px;
|
|
@@ -561,6 +575,7 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
border: 1px solid #e5e5ea;
|
|
|
border-radius: 12px;
|
|
|
transition: all 0.2s ease;
|
|
|
+ position: relative; // 确保相对定位
|
|
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
padding: 10px;
|
|
@@ -638,6 +653,7 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
cursor: pointer;
|
|
|
transition: all 0.2s ease;
|
|
|
min-width: 140px;
|
|
|
+ position: relative; // 确保相对定位
|
|
|
|
|
|
@media (max-width: $mobile-breakpoint) {
|
|
|
padding: 10px 16px;
|
|
@@ -665,218 +681,6 @@ $animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // 颜色描述区域
|
|
|
- .color-description {
|
|
|
- margin-top: 24px;
|
|
|
- padding: 24px;
|
|
|
- background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
|
|
|
- border: 1px solid #e5e5ea;
|
|
|
- border-radius: 16px;
|
|
|
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
|
-
|
|
|
- .description-header {
|
|
|
- margin-bottom: 16px;
|
|
|
-
|
|
|
- h6 {
|
|
|
- margin: 0 0 4px 0;
|
|
|
- font-size: 18px;
|
|
|
- font-weight: 700;
|
|
|
- color: #1d1d1f;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 8px;
|
|
|
-
|
|
|
- &::before {
|
|
|
- content: '🎨';
|
|
|
- font-size: 20px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- p {
|
|
|
- margin: 0;
|
|
|
- font-size: 14px;
|
|
|
- color: #8e8e93;
|
|
|
- font-weight: 400;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .description-content {
|
|
|
- background: #ffffff;
|
|
|
- border: 2px solid #f0f0f0;
|
|
|
- border-radius: 12px;
|
|
|
- padding: 20px;
|
|
|
- margin-bottom: 16px;
|
|
|
- font-size: 15px;
|
|
|
- line-height: 1.7;
|
|
|
- color: #333333;
|
|
|
- white-space: pre-line;
|
|
|
- word-break: break-word;
|
|
|
- max-height: 180px;
|
|
|
- overflow-y: auto;
|
|
|
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
|
- transition: all 0.2s ease;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- border-color: #007aff;
|
|
|
- box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
|
|
|
- }
|
|
|
-
|
|
|
- &::-webkit-scrollbar {
|
|
|
- width: 4px;
|
|
|
- }
|
|
|
-
|
|
|
- &::-webkit-scrollbar-track {
|
|
|
- background: transparent;
|
|
|
- }
|
|
|
-
|
|
|
- &::-webkit-scrollbar-thumb {
|
|
|
- background: rgba(0, 122, 255, 0.3);
|
|
|
- border-radius: 2px;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: rgba(0, 122, 255, 0.5);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &.empty {
|
|
|
- color: #8e8e93;
|
|
|
- font-style: italic;
|
|
|
- text-align: center;
|
|
|
- padding: 32px 20px;
|
|
|
- background: #fafafa;
|
|
|
- border-style: dashed;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .description-actions {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- gap: 16px;
|
|
|
-
|
|
|
- @media (max-width: $mobile-breakpoint) {
|
|
|
- flex-direction: column;
|
|
|
- align-items: stretch;
|
|
|
- }
|
|
|
-
|
|
|
- .copy-btn {
|
|
|
- display: inline-flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- gap: 8px;
|
|
|
- padding: 12px 20px;
|
|
|
- background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
|
|
|
- color: #ffffff;
|
|
|
- border: none;
|
|
|
- border-radius: 10px;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
- min-width: 100px;
|
|
|
- box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
|
|
|
-
|
|
|
- &:hover {
|
|
|
- transform: translateY(-2px);
|
|
|
- box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
|
|
|
- background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
|
|
|
- }
|
|
|
-
|
|
|
- &:active {
|
|
|
- transform: translateY(0);
|
|
|
- box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
|
|
|
- }
|
|
|
-
|
|
|
- &.copied {
|
|
|
- background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
|
|
|
- box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
|
|
|
- box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- svg {
|
|
|
- width: 14px;
|
|
|
- height: 14px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .description-tip {
|
|
|
- font-size: 12px;
|
|
|
- color: #8e8e93;
|
|
|
- flex: 1;
|
|
|
-
|
|
|
- @media (max-width: $mobile-breakpoint) {
|
|
|
- text-align: center;
|
|
|
- margin-top: 8px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // 分析错误
|
|
|
- .analysis-error {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 12px;
|
|
|
- padding: 16px;
|
|
|
- background: #fff2f2;
|
|
|
- border: 1px solid #fecaca;
|
|
|
- border-radius: 8px;
|
|
|
-
|
|
|
- .error-icon {
|
|
|
- width: 32px;
|
|
|
- height: 32px;
|
|
|
- background: #ef4444;
|
|
|
- border-radius: 50%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- flex-shrink: 0;
|
|
|
-
|
|
|
- svg {
|
|
|
- color: white;
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .error-text {
|
|
|
- flex: 1;
|
|
|
-
|
|
|
- h5 {
|
|
|
- margin: 0 0 4px 0;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- color: #dc2626;
|
|
|
- }
|
|
|
-
|
|
|
- p {
|
|
|
- margin: 0;
|
|
|
- font-size: 12px;
|
|
|
- color: #991b1b;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .retry-btn {
|
|
|
- padding: 6px 12px;
|
|
|
- background: #ef4444;
|
|
|
- color: white;
|
|
|
- border: none;
|
|
|
- border-radius: 4px;
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 500;
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.2s ease;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- background: #dc2626;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|