Files
zlqy/static/css/style.css
2026-03-05 12:57:55 +08:00

723 lines
16 KiB
CSS

/* 自定义样式 */
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background-attachment: fixed;
}
/* 科幻背景动画 */
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
@keyframes glow-pulse {
0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
}
@keyframes shimmer {
0% { background-position: -1000px 0; }
100% { background-position: 1000px 0; }
}
/* 高级卡片样式 */
.futuristic-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.futuristic-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.futuristic-card-dark {
background: rgba(15, 23, 42, 0.85);
backdrop-filter: blur(20px);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.futuristic-card-dark:hover {
transform: translateY(-8px);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
border-color: rgba(59, 130, 246, 0.5);
}
/* 自定义滚动条 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgba(148, 163, 184, 0.4);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(148, 163, 184, 0.7);
}
/* 高级玻璃拟态效果 */
.glass-panel {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.6);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.glass-panel-dark {
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
/* 高级阴影与悬浮动效 */
.hover-card-up {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-card-up:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.hover-glow {
transition: all 0.3s ease;
}
.hover-glow:hover {
box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
/* 文本渐变发光 */
.text-gradient-glow {
background-clip: text;
-webkit-background-clip: text;
color: transparent;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
/* 渐变动画边框 */
.animated-border {
position: relative;
border-radius: inherit;
}
.animated-border::before {
content: "";
position: absolute;
inset: -2px;
border-radius: inherit;
background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
background-size: 200% 200%;
animation: gradient-move 3s linear infinite;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}
.animated-border:hover::before {
opacity: 1;
}
@keyframes gradient-move {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* 背景流动网格 */
.bg-grid-pattern {
background-size: 40px 40px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}
.bg-grid-pattern-dark {
background-size: 40px 40px;
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
/* 通用过渡动画 */
.transition-all-200 {
transition: all 0.2s ease-in-out;
}
.transition-all-300 {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 拖拽排序 */
.question-item {
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.question-item[draggable="true"]:hover {
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.question-item.dragging {
opacity: 0.5;
}
.drag-handle {
font-size: 18px;
line-height: 1;
user-select: none;
}
.drag-handle:active {
cursor: grabbing;
}
/* 选项选中高亮 */
.option-label:has(input:checked) {
border-color: #3b82f6;
background-color: #eff6ff;
}
/* 计时器闪烁 */
@keyframes timer-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: timer-pulse 1s ease-in-out infinite;
}
/* 题号导航按钮 */
#nav-panel button,
#nav-panel-mobile button {
transition: all 0.15s ease;
}
/* 进度条动画 */
#progress-bar {
transition: width 0.3s ease;
}
/* 批改页面底部栏 */
.sticky.bottom-4 {
backdrop-filter: blur(8px);
background-color: rgba(255,255,255,0.95);
}
/* 提交列表左侧颜色条 */
.border-l-4.border-l-green-400 {
border-left: 4px solid #4ade80;
}
.border-l-4.border-l-yellow-400 {
border-left: 4px solid #facc15;
}
/* 快速给分按钮 */
button[onclick^="quickScore"] {
transition: all 0.1s ease;
}
button[onclick^="quickScore"]:active {
transform: scale(0.95);
}
/* 响应式优化 */
@media (max-width: 640px) {
.sticky.top-0 {
position: sticky;
top: 0;
}
#nav-panel-mobile {
max-height: 120px;
overflow-y: auto;
}
}
/* 高级按钮样式 */
.btn-futuristic {
position: relative;
overflow: hidden;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
border-radius: 16px;
padding: 14px 32px;
color: white;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.btn-futuristic:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}
.btn-futuristic::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s;
}
.btn-futuristic:hover::before {
left: 100%;
}
.btn-outline-futuristic {
background: transparent;
border: 2px solid rgba(102, 126, 234, 0.5);
color: #667eea;
border-radius: 16px;
padding: 12px 30px;
font-weight: 600;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.btn-outline-futuristic:hover {
background: rgba(102, 126, 234, 0.1);
border-color: #667eea;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
/* 输入框样式 */
.input-futuristic {
background: rgba(255, 255, 255, 0.9);
border: 2px solid rgba(102, 126, 234, 0.2);
border-radius: 12px;
padding: 12px 16px;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.input-futuristic:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
background: rgba(255, 255, 255, 1);
}
/* 导航栏样式 */
.navbar-futuristic {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(102, 126, 234, 0.1);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
/* 标签样式 */
.badge-futuristic {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 6px 14px;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 6px;
box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}
.badge-outline-futuristic {
background: transparent;
border: 2px solid rgba(102, 126, 234, 0.5);
color: #667eea;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 600;
}
/* 分隔线 */
.divider-futuristic {
height: 2px;
background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
margin: 2rem 0;
}
/* 加载动画 */
.loading-spinner {
width: 50px;
height: 50px;
border: 4px solid rgba(102, 126, 234, 0.2);
border-top-color: #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* 通知提示 */
.notification-futuristic {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-left: 4px solid #667eea;
border-radius: 12px;
padding: 16px 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* 表格样式 */
.table-futuristic {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.table-futuristic thead {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.table-futuristic tbody tr {
border-bottom: 1px solid rgba(102, 126, 234, 0.1);
transition: all 0.2s ease;
}
.table-futuristic tbody tr:hover {
background: rgba(102, 126, 234, 0.05);
}
/* 模态框样式 */
.modal-futuristic {
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(30px);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
/* 进度条 */
.progress-futuristic {
height: 8px;
background: rgba(102, 126, 234, 0.2);
border-radius: 10px;
overflow: hidden;
}
.progress-bar-futuristic {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 10px;
transition: width 0.3s ease;
box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}
/* 工具提示 */
.tooltip-futuristic {
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(10px);
color: white;
padding: 8px 12px;
border-radius: 8px;
font-size: 0.875rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
/* 头像样式 */
.avatar-futuristic {
border: 3px solid rgba(102, 126, 234, 0.5);
border-radius: 50%;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
transition: all 0.3s ease;
}
.avatar-futuristic:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
/* 侧边栏 */
.sidebar-futuristic {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-right: 1px solid rgba(102, 126, 234, 0.1);
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}
/* 页脚 */
.footer-futuristic {
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(20px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.8);
}
/* 聊天界面优化 */
#messageArea {
overflow-y: auto !important;
overflow-x: hidden;
scroll-behavior: smooth;
display: flex;
flex-direction: column;
}
#messageArea::-webkit-scrollbar {
width: 8px;
}
#messageArea::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.3);
border-radius: 4px;
}
#messageArea::-webkit-scrollbar-thumb {
background: rgba(59, 130, 246, 0.5);
border-radius: 4px;
}
#messageArea::-webkit-scrollbar-thumb:hover {
background: rgba(59, 130, 246, 0.7);
}
/* 聊天视图布局修复 */
#chatView {
height: 100%;
max-height: 100%;
}
#chatView.flex {
display: flex !important;
flex-direction: column !important;
}
#chatView.hidden {
display: none !important;
}
/* 确保输入框始终在底部 */
#chatView > div:last-child {
margin-top: auto;
}
/* 左侧面板滚动优化 */
#roomList::-webkit-scrollbar,
#chatNotifPanel::-webkit-scrollbar {
width: 6px;
}
#roomList::-webkit-scrollbar-track,
#chatNotifPanel::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.2);
}
#roomList::-webkit-scrollbar-thumb,
#chatNotifPanel::-webkit-scrollbar-thumb {
background: rgba(59, 130, 246, 0.4);
border-radius: 3px;
}
/* 移除hide-scrollbar在聊天区域的影响 */
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* 但是消息区域要显示滚动条 */
#messageArea.hide-scrollbar::-webkit-scrollbar {
display: block !important;
width: 8px;
}
.particles-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
}
/* 响应式表格容器 - 解决表格内容显示不全 */
.table-responsive {
width: 100%;
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
}
.table-responsive::-webkit-scrollbar {
height: 10px;
}
.table-responsive::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.3);
border-radius: 5px;
}
.table-responsive::-webkit-scrollbar-thumb {
background: rgba(59, 130, 246, 0.5);
border-radius: 5px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
background: rgba(59, 130, 246, 0.7);
}
/* 表格优化 - 确保内容完整显示 */
.table-futuristic {
min-width: 100%;
white-space: nowrap;
}
.table-futuristic td,
.table-futuristic th {
padding: 12px 16px;
vertical-align: middle;
max-width: none;
}
/* 文字换行优化 */
.text-wrap {
white-space: normal;
word-wrap: break-word;
word-break: break-word;
}
.text-ellipsis-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.text-ellipsis-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
/* 管理后台内容区域优化 */
.admin-content-wrapper {
width: 100%;
max-width: 100%;
overflow-x: hidden;
}
/* 卡片内容区域优化 */
.card-content-scrollable {
max-height: 600px;
overflow-y: auto;
overflow-x: hidden;
}
.card-content-scrollable::-webkit-scrollbar {
width: 8px;
}
.card-content-scrollable::-webkit-scrollbar-track {
background: rgba(15, 23, 42, 0.2);
border-radius: 4px;
}
.card-content-scrollable::-webkit-scrollbar-thumb {
background: rgba(59, 130, 246, 0.4);
border-radius: 4px;
}
/* 移动端优化 */
@media (max-width: 768px) {
.futuristic-card,
.futuristic-card-dark {
border-radius: 16px;
padding: 16px !important;
}
.table-futuristic td,
.table-futuristic th {
padding: 8px 12px;
font-size: 0.875rem;
}
.btn-futuristic,
.btn-outline-futuristic {
padding: 8px 16px;
font-size: 0.875rem;
}
}
/* 图片容器优化 */
.img-container {
width: 100%;
max-width: 100%;
overflow: hidden;
position: relative;
}
.img-container img {
width: 100%;
height: auto;
object-fit: contain;
max-height: 500px;
}
/* 长文本内容优化 */
.content-text {
line-height: 1.8;
word-wrap: break-word;
overflow-wrap: break-word;
}
/* 统计卡片响应式优化 */
@media (max-width: 640px) {
.grid-cols-2 {
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
}
/* 侧边栏响应式优化 */
@media (max-width: 768px) {
.sidebar-futuristic {
position: relative;
width: 100%;
border-right: none;
border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}
}
/* 防止内容溢出 */
.overflow-safe {
overflow: hidden;
text-overflow: ellipsis;
}
/* 弹性容器优化 */
.flex-container-safe {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
/* 网格容器优化 */
.grid-container-safe {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}