/* 从原始 style.css 复制的全局样式 */ :root { /* 亮色模式 */ --primary-color: #667eea; --secondary-color: #764ba2; --accent-color: #f093fb; --success-color: #10b981; --warning-color: #f59e0b; --error-color: #ef4444; --surface-color: rgba(255, 255, 255, 0.95); --glass-color: rgba(255, 255, 255, 0.1); --glass-strong-color: rgba(255, 255, 255, 0.95); --text-primary: #1f2937; --text-secondary: #6b7280; --border-color: rgba(255, 255, 255, 0.2); --bg-gradient-start: #667eea; --bg-gradient-mid: #764ba2; --bg-gradient-end: #f093fb; --input-bg: rgba(255, 255, 255, 0.9); --input-border: rgba(209, 213, 219, 0.8); --modal-bg: rgba(0, 0, 0, 0.4); --table-bg: rgba(255, 255, 255, 0.95); --table-hover: rgba(102, 126, 234, 0.05); } .dark { /* 暗黑模式 */ --primary-color: #818cf8; --secondary-color: #a78bfa; --accent-color: #c084fc; --success-color: #10b981; --warning-color: #f59e0b; --error-color: #ef4444; --surface-color: rgba(31, 41, 55, 0.95); --glass-color: rgba(0, 0, 0, 0.2); --glass-strong-color: rgba(31, 41, 55, 0.95); --text-primary: #f3f4f6; --text-secondary: #9ca3af; --border-color: rgba(75, 85, 99, 0.3); --bg-gradient-start: #1f2937; --bg-gradient-mid: #374151; --bg-gradient-end: #4b5563; --input-bg: rgba(31, 41, 55, 0.9); --input-border: rgba(75, 85, 99, 0.5); --modal-bg: rgba(0, 0, 0, 0.6); --table-bg: rgba(31, 41, 55, 0.95); --table-hover: rgba(129, 140, 248, 0.1); } /* 优化后的transition - 避免布局跳动 */ button, input, select, textarea { transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; } /* 颜色和背景过渡 */ .transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient( 135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100% ); background-attachment: fixed; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text-primary); transition: background 0.3s ease, color 0.3s ease; } body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 80%, rgba(240, 147, 251, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.2) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.1) 0%, transparent 50%); pointer-events: none; z-index: -1; } .glass { background: var(--glass-color); /* 降低模糊强度 */ backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-color); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); transition: background-color 0.3s ease, border-color 0.3s ease; } .dark .glass { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05); } .glass-strong { background: var(--glass-strong-color); /* 降低模糊强度 */ /* 移除模糊效果 */ border: 1px solid var(--border-color); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transition: background-color 0.3s ease, border-color 0.3s ease; } .dark .glass-strong { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.05); } .tab-btn { position: relative; overflow: hidden; border-radius: 12px; font-weight: 500; letter-spacing: 0.025em; } .tab-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .tab-btn:hover::before { left: 100%; } .tab-btn.active { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3), 0 4px 6px -2px rgba(102, 126, 234, 0.05); transform: translateY(-1px); } /* 按钮样式 */ .btn { font-weight: 500; border-radius: 12px; border: none; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; letter-spacing: 0.025em; } .btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.3s ease, height 0.3s ease; } .btn:active::before { width: 300px; height: 300px; } .btn-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3), 0 4px 6px -2px rgba(102, 126, 234, 0.05); } .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 25px -5px rgba(102, 126, 234, 0.3), 0 10px 10px -5px rgba(102, 126, 234, 0.1); } .btn-success { background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%); color: white; box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.05); } .btn-success:hover { transform: translateY(-1px); box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.3), 0 10px 10px -5px rgba(16, 185, 129, 0.1); } .btn-danger { background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%); color: white; box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -2px rgba(239, 68, 68, 0.05); } .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.3), 0 10px 10px -5px rgba(239, 68, 68, 0.1); } /* 表单输入框样式 */ .form-input { background: var(--input-bg); border: 2px solid var(--input-border); border-radius: 12px; padding: 16px; font-size: 16px; color: var(--text-primary); transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; /* 移除模糊效果 */ } .form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.95); color: #1f2937; } .dark .form-input:focus { box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.2); background: rgba(17, 24, 39, 0.95); color: #f3f4f6; } .card { background: var(--surface-color); border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); overflow: hidden; position: relative; transition: background-color 0.3s ease, border-color 0.3s ease; } .dark .card { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.1); } .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); } .stat-card { background: linear-gradient(135deg, var(--surface-color) 0%, var(--glass-strong-color) 100%); border-radius: 20px; border: 1px solid var(--border-color); padding: 24px; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; } .dark .stat-card { background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.8) 100%); } .stat-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s ease; } .stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .stat-card:hover::before { opacity: 1; } .stat-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } .btn { font-weight: 500; border-radius: 12px; border: none; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; letter-spacing: 0.025em; } .btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.3s ease, height 0.3s ease; } .btn:active::before { width: 300px; height: 300px; } .btn-primary { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3), 0 4px 6px -2px rgba(102, 126, 234, 0.05); } .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 25px -5px rgba(102, 126, 234, 0.3), 0 10px 10px -5px rgba(102, 126, 234, 0.1); } .btn-success { background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%); color: white; box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.05); } .btn-success:hover { transform: translateY(-1px); box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.3), 0 10px 10px -5px rgba(16, 185, 129, 0.1); } .btn-danger { background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%); color: white; box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -2px rgba(239, 68, 68, 0.05); } .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.3), 0 10px 10px -5px rgba(239, 68, 68, 0.1); } .form-input { background: var(--input-bg); border: 2px solid var(--input-border); border-radius: 12px; padding: 16px; font-size: 16px; color: var(--text-primary); transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; /* 移除模糊效果 */ } .form-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1); background: rgba(255, 255, 255, 0.95); color: #1f2937; } .dark .form-input:focus { box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.2); background: rgba(17, 24, 39, 0.95); color: #f3f4f6; } .table-container { background: var(--table-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transition: background-color 0.3s ease; } .dark .table-container { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.1); } .table-row { transition: background-color 0.2s ease, transform 0.2s ease; } .table-row:hover { background: var(--table-hover); transform: scale(1.005); } .modal { /* 移除模糊效果 */ background: var(--modal-bg); transition: background-color 0.3s ease; } .modal-content { background: white; border-radius: 24px; border: 1px solid rgba(229, 231, 235, 0.8); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05); /* 移除模糊效果 */ transition: background-color 0.3s ease, border-color 0.3s ease; } .dark .modal-content { background: #1f2937; border: 1px solid rgba(75, 85, 99, 0.5); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02); } .header-title { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; letter-spacing: -0.025em; } .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top: 2px solid white; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; } .fade-enter-from, .fade-leave-to { opacity: 0; } .slide-up-enter-active, .slide-up-leave-active { transition: all 0.3s ease; } .slide-up-enter-from { opacity: 0; transform: translateY(30px); } .slide-up-leave-to { opacity: 0; transform: translateY(-30px); } .toast { position: fixed; top: 80px; right: 20px; z-index: 1000; min-width: 320px; max-width: 500px; transform: translateX(100%); transition: transform 0.3s ease-in-out; } .toast.show { transform: translateX(0); } .toast-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: 1px solid rgba(16, 185, 129, 0.3); } .toast-error { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; border: 1px solid rgba(239, 68, 68, 0.3); } .toast-info { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; border: 1px solid rgba(59, 130, 246, 0.3); } .toast-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; border: 1px solid rgba(245, 158, 11, 0.3); } [v-cloak] { display: none; } /* 自定义滚动条样式 */ .custom-scrollbar { scrollbar-width: thin; scrollbar-color: rgba(102, 126, 234, 0.3) rgba(102, 126, 234, 0.05); } .dark .custom-scrollbar { scrollbar-color: rgba(129, 140, 248, 0.3) rgba(129, 140, 248, 0.05); } .custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; } .custom-scrollbar::-webkit-scrollbar-track { background: rgba(102, 126, 234, 0.05); border-radius: 10px; } .dark .custom-scrollbar::-webkit-scrollbar-track { background: rgba(129, 140, 248, 0.05); } .custom-scrollbar::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%); border-radius: 10px; transition: background 0.3s ease; } .dark .custom-scrollbar::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(129, 140, 248, 0.4) 0%, rgba(167, 139, 250, 0.4) 100%); } .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%); } .dark .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(129, 140, 248, 0.6) 0%, rgba(167, 139, 250, 0.6) 100%); } .custom-scrollbar::-webkit-scrollbar-thumb:active { background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%); } .dark .custom-scrollbar::-webkit-scrollbar-thumb:active { background: linear-gradient(135deg, rgba(129, 140, 248, 0.8) 0%, rgba(167, 139, 250, 0.8) 100%); } /* 弹窗滚动内容样式 */ .modal-scroll-content { max-height: calc(90vh - 160px); overflow-y: auto; padding-right: 8px; } @media (max-width: 768px) { .glass, .glass-strong { margin: 16px; border-radius: 20px; } .stat-card { padding: 16px; } .tab-btn { font-size: 14px; padding: 12px 8px; } .modal-scroll-content { max-height: calc(85vh - 120px); } } /* 版本更新提醒动画 */ @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } } .animate-pulse { /* 移除无限脉冲动画,改为 hover 效果 */ transition: transform 0.2s ease; } .animate-pulse:hover { animation: pulse 0.3s ease; } /* 用户菜单下拉框优化 */ .user-menu-dropdown { min-width: 240px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } /* Tab 内容区域样式 */ .tab-content { animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }