| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118 |
- // 拖拽上传弹窗样式
- .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: flex;
- align-items: center;
- .file-thumbnail {
- width: 50px;
- height: 50px;
- object-fit: cover;
- border-radius: 6px;
- border: 2px solid #f0f0f0;
- background: #fafafa; // 🔥 添加背景色,避免加载时空白
- display: block; // 🔥 确保图片正常显示
-
- // 🔥 企业微信端优化
- @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; // 🔥 防止被压缩
- 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;
- top: -8px;
- right: -8px;
- width: 24px;
- height: 24px;
- background: #ff4d4f;
- border: 2px solid white;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- background: #ff7875;
- transform: scale(1.1);
- }
- svg {
- color: white;
- }
- }
- }
- // 文件信息列
- .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: flex;
- justify-content: center;
- position: relative;
- .file-thumbnail,
- .file-icon-placeholder {
- width: 36px;
- height: 36px;
- border-radius: 4px;
- }
- .file-delete-btn {
- width: 18px;
- height: 18px;
- top: -6px;
- right: -6px;
- svg {
- width: 10px;
- height: 10px;
- }
- }
- }
- // 文件信息
- .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);
- }
- }
|