| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173 |
- // 拖拽上传弹窗样式
- .drag-upload-modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.6);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 10000;
- padding: 20px;
- backdrop-filter: blur(4px);
-
- // 移动端适配
- @media (max-width: 768px) {
- padding: 10px;
- align-items: flex-start;
- padding-top: 10px; // 🔥 减小顶部间距
- }
-
- // 🔥 企业微信端专用优化
- @media (max-width: 480px) {
- padding: 5px;
- padding-top: 10px;
- }
- }
- .drag-upload-modal-container {
- background: white;
- border-radius: 12px;
- width: 90%;
- max-width: 1100px;
- max-height: 85vh;
- display: flex;
- flex-direction: column;
- box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
- animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
- position: relative;
-
- // 移动端适配
- @media (max-width: 768px) {
- width: 95%;
- max-width: 100%;
- max-height: 90vh;
- border-radius: 8px;
- }
-
- // 🔥 企业微信端专用优化
- @media (max-width: 480px) {
- width: 98%;
- max-height: 92vh;
- border-radius: 6px;
- }
- }
- // 弹窗头部
- .modal-header {
- padding: 24px 32px;
- border-bottom: 1px solid #f0f0f0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- .header-info {
- h3 {
- margin: 0 0 8px 0;
- font-size: 20px;
- font-weight: 600;
- }
- .upload-target-info {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 13px;
- opacity: 0.9;
- .info-text {
- font-weight: 400;
- }
- }
- }
- .close-btn {
- background: none;
- border: none;
- color: white;
- cursor: pointer;
- padding: 8px;
- border-radius: 8px;
- transition: background-color 0.2s ease;
- &:hover {
- background: rgba(255, 255, 255, 0.1);
- }
- svg {
- display: block;
- }
- }
- }
- // 弹窗主体
- .modal-body {
- flex: 1;
- padding: 24px 32px;
- overflow-y: auto;
- max-height: calc(85vh - 200px);
- background: #f8f9fa;
-
- // 🔥 移动端适配
- @media (max-width: 768px) {
- padding: 16px;
- max-height: calc(90vh - 180px);
- }
-
- // 🔥 企业微信端专用优化
- @media (max-width: 480px) {
- padding: 12px 8px;
- max-height: calc(92vh - 160px);
- }
- }
- // 表格容器
- .files-table-container {
- background: white;
- border-radius: 12px;
- overflow: hidden;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- border: 2px solid #40e0d0;
- }
- // 表格样式
- .files-table {
- width: 100%;
- border-collapse: collapse;
- font-size: 14px;
- // 表头
- thead {
- background: linear-gradient(135deg, #40e0d0 0%, #48d1cc 100%);
- color: white;
- tr {
- th {
- padding: 16px 12px;
- text-align: left;
- font-weight: 600;
- font-size: 15px;
- border-bottom: 3px solid #36d0c0;
- &.col-file {
- width: 120px;
- text-align: center;
- }
- &.col-name {
- width: 25%;
- }
- &.col-upload {
- width: 20%;
- text-align: center;
- }
- &.col-space {
- width: 20%;
- text-align: center;
- }
- &.col-stage {
- width: 20%;
- text-align: center;
- }
- }
- }
- }
- // 表体
- tbody {
- .empty-row {
- .empty-cell {
- padding: 60px 20px;
- text-align: center;
- .empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 16px;
- .empty-icon {
- opacity: 0.3;
- }
- p {
- margin: 0;
- color: #999;
- font-size: 15px;
- }
- }
- }
- }
- .file-row {
- border-bottom: 1px solid #e8e8e8;
- transition: all 0.2s;
- &:hover {
- background: #f5f5f5;
- }
- &.uploading {
- background: #e6f7ff;
- }
- &.success {
- background: #f6ffed;
- }
- &.error {
- background: #fff1f0;
- }
- td {
- padding: 16px 12px;
- vertical-align: middle;
- }
- // 文件列
- .col-file {
- text-align: center;
- .file-preview-wrapper {
- position: relative;
- display: inline-block;
- .file-preview {
- width: 80px;
- height: 80px;
- border-radius: 8px;
- overflow: hidden;
- background: #f5f5f5;
- display: flex;
- align-items: center;
- justify-content: center;
- border: 2px solid #e8e8e8;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .file-icon {
- color: #999;
- }
- }
- .delete-btn {
- position: absolute;
- top: -8px;
- right: -8px;
- width: 28px;
- height: 28px;
- border-radius: 50%;
- background: #ff4d4f;
- border: 2px solid white;
- color: white;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: all 0.2s;
- box-shadow: 0 2px 6px rgba(255, 77, 79, 0.4);
- &:hover:not(:disabled) {
- background: #ff7875;
- transform: scale(1.1);
- }
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- }
- }
- }
- // 名称列
- .col-name {
- .file-name-wrapper {
- .file-name {
- font-weight: 500;
- color: #333;
- margin-bottom: 6px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .file-size {
- font-size: 12px;
- color: #999;
- }
- }
- }
- // 上传列
- .col-upload {
- text-align: center;
- .upload-status-wrapper {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- .status-text {
- font-size: 13px;
- font-weight: 500;
- padding: 4px 12px;
- border-radius: 12px;
- white-space: nowrap;
- &.analyzing {
- color: #1890ff;
- background: #e6f7ff;
- }
- &.success {
- color: #52c41a;
- background: #f6ffed;
- }
- &.error {
- color: #ff4d4f;
- background: #fff1f0;
- }
- &.pending {
- color: #faad14;
- background: #fff7e6;
- }
- }
- .upload-progress-inline {
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- .progress-bar-inline {
- width: 100%;
- height: 6px;
- background: #f0f0f0;
- border-radius: 3px;
- overflow: hidden;
- .progress-fill-inline {
- height: 100%;
- background: linear-gradient(90deg, #1890ff, #40a9ff);
- border-radius: 3px;
- transition: width 0.3s ease;
- }
- }
- .progress-text-inline {
- font-size: 12px;
- color: #1890ff;
- font-weight: 600;
- }
- }
- }
- }
- // 空间列和阶段列
- .col-space,
- .col-stage {
- text-align: center;
- .table-select {
- width: 100%;
- max-width: 150px;
- padding: 8px 12px;
- border: 2px solid #d9d9d9;
- border-radius: 8px;
- font-size: 13px;
- color: #333;
- background: white;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover:not(:disabled) {
- border-color: #40a9ff;
- }
- &:focus {
- outline: none;
- border-color: #1890ff;
- box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
- }
- &.ai-suggested {
- border-color: #52c41a;
- background: linear-gradient(135deg, #f6ffed 0%, white 100%);
- box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.1);
- }
- &:disabled {
- background: #f5f5f5;
- color: #bfbfbf;
- cursor: not-allowed;
- border-color: #e8e8e8;
- }
- option {
- padding: 8px;
- }
- }
- }
- }
- }
- }
- // 上传警告
- .upload-warning {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 12px 16px;
- margin-top: 16px;
- background: #fff7e6;
- border: 2px solid #ffd591;
- border-radius: 8px;
- color: #d46b08;
- font-size: 13px;
- font-weight: 500;
- svg {
- flex-shrink: 0;
- color: #faad14;
- }
- }
- // 弹窗底部
- .modal-footer {
- padding: 20px 32px;
- border-top: 2px solid #e8e8e8;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- gap: 12px;
- background: white;
- .cancel-btn,
- .confirm-btn {
- padding: 12px 24px;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.2s ease;
- border: none;
- }
- .cancel-btn {
- background: #f5f5f5;
- color: #595959;
- &:hover {
- background: #e6e6e6;
- }
- }
- .confirm-btn {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
- &:hover:not(:disabled) {
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
- }
- &:disabled {
- background: #d9d9d9;
- color: #bfbfbf;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- }
- }
- }
- // AI分析横幅
- .analysis-banner {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 16px 20px;
- margin-bottom: 20px;
- background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
- border: 2px solid #91d5ff;
- border-radius: 12px;
- animation: slideDown 0.3s ease-out;
- &.success {
- background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
- border-color: #b7eb8f;
- .banner-icon svg {
- color: #52c41a;
- }
- .banner-title {
- color: #389e0d;
- }
- }
- .banner-icon {
- flex-shrink: 0;
- width: 40px;
- height: 40px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: white;
- border-radius: 50%;
- box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
- svg {
- color: #1890ff;
- &.rotating {
- animation: rotate 2s linear infinite;
- }
- }
- }
- .banner-content {
- flex: 1;
- .banner-title {
- font-size: 15px;
- font-weight: 600;
- color: #1890ff;
- margin-bottom: 4px;
- }
- .banner-text {
- font-size: 13px;
- color: #595959;
- line-height: 1.4;
- }
- }
- }
- // AI分析进度覆盖层
- .analysis-progress-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(255, 255, 255, 0.98);
- backdrop-filter: blur(8px);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 100;
- border-radius: 16px;
- .progress-content {
- text-align: center;
- padding: 40px;
- max-width: 400px;
- .ai-brain-icon {
- margin: 0 auto 24px;
- width: 64px;
- height: 64px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- animation: pulse 2s ease-in-out infinite;
- box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
- svg {
- color: white;
- width: 32px;
- height: 32px;
- }
- }
- .progress-text {
- font-size: 18px;
- font-weight: 600;
- color: #475569;
- line-height: 1.5;
- margin-bottom: 20px;
- }
- .progress-bar {
- width: 100%;
- height: 6px;
- background: #e2e8f0;
- border-radius: 3px;
- overflow: hidden;
- margin-top: 16px;
- .progress-fill {
- height: 100%;
- background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
- border-radius: 3px;
- transition: width 0.3s ease;
- animation: shimmer 2s linear infinite;
- }
- }
- }
- @keyframes shimmer {
- 0% {
- background-position: -200% 0;
- }
- 100% {
- background-position: 200% 0;
- }
- }
- }
- // 简化的文件分析表格
- .files-analysis-table {
- .analysis-table {
- width: 100%;
- border-collapse: collapse;
- background: white;
- border-radius: 8px;
- overflow: hidden;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- thead {
- background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
-
- th {
- padding: 16px 12px;
- text-align: left;
- font-weight: 600;
- color: #262626;
- font-size: 14px;
- border-bottom: 2px solid #e6f7ff;
- &.col-file { width: 80px; }
- &.col-name { width: 200px; }
- &.col-upload { width: 100px; }
- &.col-space { width: 120px; }
- &.col-stage { width: 120px; }
- }
- }
- tbody {
- .file-row {
- transition: all 0.2s ease;
- border-bottom: 1px solid #f0f0f0;
- &:hover {
- background: #fafafa;
- }
- &.analyzing {
- background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
- }
- &.completed {
- background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
- }
- td {
- padding: 12px;
- vertical-align: middle;
- }
- // 文件预览列
- .file-preview-container {
- position: relative; // 🔥 相对定位,为删除按钮提供定位参考
- display: inline-block; // 🔥 改为inline-block,避免flex影响
- width: 50px; // 🔥 固定容器宽度
- height: 50px; // 🔥 固定容器高度
- flex-shrink: 0; // 🔥 防止容器被压缩
- margin: 0 auto; // 🔥 在单元格中居中
- .file-thumbnail {
- width: 50px;
- height: 50px;
- object-fit: cover;
- border-radius: 6px;
- border: 2px solid #f0f0f0;
- background: #fafafa; // 🔥 添加背景色,避免加载时空白
- display: block; // 🔥 确保图片正常显示
- position: relative; // 🔥 相对定位
- z-index: 1; // 🔥 确保图片在下层
-
- // 🔥 企业微信端优化
- @media (max-width: 768px) {
- width: 44px;
- height: 44px;
- border-width: 1px;
- }
- }
- .file-icon-placeholder {
- width: 50px;
- height: 50px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #f5f5f5;
- border-radius: 6px;
- border: 2px solid #f0f0f0;
- flex-shrink: 0; // 🔥 防止被压缩
- position: relative; // 🔥 相对定位
- z-index: 1; // 🔥 确保占位符在下层
- svg {
- color: #8c8c8c;
- width: 24px; // 🔥 明确指定图标大小
- height: 24px;
- }
-
- // 🔥 企业微信端优化
- @media (max-width: 768px) {
- width: 44px;
- height: 44px;
- border-width: 1px;
-
- svg {
- width: 20px;
- height: 20px;
- }
- }
- }
- .file-delete-btn {
- position: absolute !important; // 🔥 强制绝对定位
- top: -8px !important;
- right: -8px !important;
- width: 22px !important; // 🔥 稍微减小尺寸
- height: 22px !important;
- background: #ff4d4f !important;
- border: 2px solid white !important;
- border-radius: 50% !important;
- display: flex !important;
- align-items: center !important;
- justify-content: center !important;
- cursor: pointer !important;
- transition: all 0.2s ease !important;
- z-index: 10 !important; // 🔥 确保删除按钮在最上层
- padding: 0 !important; // 🔥 移除可能的padding
- min-width: auto !important; // 🔥 移除最小宽度限制
- min-height: auto !important; // 🔥 移除最小高度限制
- &:hover {
- background: #ff7875 !important;
- transform: scale(1.1) !important;
- }
- svg {
- color: white !important;
- width: 12px !important; // 🔥 明确指定图标大小
- height: 12px !important;
- display: block !important;
- }
-
- // 🔥 移动端适配
- @media (max-width: 768px) {
- width: 18px !important;
- height: 18px !important;
- top: -5px !important;
- right: -5px !important;
- border-width: 1px !important;
-
- svg {
- width: 10px !important;
- height: 10px !important;
- }
- }
- }
-
- // 🔥 移动端容器尺寸
- @media (max-width: 768px) {
- width: 44px;
- height: 44px;
- }
- }
- // 文件信息列
- .file-info {
- .file-name {
- font-size: 13px;
- font-weight: 600;
- color: #262626;
- margin-bottom: 4px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .file-size {
- font-size: 11px;
- color: #8c8c8c;
- }
- }
- // 上传状态列
- .upload-status {
- .status {
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 12px;
- font-weight: 600;
- &.analyzing {
- background: #e6f7ff;
- color: #1890ff;
- }
- &.completed {
- background: #f6ffed;
- color: #52c41a;
- }
- &.pending {
- background: #fff7e6;
- color: #faad14;
- }
- }
- }
- // 空间和阶段结果列
- .space-result,
- .stage-result {
- .placeholder {
- color: #94a3b8;
- font-size: 12px;
- font-style: italic;
-
- &.analyzing {
- color: #667eea;
- font-weight: 600;
- animation: pulse 1.5s ease-in-out infinite;
- }
- }
- .ai-result-container {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- flex-wrap: wrap;
- }
- .ai-result {
- color: #059669;
- font-weight: 600;
- background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
- padding: 6px 12px;
- border-radius: 12px;
- border: 1px solid #6ee7b7;
- display: inline-block;
- font-size: 13px;
-
- &.stage-tag {
- &[data-stage="white_model"] {
- background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
- color: #475569;
- border-color: #cbd5e1;
- }
-
- &[data-stage="soft_decor"] {
- background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
- color: #92400e;
- border-color: #f59e0b;
- }
-
- &[data-stage="rendering"] {
- background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
- color: #1e40af;
- border-color: #3b82f6;
- }
-
- &[data-stage="post_process"] {
- background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
- color: #7c3aed;
- border-color: #a855f7;
- }
- }
- }
- .confidence-badge,
- .quality-badge {
- font-size: 11px;
- font-weight: 700;
- color: white;
- padding: 2px 6px;
- border-radius: 8px;
- display: inline-block;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
- }
- }
- }
- }
- }
- }
- // JSON格式预览区域 (保留但隐藏)
- .json-preview-section {
- display: none; // 暂时隐藏JSON预览
- margin-bottom: 24px;
- background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
- border: 2px solid #ffd591;
- border-radius: 12px;
- overflow: hidden;
- animation: slideDown 0.3s ease-out;
- .json-preview-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
- color: white;
- .header-left {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 15px;
- font-weight: 600;
- svg {
- flex-shrink: 0;
- }
- }
- .toggle-json-btn {
- background: rgba(255, 255, 255, 0.2);
- border: 1px solid rgba(255, 255, 255, 0.3);
- color: white;
- padding: 6px 12px;
- border-radius: 6px;
- font-size: 12px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- background: rgba(255, 255, 255, 0.3);
- }
- }
- }
- .json-preview-content {
- padding: 20px;
- background: white;
- .json-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: 16px;
- .json-item {
- background: #fafafa;
- border: 2px solid #f0f0f0;
- border-radius: 8px;
- overflow: hidden;
- transition: all 0.2s ease;
- &.analyzing {
- border-color: #91d5ff;
- background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
- }
- &:hover {
- border-color: #40a9ff;
- box-shadow: 0 4px 12px rgba(64, 169, 255, 0.15);
- }
- .json-item-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- background: white;
- border-bottom: 1px solid #f0f0f0;
- .file-info {
- flex: 1;
- min-width: 0;
- .file-name {
- display: block;
- font-size: 13px;
- font-weight: 600;
- color: #262626;
- margin-bottom: 2px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .file-size {
- font-size: 11px;
- color: #8c8c8c;
- }
- }
- .status-badge {
- padding: 4px 8px;
- background: #faad14;
- color: white;
- border-radius: 4px;
- font-size: 11px;
- font-weight: 600;
- &.completed {
- background: #52c41a;
- }
- }
- }
- .json-item-body {
- padding: 16px;
- .preview-image {
- width: 100%;
- height: 120px;
- border-radius: 6px;
- overflow: hidden;
- margin-bottom: 12px;
- background: #f5f5f5;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- }
- .analysis-info {
- .info-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 8px;
- font-size: 12px;
- &:last-child {
- margin-bottom: 0;
- }
- .label {
- color: #595959;
- font-weight: 500;
- min-width: 50px;
- }
- .value {
- color: #262626;
- font-weight: 600;
- text-align: right;
- &.confidence {
- color: #faad14;
- &.high {
- color: #52c41a;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- // 文件区域
- .files-section {
- .section-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- h4 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #262626;
- }
- .file-actions {
- .add-files-btn {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 8px 16px;
- background: #f8f9fa;
- border: 1px solid #e9ecef;
- border-radius: 8px;
- color: #495057;
- font-size: 14px;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- background: #e9ecef;
- border-color: #dee2e6;
- }
- svg {
- flex-shrink: 0;
- }
- }
- }
- }
- }
- // 文件列表
- .files-list {
- border: 1px solid #e9ecef;
- border-radius: 12px;
- background: #fafbfc;
- min-height: 200px;
- max-height: 400px;
- overflow-y: auto;
- .empty-files {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- height: 200px;
- color: #8c8c8c;
- .empty-icon {
- font-size: 48px;
- margin-bottom: 12px;
- opacity: 0.6;
- }
- p {
- margin: 0;
- font-size: 14px;
- }
- }
- }
- // 文件项
- .file-item {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 16px;
- border-bottom: 1px solid #f0f0f0;
- transition: background-color 0.2s ease;
- &:last-child {
- border-bottom: none;
- }
- &:hover {
- background: rgba(24, 144, 255, 0.04);
- }
- &.uploading {
- background: rgba(24, 144, 255, 0.08);
- }
- &.error {
- background: rgba(255, 77, 79, 0.08);
- }
- // 文件预览
- .file-preview {
- position: relative;
- width: 64px;
- height: 64px;
- border-radius: 8px;
- overflow: hidden;
- background: #f5f5f5;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- .preview-image {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- .file-icon {
- font-size: 24px;
- }
- // 状态覆盖层
- .upload-overlay,
- .success-overlay,
- .error-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 8px;
- }
- .upload-overlay {
- background: rgba(24, 144, 255, 0.9);
- .progress-circle {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- .progress-text {
- position: absolute;
- color: white;
- font-size: 10px;
- font-weight: 600;
- }
- }
- }
- .success-overlay {
- background: rgba(82, 196, 26, 0.9);
- .success-icon {
- color: white;
- font-size: 20px;
- font-weight: bold;
- }
- }
- .error-overlay {
- background: rgba(255, 77, 79, 0.9);
- .error-icon {
- color: white;
- font-size: 20px;
- font-weight: bold;
- }
- }
- }
- // 文件信息
- .file-info {
- flex: 1;
- min-width: 0;
- .file-name {
- font-size: 14px;
- font-weight: 500;
- color: #262626;
- margin-bottom: 4px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .file-details {
- display: flex;
- align-items: center;
- gap: 12px;
- font-size: 12px;
- color: #8c8c8c;
- .error-message {
- color: #ff4d4f;
- font-weight: 500;
- }
- .analyzing-message {
- color: #1890ff;
- font-weight: 500;
- animation: pulse 1.5s ease-in-out infinite;
- }
- }
- // 图片分析结果样式(简化版)
- .analysis-result {
- margin-top: 8px;
- padding: 8px 10px;
- background: linear-gradient(135deg, #f6ffed 0%, #f0fff4 100%);
- border: 1px solid #b7eb8f;
- border-radius: 6px;
- font-size: 11px;
- .analysis-row {
- display: flex;
- align-items: center;
- gap: 6px;
- margin-bottom: 4px;
- &:last-child {
- margin-bottom: 0;
- }
- }
- .analysis-label {
- color: #52c41a;
- font-weight: 600;
- min-width: 50px;
- }
- .analysis-value {
- color: #262626;
- font-weight: 500;
- }
- .confidence-badge {
- padding: 2px 6px;
- // 🔥 移除硬编码背景色,使用HTML中动态设置的颜色
- // background: #faad14; // ❌ 错误:会覆盖动态颜色
- color: white;
- border-radius: 3px;
- font-size: 10px;
- font-weight: 600;
-
- // 🔥 确保移动端字体清晰可读
- @media (max-width: 768px) {
- font-size: 9px;
- padding: 2px 5px;
- }
- }
- .quality-badge {
- // 🔥 不设置背景色,使用HTML中动态设置的颜色
- color: white;
- padding: 2px 6px;
- border-radius: 3px;
- font-size: 10px;
- font-weight: 600;
- text-transform: uppercase;
-
- // 🔥 确保移动端字体清晰可读
- @media (max-width: 768px) {
- font-size: 9px;
- padding: 2px 5px;
- }
- }
- }
- // 文件分类选择样式
- .file-classification {
- margin-top: 12px;
- padding: 12px;
- background: linear-gradient(135deg, #fff7e6 0%, #fffbf0 100%);
- border: 2px solid #ffd591;
- border-radius: 8px;
- .classification-row {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-bottom: 8px;
- &:last-child {
- margin-bottom: 0;
- }
- }
- .classification-label {
- font-size: 12px;
- font-weight: 600;
- color: #d46b08;
- min-width: 45px;
- }
- .classification-select {
- flex: 1;
- padding: 6px 10px;
- border: 1px solid #d9d9d9;
- border-radius: 6px;
- font-size: 12px;
- color: #262626;
- background: white;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- border-color: #40a9ff;
- }
- &:focus {
- outline: none;
- border-color: #1890ff;
- box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
- }
- &.ai-suggested {
- border-color: #52c41a;
- background: linear-gradient(135deg, #f6ffed 0%, white 100%);
- }
- option {
- padding: 8px;
- }
- }
- }
- }
- // 文件操作
- .file-actions {
- .remove-btn {
- background: none;
- border: none;
- color: #8c8c8c;
- cursor: pointer;
- padding: 8px;
- border-radius: 6px;
- transition: all 0.2s ease;
- &:hover {
- background: #fff2f0;
- color: #ff4d4f;
- }
- }
- }
- }
- // AI分析进度样式
- .analysis-progress {
- margin-top: 20px;
- padding: 16px;
- background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
- border: 1px solid #91d5ff;
- border-radius: 8px;
- .progress-header {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-bottom: 12px;
- color: #1890ff;
- font-weight: 600;
- font-size: 14px;
- svg {
- flex-shrink: 0;
- animation: rotate 2s linear infinite;
- }
- }
- .progress-text {
- color: #1890ff;
- font-size: 13px;
- margin-bottom: 8px;
- font-weight: 500;
- }
- .progress-bar {
- height: 4px;
- background: #e6f7ff;
- border-radius: 2px;
- overflow: hidden;
- .progress-fill {
- height: 100%;
- background: linear-gradient(90deg, #1890ff, #40a9ff);
- border-radius: 2px;
- animation: progressMove 2s ease-in-out infinite;
- }
- }
- }
- // 上传提示
- .upload-tips {
- margin-top: 24px;
- padding: 16px;
- background: #f6ffed;
- border: 1px solid #b7eb8f;
- border-radius: 8px;
- .tips-header {
- display: flex;
- align-items: center;
- gap: 8px;
- margin-bottom: 12px;
- color: #389e0d;
- font-weight: 500;
- font-size: 14px;
- svg {
- flex-shrink: 0;
- }
- }
- .tips-list {
- margin: 0;
- padding-left: 20px;
- color: #52c41a;
- font-size: 13px;
- line-height: 1.6;
- li {
- margin-bottom: 4px;
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
- // 弹窗底部
- .modal-footer {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 20px 28px;
- background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
- border-top: 1px solid #e2e8f0;
- border-radius: 0 0 16px 16px;
- min-height: 80px;
- .analysis-summary {
- flex: 1;
- margin-right: 20px;
- .progress-indicator {
- display: flex;
- align-items: center;
- gap: 12px;
- color: #667eea;
- font-weight: 600;
- .spinner-small {
- width: 20px;
- height: 20px;
- border: 2px solid #e0e7ff;
- border-top-color: #667eea;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
- }
- .analysis-stats {
- display: flex;
- gap: 16px;
- flex-wrap: wrap;
- .stats-item {
- font-size: 13px;
- color: #64748b;
-
- strong {
- color: #475569;
- font-weight: 700;
- }
- }
- }
- }
- // 上传状态显示
- .upload-status {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 16px;
- margin: 16px 0;
- border-radius: 8px;
- background: #f0f9ff;
- border: 1px solid #bae6fd;
-
- &.success {
- background: #f0f9f4;
- border-color: #86efac;
- color: #166534;
-
- .status-icon {
- color: #22c55e;
- font-weight: bold;
- font-size: 18px;
- }
- }
-
- &.error {
- background: #fef2f2;
- border-color: #fca5a5;
- color: #dc2626;
-
- .status-icon {
- color: #ef4444;
- font-weight: bold;
- font-size: 18px;
- }
- }
-
- .status-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- color: #3b82f6;
- font-size: 16px;
- font-weight: bold;
- }
-
- .loading-spinner {
- width: 16px;
- height: 16px;
- border: 2px solid #e5e7eb;
- border-top: 2px solid #3b82f6;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
-
- .status-message {
- font-size: 14px;
- font-weight: 500;
- }
- }
- .action-buttons {
- display: flex;
- gap: 12px;
- }
- .cancel-btn,
- .confirm-btn {
- padding: 12px 24px;
- border-radius: 10px;
- font-size: 14px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s ease;
- border: none;
- outline: none;
- }
- .cancel-btn {
- background: #f1f5f9;
- color: #64748b;
- border: 1px solid #cbd5e1;
- &:hover {
- background: #e2e8f0;
- color: #475569;
- }
- }
- .confirm-btn {
- background: linear-gradient(135deg, #059669 0%, #047857 100%);
- color: white;
- box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
- }
- &:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- transform: none;
- box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
- }
- }
- }
- // 动画
- @keyframes fadeIn {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- @keyframes slideUp {
- from {
- transform: translateY(30px);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- }
- @keyframes slideDown {
- from {
- transform: translateY(-20px);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- }
- @keyframes bounce {
- 0%, 20%, 50%, 80%, 100% {
- transform: translateY(0);
- }
- 40% {
- transform: translateY(-8px);
- }
- 60% {
- transform: translateY(-4px);
- }
- }
- // AI分析相关动画
- @keyframes pulse {
- 0% { transform: scale(1); }
- 50% { transform: scale(1.05); }
- 100% { transform: scale(1); }
- }
- @keyframes glow {
- 0% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); }
- 50% { box-shadow: 0 0 20px rgba(24, 144, 255, 0.8); }
- 100% { box-shadow: 0 0 5px rgba(24, 144, 255, 0.5); }
- }
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- // 特殊状态动画
- .analyzing {
- animation: pulse 1.5s ease-in-out infinite;
- }
- .completed {
- animation: glow 2s ease-in-out;
- }
- @keyframes rotate {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- @keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
- }
- @keyframes progressMove {
- 0% {
- transform: translateX(-100%);
- }
- 50% {
- transform: translateX(0%);
- }
- 100% {
- transform: translateX(100%);
- }
- }
- // 响应式设计 - 移动端优化(参考图片一的显示效果)
- @media (max-width: 768px) {
- .drag-upload-modal-overlay {
- align-items: flex-start;
- padding: 0;
- }
- .drag-upload-modal-container {
- width: 100vw;
- max-width: 100vw;
- max-height: 100vh;
- height: 100vh;
- margin: 0;
- border-radius: 0;
- position: relative;
- }
- .modal-body {
- padding: 8px;
- max-height: calc(100vh - 140px);
- overflow-y: auto;
- overflow-x: hidden;
- background: #f5f5f5;
- }
- // 表格容器 - 确保表格结构正确显示
- .files-analysis-table {
- overflow-x: auto;
- -webkit-overflow-scrolling: touch;
- background: white;
- border-radius: 8px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
-
- .analysis-table {
- width: 100%;
- min-width: 100%; // 移除最小宽度限制,让表格自适应
- font-size: 11px;
- display: table; // 确保表格显示
- border-collapse: collapse;
- thead {
- display: table-header-group; // 确保表头显示
- background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
-
- tr {
- display: table-row;
- }
- th {
- display: table-cell; // 确保单元格显示
- padding: 8px 4px;
- font-size: 11px;
- white-space: nowrap;
- text-align: center;
- vertical-align: middle;
- border-bottom: 2px solid #e6f7ff;
- &.col-file {
- width: 50px;
- }
- &.col-name {
- width: auto;
- min-width: 100px;
- }
- &.col-upload {
- width: 50px;
- }
- &.col-space {
- width: 70px;
- }
- &.col-stage {
- width: 70px;
- }
- }
- }
- tbody {
- display: table-row-group; // 确保表体显示
- .file-row {
- display: table-row; // 确保行显示
- border-bottom: 1px solid #f0f0f0;
- td {
- display: table-cell; // 确保单元格显示
- padding: 6px 4px;
- vertical-align: middle;
- }
- // 文件预览缩小
- .file-preview-container {
- display: inline-block !important; // 🔥 强制inline-block,避免flex影响
- position: relative !important;
- width: 40px !important; // 🔥 固定容器宽度
- height: 40px !important; // 🔥 固定容器高度
- flex-shrink: 0 !important; // 🔥 防止被压缩
- margin: 0 auto !important; // 🔥 在单元格中居中
- .file-thumbnail,
- .file-icon-placeholder {
- width: 40px !important; // 🔥 增大到40px,更清晰
- height: 40px !important;
- border-radius: 4px !important;
- flex-shrink: 0 !important; // 🔥 防止被压缩
- position: relative !important;
- z-index: 1 !important; // 🔥 确保在下层
- display: block !important;
- }
- .file-delete-btn {
- position: absolute !important; // 🔥 强制绝对定位
- width: 16px !important; // 🔥 移动端进一步减小
- height: 16px !important;
- top: -4px !important; // 🔥 调整定位,避免太靠边
- right: -4px !important;
- z-index: 10 !important; // 🔥 确保在上层
- background: #ff4d4f !important;
- border: 1px solid white !important;
- border-radius: 50% !important;
- display: flex !important;
- align-items: center !important;
- justify-content: center !important;
- cursor: pointer !important;
- padding: 0 !important;
- min-width: auto !important;
- min-height: auto !important;
- svg {
- width: 9px !important;
- height: 9px !important;
- color: white !important;
- display: block !important;
- }
- }
- }
- // 文件信息
- .file-info {
- .file-name {
- font-size: 10px;
- margin-bottom: 2px;
- line-height: 1.2;
- max-width: 100px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .file-size {
- font-size: 9px;
- color: #999;
- }
- }
- // 上传状态
- .upload-status {
- text-align: center;
- .status {
- font-size: 9px;
- padding: 2px 4px;
- border-radius: 3px;
- display: inline-block;
- }
- }
- // 空间和阶段结果
- .space-result,
- .stage-result {
- text-align: center;
- .ai-result-container {
- display: flex;
- flex-direction: column;
- gap: 2px;
- align-items: center;
- }
- .ai-result {
- font-size: 9px;
- padding: 2px 4px;
- border-radius: 3px;
- white-space: nowrap;
- max-width: 60px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .confidence-badge,
- .quality-badge {
- font-size: 8px;
- padding: 1px 3px;
- border-radius: 2px;
- }
- .placeholder {
- font-size: 9px;
- color: #999;
- }
- }
- }
- }
- }
- }
- // 底部按钮区域优化
- .modal-footer {
- flex-direction: column;
- gap: 8px;
- align-items: stretch;
- padding: 10px 12px;
- min-height: auto;
- background: white;
- border-top: 1px solid #e8e8e8;
- .analysis-summary {
- margin-right: 0;
- margin-bottom: 0;
- .progress-indicator {
- justify-content: center;
- font-size: 11px;
- .spinner-small {
- width: 14px;
- height: 14px;
- }
- }
- .analysis-stats {
- justify-content: center;
- gap: 6px;
- flex-wrap: wrap;
- .stats-item {
- font-size: 10px;
- }
- }
- }
- .upload-status {
- padding: 10px;
- margin: 0;
- .status-message {
- font-size: 11px;
- }
- }
- .action-buttons {
- width: 100%;
- gap: 8px;
- display: flex;
-
- .cancel-btn,
- .confirm-btn {
- flex: 1;
- padding: 12px 16px;
- font-size: 14px;
- border-radius: 8px;
- }
- }
- }
- // AI分析进度覆盖层优化
- .analysis-progress-overlay {
- .progress-content {
- padding: 20px;
- .ai-brain-icon {
- width: 48px;
- height: 48px;
- margin-bottom: 16px;
- svg {
- width: 24px;
- height: 24px;
- }
- }
- .progress-text {
- font-size: 13px;
- margin-bottom: 12px;
- }
- .progress-bar {
- height: 4px;
- }
- }
- }
- }
- // 图片查看器
- .image-viewer-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.95);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 3000;
- animation: fadeIn 0.2s ease-out;
- }
- .image-viewer-container {
- position: relative;
- max-width: 95vw;
- max-height: 95vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 16px;
- .close-viewer-btn {
- position: absolute;
- top: -50px;
- right: 0;
- background: rgba(255, 255, 255, 0.1);
- border: none;
- color: white;
- cursor: pointer;
- padding: 12px;
- border-radius: 50%;
- transition: all 0.2s ease;
- z-index: 10;
- &:hover {
- background: rgba(255, 255, 255, 0.2);
- transform: scale(1.1);
- }
- svg {
- display: block;
- }
- }
- .full-image {
- max-width: 95vw;
- max-height: 80vh;
- object-fit: contain;
- border-radius: 8px;
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
- }
- .image-info {
- background: rgba(255, 255, 255, 0.1);
- backdrop-filter: blur(10px);
- padding: 12px 20px;
- border-radius: 8px;
- color: white;
- text-align: center;
- .image-name {
- font-size: 14px;
- font-weight: 600;
- margin-bottom: 4px;
- }
- .image-details {
- font-size: 12px;
- opacity: 0.8;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- .separator {
- opacity: 0.5;
- }
- }
- }
- }
- // 缩略图可点击提示
- .file-thumbnail {
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- transform: scale(1.05);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
- }
- }
|