|
|
@@ -0,0 +1,992 @@
|
|
|
+// ========================================
|
|
|
+// 🎨 画廊弹窗 - 精美设计
|
|
|
+// ========================================
|
|
|
+
|
|
|
+// ========== 动画定义 ==========
|
|
|
+@keyframes fadeIn {
|
|
|
+ from {
|
|
|
+ opacity: 0;
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes slideUpBounce {
|
|
|
+ 0% {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateY(30px) scale(0.95);
|
|
|
+ }
|
|
|
+ 70% {
|
|
|
+ transform: translateY(-5px) scale(1.01);
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateY(0) scale(1);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes shimmer {
|
|
|
+ 0% {
|
|
|
+ background-position: -200% center;
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ background-position: 200% center;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 遮罩层 ==========
|
|
|
+.gallery-overlay {
|
|
|
+ position: fixed;
|
|
|
+ inset: 0;
|
|
|
+ background: rgba(0, 0, 0, 0.7);
|
|
|
+ backdrop-filter: blur(6px);
|
|
|
+ -webkit-backdrop-filter: blur(6px);
|
|
|
+ z-index: 2000;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 20px;
|
|
|
+ animation: fadeIn 0.25s ease-out;
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 10px;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 主容器 ==========
|
|
|
+.gallery-container {
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 20px;
|
|
|
+ width: 100%;
|
|
|
+ max-width: 1200px;
|
|
|
+ max-height: 90vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ overflow: hidden;
|
|
|
+ box-shadow:
|
|
|
+ 0 20px 60px rgba(0, 0, 0, 0.3),
|
|
|
+ 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
|
+ animation: slideUpBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
+
|
|
|
+ @media (max-width: 1024px) {
|
|
|
+ max-width: 95vw;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ max-width: 100vw;
|
|
|
+ max-height: 95vh;
|
|
|
+ border-radius: 16px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ max-width: calc(100vw - 20px);
|
|
|
+ max-height: 85vh;
|
|
|
+ height: 85vh;
|
|
|
+ border-radius: 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 头部 ==========
|
|
|
+.gallery-header {
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+ padding: 24px 32px;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
+ // 装饰背景
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: -50%;
|
|
|
+ right: -50%;
|
|
|
+ width: 200%;
|
|
|
+ height: 200%;
|
|
|
+ background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 20px 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 16px 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.header-content {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 16px;
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
+
|
|
|
+.stage-info {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 16px;
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.stage-icon {
|
|
|
+ width: 56px;
|
|
|
+ height: 56px;
|
|
|
+ border-radius: 16px;
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 28px;
|
|
|
+ flex-shrink: 0;
|
|
|
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+ font-size: 24px;
|
|
|
+ border-radius: 12px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.stage-text {
|
|
|
+ flex: 1;
|
|
|
+ min-width: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.stage-title {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 22px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #ffffff;
|
|
|
+ letter-spacing: -0.02em;
|
|
|
+ line-height: 1.3;
|
|
|
+
|
|
|
+ // 文字溢出处理
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.stage-subtitle {
|
|
|
+ margin: 6px 0 0;
|
|
|
+ font-size: 14px;
|
|
|
+ color: rgba(255, 255, 255, 0.9);
|
|
|
+ font-weight: 500;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 13px;
|
|
|
+ margin-top: 4px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.file-count {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 6px;
|
|
|
+ padding: 4px 12px;
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ border-radius: 20px;
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ font-size: 13px;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 3px 10px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.close-btn {
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ border-radius: 12px;
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ border: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
+ color: #ffffff;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
+ flex-shrink: 0;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 22px;
|
|
|
+ line-height: 1;
|
|
|
+ font-weight: 300;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(255, 77, 79, 0.9);
|
|
|
+ border-color: rgba(255, 77, 79, 1);
|
|
|
+ transform: scale(1.05);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.95);
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ width: 42px;
|
|
|
+ height: 42px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 10px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 19px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 内容区域 ==========
|
|
|
+.gallery-body {
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
+ overflow-x: hidden;
|
|
|
+ padding: 32px;
|
|
|
+ background: linear-gradient(to bottom, #f8f9fa, #ffffff);
|
|
|
+ min-height: 0;
|
|
|
+
|
|
|
+ // 自定义滚动条
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ width: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::-webkit-scrollbar-track {
|
|
|
+ background: #f1f3f5;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
+ background: #cbd5e0;
|
|
|
+ border-radius: 4px;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: #a0aec0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 24px 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 20px 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 图片网格 ==========
|
|
|
+.images-grid {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
|
+ gap: 24px;
|
|
|
+
|
|
|
+ @media (max-width: 1024px) {
|
|
|
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
|
+ gap: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ grid-template-columns: repeat(3, 1fr);
|
|
|
+ gap: 16px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
+ gap: 12px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 图片卡片 ==========
|
|
|
+.image-card {
|
|
|
+ position: relative;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 16px;
|
|
|
+ overflow: hidden;
|
|
|
+ box-shadow:
|
|
|
+ 0 2px 8px rgba(0, 0, 0, 0.06),
|
|
|
+ 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
|
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: translateY(-4px) scale(1.02);
|
|
|
+ box-shadow:
|
|
|
+ 0 12px 24px rgba(0, 0, 0, 0.12),
|
|
|
+ 0 0 0 1px rgba(102, 126, 234, 0.3);
|
|
|
+
|
|
|
+ .image-overlay {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .delete-btn {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translate(0, 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ border-radius: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ border-radius: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 卡片预览区 ==========
|
|
|
+.card-preview {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ padding-top: 75%; // 4:3 比例
|
|
|
+ background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.preview-image {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ object-fit: cover;
|
|
|
+ transition: transform 0.3s ease;
|
|
|
+
|
|
|
+ .image-card:hover & {
|
|
|
+ transform: scale(1.05);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.image-overlay {
|
|
|
+ position: absolute;
|
|
|
+ inset: 0;
|
|
|
+ background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ opacity: 0;
|
|
|
+ transition: opacity 0.3s ease;
|
|
|
+}
|
|
|
+
|
|
|
+.zoom-icon {
|
|
|
+ filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
|
|
|
+ animation: pulse 2s infinite;
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes pulse {
|
|
|
+ 0%, 100% {
|
|
|
+ transform: scale(1);
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ transform: scale(1.1);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 文件预览 ==========
|
|
|
+.file-preview {
|
|
|
+ position: absolute;
|
|
|
+ inset: 0;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 12px;
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+}
|
|
|
+
|
|
|
+.file-icon-large {
|
|
|
+ font-size: 64px;
|
|
|
+ filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 48px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.file-extension {
|
|
|
+ padding: 6px 16px;
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ border-radius: 20px;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 13px;
|
|
|
+ font-weight: 700;
|
|
|
+ letter-spacing: 0.5px;
|
|
|
+ text-transform: uppercase;
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 卡片信息 ==========
|
|
|
+.card-info {
|
|
|
+ padding: 16px;
|
|
|
+ background: #ffffff;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 12px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.file-name {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #2d3748;
|
|
|
+ line-height: 1.4;
|
|
|
+ margin-bottom: 6px;
|
|
|
+
|
|
|
+ // 显示2行,超出省略
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ line-clamp: 2;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ word-break: break-word;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 13px;
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
+ line-clamp: 1;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.file-meta {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #718096;
|
|
|
+ font-weight: 500;
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 删除按钮 ==========
|
|
|
+.delete-btn {
|
|
|
+ position: absolute;
|
|
|
+ top: 8px;
|
|
|
+ right: 8px;
|
|
|
+ width: 32px;
|
|
|
+ height: 32px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: rgba(239, 68, 68, 0.95);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ border: 2px solid #ffffff;
|
|
|
+ color: #ffffff;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
|
|
|
+ opacity: 0;
|
|
|
+ transform: translate(4px, -4px);
|
|
|
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
+ z-index: 10;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 18px;
|
|
|
+ line-height: 1;
|
|
|
+ font-weight: 300;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(220, 38, 38, 1);
|
|
|
+ transform: translate(0, 0) scale(1.1);
|
|
|
+ box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: translate(0, 0) scale(0.9);
|
|
|
+ }
|
|
|
+
|
|
|
+ // 移动端始终显示
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translate(0, 0);
|
|
|
+ width: 28px;
|
|
|
+ height: 28px;
|
|
|
+ top: 6px;
|
|
|
+ right: 6px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 26px;
|
|
|
+ height: 26px;
|
|
|
+ top: 4px;
|
|
|
+ right: 4px;
|
|
|
+ border-width: 1.5px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 空状态 ==========
|
|
|
+.empty-state {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ min-height: 400px;
|
|
|
+ padding: 40px 20px;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ min-height: 300px;
|
|
|
+ padding: 30px 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.empty-icon {
|
|
|
+ font-size: 80px;
|
|
|
+ margin-bottom: 24px;
|
|
|
+ opacity: 0.4;
|
|
|
+ animation: float 3s ease-in-out infinite;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 64px;
|
|
|
+ margin-bottom: 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes float {
|
|
|
+ 0%, 100% {
|
|
|
+ transform: translateY(0);
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ transform: translateY(-10px);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.empty-text {
|
|
|
+ margin: 0 0 8px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #4a5568;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.empty-hint {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #a0aec0;
|
|
|
+}
|
|
|
+
|
|
|
+// ========== 底部操作栏 ==========
|
|
|
+.gallery-footer {
|
|
|
+ flex-shrink: 0;
|
|
|
+ padding: 20px 32px;
|
|
|
+ background: #ffffff;
|
|
|
+ border-top: 1px solid #e2e8f0;
|
|
|
+ box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
|
|
|
+ z-index: 10;
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 16px 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 14px 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.footer-content {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.upload-btn {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 10px;
|
|
|
+ padding: 14px 32px;
|
|
|
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+ color: #ffffff;
|
|
|
+ border: none;
|
|
|
+ border-radius: 12px;
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 600;
|
|
|
+ cursor: pointer;
|
|
|
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
|
|
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 20px;
|
|
|
+ line-height: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover:not(:disabled) {
|
|
|
+ background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
|
|
|
+ box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
|
|
|
+ transform: translateY(-2px);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active:not(:disabled) {
|
|
|
+ transform: translateY(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:disabled {
|
|
|
+ opacity: 0.6;
|
|
|
+ cursor: not-allowed;
|
|
|
+ background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 12px 28px;
|
|
|
+ font-size: 14px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 19px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 100%;
|
|
|
+ padding: 12px 24px;
|
|
|
+ font-size: 14px;
|
|
|
+ gap: 8px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========================================
|
|
|
+// 🖼️ 大图预览
|
|
|
+// ========================================
|
|
|
+
|
|
|
+.preview-overlay {
|
|
|
+ position: fixed;
|
|
|
+ inset: 0;
|
|
|
+ background: rgba(0, 0, 0, 0.95);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ z-index: 2100;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ animation: fadeIn 0.2s ease-out;
|
|
|
+}
|
|
|
+
|
|
|
+.preview-container {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ padding: 80px 60px;
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ padding: 60px 40px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ padding: 60px 20px 80px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.preview-close {
|
|
|
+ position: absolute;
|
|
|
+ top: 20px;
|
|
|
+ right: 20px;
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: rgba(255, 255, 255, 0.1);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ border: 2px solid rgba(255, 255, 255, 0.2);
|
|
|
+ color: #ffffff;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: all 0.2s;
|
|
|
+ z-index: 10;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 26px;
|
|
|
+ line-height: 1;
|
|
|
+ font-weight: 300;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(239, 68, 68, 0.9);
|
|
|
+ border-color: rgba(239, 68, 68, 1);
|
|
|
+ transform: scale(1.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ top: 16px;
|
|
|
+ right: 16px;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 22px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.preview-image-large {
|
|
|
+ max-width: 100%;
|
|
|
+ max-height: 100%;
|
|
|
+ object-fit: contain;
|
|
|
+ border-radius: 8px;
|
|
|
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
|
|
+}
|
|
|
+
|
|
|
+.preview-info {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 20px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 16px;
|
|
|
+ padding: 12px 24px;
|
|
|
+ background: rgba(0, 0, 0, 0.8);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ border-radius: 24px;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 14px;
|
|
|
+ max-width: 90%;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ bottom: 16px;
|
|
|
+ padding: 10px 20px;
|
|
|
+ font-size: 13px;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 8px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.preview-name {
|
|
|
+ font-weight: 600;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ max-width: 400px;
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ max-width: 200px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.preview-counter {
|
|
|
+ padding: 4px 12px;
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ border-radius: 12px;
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 12px;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+.preview-nav {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ width: 56px;
|
|
|
+ height: 56px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: rgba(255, 255, 255, 0.1);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ border: 2px solid rgba(255, 255, 255, 0.2);
|
|
|
+ color: #ffffff;
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transition: all 0.2s;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 28px;
|
|
|
+ line-height: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ background: rgba(255, 255, 255, 0.2);
|
|
|
+ border-color: rgba(255, 255, 255, 0.4);
|
|
|
+ transform: translateY(-50%) scale(1.1);
|
|
|
+ }
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: translateY(-50%) scale(0.9);
|
|
|
+ }
|
|
|
+
|
|
|
+ &.prev {
|
|
|
+ left: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.next {
|
|
|
+ right: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 768px) {
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 24px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.prev {
|
|
|
+ left: 16px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.next {
|
|
|
+ right: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @media (max-width: 480px) {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ font-size: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.prev {
|
|
|
+ left: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.next {
|
|
|
+ right: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// ========================================
|
|
|
+// 🎬 删除动画效果 - 提升用户体验
|
|
|
+// ========================================
|
|
|
+
|
|
|
+// 图片卡片删除动画
|
|
|
+.image-card {
|
|
|
+ animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
+ transition: all 0.3s ease;
|
|
|
+
|
|
|
+ // 删除时的动画
|
|
|
+ &.deleting {
|
|
|
+ animation: fadeOutScale 0.3s ease-out forwards;
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ // hover时的微妙放大
|
|
|
+ &:hover:not(.deleting) {
|
|
|
+ transform: translateY(-4px);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 淡入缩放动画(新图片出现)
|
|
|
+@keyframes fadeInScale {
|
|
|
+ from {
|
|
|
+ opacity: 0;
|
|
|
+ transform: scale(0.9);
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ opacity: 1;
|
|
|
+ transform: scale(1);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 淡出缩小动画(删除时)
|
|
|
+@keyframes fadeOutScale {
|
|
|
+ 0% {
|
|
|
+ opacity: 1;
|
|
|
+ transform: scale(1);
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ opacity: 0.5;
|
|
|
+ transform: scale(0.9) rotate(-2deg);
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ opacity: 0;
|
|
|
+ transform: scale(0.7) rotate(-5deg);
|
|
|
+ height: 0;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 删除按钮动画增强
|
|
|
+.delete-btn {
|
|
|
+ transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
+
|
|
|
+ &:active {
|
|
|
+ transform: scale(0.85) rotate(90deg);
|
|
|
+ background: rgba(220, 38, 38, 0.95) !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: scale(1.15);
|
|
|
+ background: rgba(239, 68, 68, 1) !important;
|
|
|
+ box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn-emoji {
|
|
|
+ transition: transform 0.2s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover .btn-emoji {
|
|
|
+ transform: rotate(90deg);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// Toast 提示动画(如果需要自定义)
|
|
|
+@keyframes slideInRight {
|
|
|
+ from {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateX(100%);
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateX(0);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@keyframes slideOutRight {
|
|
|
+ from {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateX(0);
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateX(100%);
|
|
|
+ }
|
|
|
+}
|