12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247 |
- // 上传成功弹窗样式
- // @import '../../../styles/_variables';
- // 弹窗背景遮罩
- // 响应式断点
- $mobile-breakpoint: 768px;
- $tablet-breakpoint: 1024px;
- $desktop-breakpoint: 1200px;
- // 动画变量
- $animation-duration-fast: 0.2s;
- $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;
- left: 0;
- width: 100vw;
- height: 100vh;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(4px);
- z-index: 9999;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 1rem;
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- padding: 0.5rem;
- align-items: flex-end;
- }
-
- @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
- padding: 1rem;
- }
- }
- // 弹窗主容器
- .modal-container {
- background: white;
- border-radius: 16px;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
- max-width: 600px;
- width: 100%;
- max-height: 80vh; // 减少最大高度,为滚动留出更多空间
- overflow: hidden;
- position: relative;
- transform-origin: center;
- display: flex;
- flex-direction: column;
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- max-width: 100%;
- border-radius: 16px 16px 0 0;
- max-height: 75vh; // 移动端进一步减少高度
- margin-top: auto;
- }
-
- @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
- max-width: 90%;
- max-height: 78vh; // 平板端适中的高度
- }
-
- @media (min-width: $tablet-breakpoint) {
- max-width: 600px;
- max-height: 80vh; // 桌面端保持80vh
- }
-
- // 深色模式适配
- @media (prefers-color-scheme: dark) {
- background: #1a1a1a;
- color: #ffffff;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
- }
- }
- // 弹窗头部
- .modal-header {
- padding: 32px 32px 24px 32px; // 增加左右内边距,确保对称
- border-bottom: 1px solid #f0f0f0;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- padding: 24px 20px 20px 20px;
- }
-
- @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
- padding: 28px 28px 22px 28px;
- }
-
- .header-content {
- display: flex;
- align-items: flex-start;
- gap: 16px;
- flex: 1;
- min-width: 0; // 防止内容溢出
-
- .success-icon {
- width: 48px;
- height: 48px;
- background: linear-gradient(135deg, #34C759, #30D158);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
-
- svg {
- color: white;
- width: 24px;
- height: 24px;
- }
- }
-
- .header-text {
- flex: 1;
- min-width: 0; // 防止文本溢出
-
- h2 {
- margin: 0 0 8px 0;
- font-size: 20px;
- font-weight: 600;
- color: #1d1d1f;
- line-height: 1.2;
-
- // 响应式字体大小
- @media (max-width: $mobile-breakpoint) {
- font-size: 18px;
- }
- }
-
- p {
- margin: 0;
- font-size: 14px;
- color: #86868b;
- line-height: 1.4;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 13px;
- }
- }
- }
- }
-
- .close-button {
- width: 36px;
- height: 36px;
- border: none;
- background: #f2f2f7;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: all 0.2s ease;
- flex-shrink: 0;
- margin-left: 16px; // 确保与内容区域有适当间距
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- width: 32px;
- height: 32px;
- margin-left: 12px;
- }
-
- &:hover {
- background: #e5e5ea;
- transform: scale(1.05);
- }
-
- &:active {
- transform: scale(0.95);
- }
-
- svg {
- color: #86868b;
- width: 18px;
- height: 18px;
-
- @media (max-width: $mobile-breakpoint) {
- width: 16px;
- height: 16px;
- }
- }
- }
- }
- // 弹窗内容
- .modal-content {
- padding: 0 32px 32px 32px; // 与头部保持一致的左右内边距
- overflow-y: auto;
- flex: 1;
- min-height: 0; // 确保flex子元素可以收缩
-
- // 自定义滚动条样式
- &::-webkit-scrollbar {
- width: 6px;
- }
-
- &::-webkit-scrollbar-track {
- background: transparent;
- }
-
- &::-webkit-scrollbar-thumb {
- background: rgba(0, 0, 0, 0.2);
- border-radius: 3px;
-
- &:hover {
- background: rgba(0, 0, 0, 0.3);
- }
- }
-
- // 深色模式滚动条
- @media (prefers-color-scheme: dark) {
- &::-webkit-scrollbar-thumb {
- background: rgba(255, 255, 255, 0.3);
-
- &:hover {
- background: rgba(255, 255, 255, 0.4);
- }
- }
- }
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- padding: 0 20px 24px 20px;
- }
-
- @media (min-width: $mobile-breakpoint) and (max-width: $tablet-breakpoint) {
- padding: 0 28px 28px 28px;
- }
- }
- // 上传文件列表
- .uploaded-files {
- margin-bottom: 32px;
-
- h3 {
- margin: 0 0 20px 0;
- font-size: 18px;
- font-weight: 600;
- color: #1d1d1f;
-
- // 响应式字体大小
- @media (max-width: $mobile-breakpoint) {
- font-size: 16px;
- margin-bottom: 16px;
- }
- }
-
- .file-list {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
-
- .file-item {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 16px;
- background: #f9f9f9;
- border-radius: 12px;
- border: 1px solid #e5e5ea;
- transition: all 0.2s ease;
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- padding: 12px;
- gap: 12px;
- }
-
- &:hover {
- background: #f5f5f7;
- border-color: #d1d1d6;
- }
-
- .file-icon {
- width: 48px;
- height: 48px;
- background: #007aff;
- border-radius: 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
-
- // 响应式调整
- @media (max-width: $mobile-breakpoint) {
- width: 40px;
- height: 40px;
- border-radius: 8px;
- }
-
- svg {
- color: white;
- width: 24px;
- height: 24px;
-
- @media (max-width: $mobile-breakpoint) {
- width: 20px;
- height: 20px;
- }
- }
- }
-
- .file-preview {
- width: 48px;
- height: 48px;
- border-radius: 10px;
- overflow: hidden;
- flex-shrink: 0;
-
- @media (max-width: $mobile-breakpoint) {
- width: 40px;
- height: 40px;
- border-radius: 8px;
- }
-
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- }
-
- .file-info {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- gap: 4px;
-
- .file-name {
- font-size: 15px;
- font-weight: 500;
- color: #1d1d1f;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- line-height: 1.3;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 14px;
- }
- }
-
- .file-size {
- font-size: 13px;
- color: #86868b;
- line-height: 1.2;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 12px;
- }
- }
- }
-
- .file-status {
- width: 24px;
- height: 24px;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
-
- &.success {
- svg {
- width: 20px;
- height: 20px;
-
- @media (max-width: $mobile-breakpoint) {
- width: 18px;
- height: 18px;
- }
- }
- }
- }
- }
- }
- // 颜色分析区域
- .color-analysis-section {
- border-top: 1px solid #f0f0f0;
- padding-top: 24px;
-
- .section-header {
- margin-bottom: 24px;
- text-align: center;
-
- h4 {
- margin: 0 0 8px 0;
- font-size: 18px;
- font-weight: 600;
- color: #1d1d1f;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 16px;
- }
- }
-
- p {
- margin: 0;
- font-size: 14px;
- color: #86868b;
- line-height: 1.5;
- max-width: 400px;
- margin: 0 auto;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 13px;
- }
- }
- }
-
- // 分析按钮
- .analysis-action {
- text-align: center;
- padding: 20px 0 32px 0;
-
- .analyze-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 10px;
- padding: 14px 28px;
- background: linear-gradient(135deg, #007aff, #0056cc);
- color: white;
- border: none;
- border-radius: 12px;
- font-size: 15px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s ease;
- min-width: 160px;
-
- @media (max-width: $mobile-breakpoint) {
- padding: 12px 24px;
- font-size: 14px;
- min-width: 140px;
- }
-
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: 0 12px 24px rgba(0, 122, 255, 0.25);
- background: linear-gradient(135deg, #0056cc, #003d99);
- }
-
- &:active {
- transform: translateY(0);
- }
-
- &:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- }
-
- svg {
- width: 20px;
- height: 20px;
-
- @media (max-width: $mobile-breakpoint) {
- width: 18px;
- height: 18px;
- }
- }
- }
- }
-
- // 分析加载状态
- .analysis-loading {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 24px;
- background: #f9f9f9;
- border-radius: 12px;
-
- .loading-spinner {
- width: 32px;
- height: 32px;
- border: 3px solid #e5e5ea;
- border-top: 3px solid #007aff;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- flex-shrink: 0;
- }
-
- .loading-text {
- h5 {
- margin: 0 0 4px 0;
- font-size: 14px;
- font-weight: 600;
- color: #1d1d1f;
- }
-
- p {
- margin: 0;
- font-size: 12px;
- color: #86868b;
- }
- }
- }
-
- // 分析结果
- .analysis-result {
- .result-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
-
- h5 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #1d1d1f;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 15px;
- }
- }
-
- .result-badge {
- background: #34c759;
- color: white;
- font-size: 11px;
- font-weight: 600;
- padding: 4px 10px;
- border-radius: 12px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- }
-
- .color-palette {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
- gap: 16px;
- margin-bottom: 24px;
-
- @media (max-width: $mobile-breakpoint) {
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
- gap: 12px;
- }
-
- .color-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px;
- background: white;
- border: 1px solid #e5e5ea;
- border-radius: 12px;
- transition: all 0.2s ease;
-
- @media (max-width: $mobile-breakpoint) {
- padding: 10px;
- gap: 10px;
- }
-
- &:hover {
- border-color: #007aff;
- box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
- }
-
- .color-swatch {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- border: 2px solid rgba(255, 255, 255, 0.8);
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- flex-shrink: 0;
-
- @media (max-width: $mobile-breakpoint) {
- width: 28px;
- height: 28px;
- border-radius: 6px;
- }
- }
-
- .color-info {
- flex: 1;
- min-width: 0;
-
- .color-value {
- font-size: 12px;
- font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
- color: #1d1d1f;
- margin-bottom: 4px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-weight: 500;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 11px;
- }
- }
-
- .color-percentage {
- font-size: 11px;
- color: #86868b;
- font-weight: 600;
-
- @media (max-width: $mobile-breakpoint) {
- font-size: 10px;
- }
- }
- }
- }
- }
-
- .result-actions {
- text-align: center;
- padding-top: 8px;
-
- .view-report-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 12px 20px;
- background: #f2f2f7;
- color: #007aff;
- border: none;
- border-radius: 10px;
- font-size: 14px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.2s ease;
- min-width: 140px;
-
- @media (max-width: $mobile-breakpoint) {
- padding: 10px 16px;
- font-size: 13px;
- min-width: 120px;
- }
-
- &:hover {
- background: #e5e5ea;
- transform: translateY(-1px);
- }
-
- &:active {
- transform: translateY(0);
- }
-
- svg {
- width: 18px;
- height: 18px;
-
- @media (max-width: $mobile-breakpoint) {
- width: 16px;
- height: 16px;
- }
- }
- }
- }
-
- // 颜色描述区域
- .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;
- }
- }
- }
- }
- // 弹窗底部操作区域
- .modal-footer {
- padding: 24px 32px 32px;
- border-top: 1px solid #e5e5ea;
- background: #fafafa;
- border-radius: 0 0 20px 20px;
-
- @media (max-width: $tablet-breakpoint) {
- padding: 20px 24px 24px;
- }
-
- @media (max-width: $mobile-breakpoint) {
- padding: 16px 20px 20px;
- }
-
- .footer-actions {
- display: flex;
- gap: 16px;
- justify-content: flex-end;
- align-items: center;
-
- @media (max-width: $mobile-breakpoint) {
- flex-direction: column-reverse;
- gap: 12px;
- }
-
- .secondary-btn,
- .primary-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 12px 24px;
- border-radius: 10px;
- font-size: 14px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.2s ease;
- border: none;
- min-width: 120px;
-
- @media (max-width: $mobile-breakpoint) {
- width: 100%;
- padding: 14px 24px;
- }
-
- svg {
- width: 18px;
- height: 18px;
- }
- }
-
- .secondary-btn {
- background: #f2f2f7;
- color: #1d1d1f;
-
- &:hover {
- background: #e5e5ea;
- transform: translateY(-1px);
- }
-
- &:active {
- transform: translateY(0);
- }
- }
-
- .primary-btn {
- background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
- color: white;
- box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
-
- &:hover {
- background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
- box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
- transform: translateY(-1px);
- }
-
- &:active {
- transform: translateY(0);
- box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
- }
-
- &:disabled {
- background: #c7c7cc;
- color: #8e8e93;
- cursor: not-allowed;
- box-shadow: none;
- transform: none;
- }
-
- .btn-spinner {
- width: 14px;
- height: 14px;
- border: 2px solid rgba(255, 255, 255, 0.3);
- border-top: 2px solid white;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
- }
- }
- }
- // 动画
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- // 响应式设计
- @media (max-width: 768px) {
- .modal-backdrop {
- padding: 10px;
- }
-
- .modal-header {
- padding: 20px 16px 12px;
-
- .header-content {
- gap: 12px;
-
- .success-icon {
- width: 40px;
- height: 40px;
-
- svg {
- width: 20px;
- height: 20px;
- }
- }
-
- .header-text {
- h3 {
- font-size: 18px;
- }
-
- p {
- font-size: 13px;
- }
- }
- }
- }
-
- .modal-body {
- padding: 0 16px;
- }
-
- .modal-footer {
- padding: 12px 16px 20px;
-
- .footer-actions {
- flex-direction: column-reverse;
-
- .secondary-btn,
- .primary-btn {
- width: 100%;
- justify-content: center;
- }
- }
- }
-
- .color-analysis-section {
- .color-palette {
- grid-template-columns: 1fr;
- }
- }
- }
- // 深色模式支持
- @media (prefers-color-scheme: dark) {
- .modal-container {
- background: #1c1c1e;
-
- .modal-header {
- border-bottom-color: #38383a;
-
- .header-text {
- h3 {
- color: #f2f2f7;
- }
-
- p {
- color: #8e8e93;
- }
- }
-
- .close-btn {
- background: #2c2c2e;
-
- &:hover {
- background: #3a3a3c;
- }
-
- svg {
- color: #8e8e93;
- }
- }
- }
-
- .uploaded-files-section {
- h4 {
- color: #f2f2f7;
- }
-
- .file-item {
- background: #2c2c2e;
- border-color: #48484a;
-
- .file-info {
- .file-name {
- color: #f2f2f7;
- }
-
- .file-size {
- color: #8e8e93;
- }
- }
- }
- }
-
- .color-analysis-section {
- .section-header {
- h4 {
- color: #f2f2f7;
- }
-
- p {
- color: #8e8e93;
- }
- }
-
- .analysis-loading {
- background: #2c2c2e;
-
- .loading-text {
- h5 {
- color: #f2f2f7;
- }
-
- p {
- color: #8e8e93;
- }
- }
- }
-
- .analysis-result {
- .result-header {
- h5 {
- color: #f2f2f7;
- }
-
- .result-count {
- background: #2c2c2e;
- color: #8e8e93;
- }
- }
-
- .color-palette {
- .color-item {
- background: #2c2c2e;
- border-color: #48484a;
-
- .color-info {
- .color-value {
- color: #f2f2f7;
- }
-
- .color-percentage {
- color: #8e8e93;
- }
- }
- }
- }
-
- .result-actions {
- .view-report-btn {
- background: #2c2c2e;
-
- &:hover {
- background: #3a3a3c;
- }
- }
- }
-
- .color-description {
- background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
- border-color: #48484a;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
-
- .description-header {
- h6 {
- color: #f2f2f7;
- }
-
- p {
- color: #8e8e93;
- }
- }
-
- .description-content {
- background: #1c1c1e;
- border-color: #48484a;
- color: #f2f2f7;
-
- &:hover {
- border-color: #0a84ff;
- box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
- }
-
- &::-webkit-scrollbar-thumb {
- background: rgba(10, 132, 255, 0.4);
-
- &:hover {
- background: rgba(10, 132, 255, 0.6);
- }
- }
-
- &.empty {
- background: #2c2c2e;
- color: #8e8e93;
- border-color: #48484a;
- }
- }
-
- .description-actions {
- .copy-btn {
- background: linear-gradient(135deg, #0a84ff 0%, #0056cc 100%);
- box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
-
- &:hover {
- background: linear-gradient(135deg, #0056cc 0%, #003d99 100%);
- box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
- }
-
- &.copied {
- background: linear-gradient(135deg, #30d158 0%, #28a745 100%);
- box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
-
- &:hover {
- background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
- box-shadow: 0 6px 20px rgba(48, 209, 88, 0.4);
- }
- }
- }
- }
- }
- }
- }
-
- .modal-footer {
- border-top-color: #38383a;
-
- .footer-actions {
- .secondary-btn {
- background: #2c2c2e;
- color: #f2f2f7;
-
- &:hover {
- background: #3a3a3c;
- }
- }
- }
- }
- }
- }
|