ZBD | ff4d40a | 2025-05-27 17:05:20 +0800 | [diff] [blame^] | 1 | /* base.css */ |
| 2 | |
| 3 | /* 背景渐变和字体 */ |
| 4 | body { |
| 5 | margin: 0; |
| 6 | font-family: 'Roboto', sans-serif; |
| 7 | background: linear-gradient(135deg, #2c3e50, #4ca1af); |
| 8 | color: white; |
| 9 | min-height: 100vh; |
| 10 | overflow-x: hidden; |
| 11 | } |
| 12 | |
| 13 | /* 卡片样式 */ |
| 14 | .upload-paper { |
| 15 | position: relative; |
| 16 | z-index: 20; /* 高于泡泡背景 */ |
| 17 | padding: 2rem; |
| 18 | background-color: rgba(30, 30, 30, 0.9); /* 半透明深色背景 */ |
| 19 | } |
| 20 | |
| 21 | /* 标签样式 */ |
| 22 | .upload-chip { |
| 23 | background-color: #ffffff33; |
| 24 | color: white; |
| 25 | } |
| 26 | |
| 27 | /* 上传按钮 */ |
| 28 | .upload-button { |
| 29 | background-color: #00bcd4; |
| 30 | color: white; |
| 31 | } |
| 32 | |
| 33 | .upload-button:hover { |
| 34 | background-color: #0097a7; |
| 35 | } |
| 36 | |
| 37 | /* 提交按钮 */ |
| 38 | .submit-button { |
| 39 | border-color: white; |
| 40 | color: white; |
| 41 | } |
| 42 | |
| 43 | /* 标题样式 */ |
| 44 | .upload-title { |
| 45 | text-align: center; |
| 46 | margin-bottom: 24px; |
| 47 | font-weight: bold; |
| 48 | } |
| 49 | |
| 50 | /* 动画背景容器 */ |
| 51 | .bubbles { |
| 52 | pointer-events: none; |
| 53 | position: fixed; /* 确保浮在所有内容之下 */ |
| 54 | top: 0; |
| 55 | left: 0; |
| 56 | width: 100%; |
| 57 | height: 100%; |
| 58 | overflow: hidden; |
| 59 | z-index: -1; /* 保证不覆盖前景内容 */ |
| 60 | } |
| 61 | |
| 62 | |
| 63 | .bubble { |
| 64 | position: absolute; |
| 65 | bottom: -100px; |
| 66 | background: rgba(255, 255, 255, 0.15); |
| 67 | border-radius: 50%; |
| 68 | animation: rise 20s infinite ease-in; |
| 69 | } |
| 70 | |
| 71 | @keyframes rise { |
| 72 | 0% { |
| 73 | transform: translateY(0) scale(1); |
| 74 | } |
| 75 | 100% { |
| 76 | transform: translateY(-120vh) scale(0.5); |
| 77 | } |
| 78 | } |
| 79 | |