Laramie2 commited on
Commit
b75b50c
·
verified ·
1 Parent(s): 47d4bda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -7
app.py CHANGED
@@ -268,7 +268,7 @@ body, .gradio-container {
268
  background-image: linear-gradient(rgba(168, 85, 247, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .1) 1px, transparent 1px) !important;
269
  }
270
 
271
- #col-container { margin: 0 auto; max-width: 1200px; }
272
 
273
  #main-title { text-align: center !important; padding: 1.5rem 0 0.5rem 0; }
274
  #main-title h1 {
@@ -285,24 +285,44 @@ body, .gradio-container {
285
  #subtitle p { margin: 0 auto; color: #666; font-size: 1.1rem; font-weight: 500; }
286
  .dark #subtitle p { color: #DAB2FF; }
287
 
288
- /* Glassmorphism Cards */
289
  .gradio-group {
290
  background: rgba(255, 255, 255, 0.9) !important;
291
- border: 2px solid #E9D5FF !important; border-radius: 12px !important;
 
292
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.08) !important;
293
- backdrop-filter: blur(10px); transition: all 0.3s ease; padding: 15px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  }
295
- .gradio-group:hover { box-shadow: 0 8px 32px rgba(168, 85, 247, 0.12) !important; border-color: #C084FC !important; }
296
- .dark .gradio-group { background: rgba(30, 30, 30, 0.9) !important; border-color: rgba(168, 85, 247, 0.3) !important; }
297
 
298
  /* ======== 优化:文件上传框居中与背景清理 ======== */
299
  #pdf-upload-box {
300
  border: 2px dashed rgba(192, 132, 252, 0.6) !important;
301
- border-radius: 12px !important;
302
  background-color: rgba(250, 245, 255, 0.5) !important;
303
  transition: all 0.3s ease !important;
304
  min-height: 220px !important; /* 增加高度提供居中空间 */
305
  position: relative !important;
 
306
  }
307
 
308
  #pdf-upload-box:hover {
 
268
  background-image: linear-gradient(rgba(168, 85, 247, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 85, 247, .1) 1px, transparent 1px) !important;
269
  }
270
 
271
+ #col-container { margin: 0 auto; max-width: 1200px; padding: 20px; }
272
 
273
  #main-title { text-align: center !important; padding: 1.5rem 0 0.5rem 0; }
274
  #main-title h1 {
 
285
  #subtitle p { margin: 0 auto; color: #666; font-size: 1.1rem; font-weight: 500; }
286
  .dark #subtitle p { color: #DAB2FF; }
287
 
288
+ /* ======== 修改:模块卡片强化圆角和内外边距 ======== */
289
  .gradio-group {
290
  background: rgba(255, 255, 255, 0.9) !important;
291
+ border: 2px solid #E9D5FF !important;
292
+ border-radius: 24px !important; /* 更明显的圆角 */
293
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.08) !important;
294
+ backdrop-filter: blur(10px);
295
+ transition: all 0.3s ease;
296
+ padding: 24px 28px !important; /* 增加边缘与内层内容的间距 */
297
+ margin-bottom: 20px !important; /* 模块之间的垂直间距 */
298
+ display: flex !important;
299
+ flex-direction: column !important;
300
+ gap: 16px !important; /* 内部组件之间的自然间距 */
301
+ }
302
+ .gradio-group:hover {
303
+ box-shadow: 0 8px 32px rgba(168, 85, 247, 0.12) !important;
304
+ border-color: #C084FC !important;
305
+ }
306
+ .dark .gradio-group {
307
+ background: rgba(30, 30, 30, 0.9) !important;
308
+ border-color: rgba(168, 85, 247, 0.3) !important;
309
+ }
310
+
311
+ /* 恢复 Gradio 内部组件的圆角(Gradio默认会将 group 内的元素边缘变直) */
312
+ .gradio-group > div,
313
+ .gradio-group > .form {
314
+ border-radius: 12px !important;
315
  }
 
 
316
 
317
  /* ======== 优化:文件上传框居中与背景清理 ======== */
318
  #pdf-upload-box {
319
  border: 2px dashed rgba(192, 132, 252, 0.6) !important;
320
+ border-radius: 16px !important;
321
  background-color: rgba(250, 245, 255, 0.5) !important;
322
  transition: all 0.3s ease !important;
323
  min-height: 220px !important; /* 增加高度提供居中空间 */
324
  position: relative !important;
325
+ margin-top: 10px !important;
326
  }
327
 
328
  #pdf-upload-box:hover {