859 lines
18 KiB
CSS
859 lines
18 KiB
CSS
/* OpenRouter Image Generator - 自定义样式 */
|
||
|
||
/* 全局样式 */
|
||
:root {
|
||
--primary-color: #667eea;
|
||
--secondary-color: #764ba2;
|
||
--success-color: #28a745;
|
||
--danger-color: #dc3545;
|
||
--warning-color: #ffc107;
|
||
--info-color: #17a2b8;
|
||
--light-color: #f8f9fa;
|
||
--dark-color: #343a40;
|
||
--border-radius: 15px;
|
||
--box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
||
--transition: all 0.3s ease;
|
||
}
|
||
|
||
/* 基础样式重置 */
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||
background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
|
||
min-height: 100vh;
|
||
line-height: 1.6;
|
||
color: var(--dark-color);
|
||
}
|
||
|
||
/* 主容器 */
|
||
.main-container {
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
padding: 20px;
|
||
}
|
||
|
||
/* 卡片样式 */
|
||
.card {
|
||
border: none;
|
||
border-radius: var(--border-radius);
|
||
box-shadow: var(--box-shadow);
|
||
backdrop-filter: blur(10px);
|
||
background: rgba(255, 255, 255, 0.95);
|
||
transition: var(--transition);
|
||
}
|
||
|
||
.card:hover {
|
||
/* transform: translateY(-5px); */
|
||
box-shadow: 0 15px 40px rgba(233, 233, 233, 0.65);
|
||
}
|
||
|
||
.card-header {
|
||
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
|
||
color: white;
|
||
border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
|
||
padding: 20px;
|
||
border: none;
|
||
}
|
||
|
||
.uploaded-image-card{
|
||
max-width: 10rem;
|
||
}
|
||
/* 表单控件样式 */
|
||
.form-control, .form-select {
|
||
border-radius: 10px;
|
||
border: 2px solid #e9ecef;
|
||
padding: 12px;
|
||
transition: var(--transition);
|
||
}
|
||
|
||
.form-control:focus, .form-select:focus {
|
||
border-color: var(--primary-color);
|
||
box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
|
||
outline: none;
|
||
}
|
||
|
||
/* 按钮样式 */
|
||
.btn {
|
||
border-radius: 10px;
|
||
padding: 12px 30px;
|
||
font-weight: 600;
|
||
transition: var(--transition);
|
||
border: none;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
||
color: white;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
|
||
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
|
||
}
|
||
|
||
.btn-success:hover {
|
||
transform: translateY(-2px);
|
||
}
|
||
.btn-outline-primary {
|
||
border: 2px solid var(--primary-color);
|
||
color: var(--primary-color);
|
||
}
|
||
|
||
.btn-outline-primary:hover {
|
||
background: var(--primary-color);
|
||
border-color: var(--primary-color);
|
||
}
|
||
|
||
.btn-outline-danger {
|
||
border: 2px solid var(--danger-color);
|
||
color: var(--danger-color);
|
||
}
|
||
|
||
.btn-outline-danger:hover {
|
||
background: var(--danger-color);
|
||
border-color: var(--danger-color);
|
||
}
|
||
|
||
/* 图像预览样式 */
|
||
.image-preview {
|
||
max-width: 100%;
|
||
border-radius: 10px;
|
||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
||
transition: var(--transition);
|
||
}
|
||
|
||
.image-preview:hover {
|
||
transform: scale(1.05);
|
||
}
|
||
|
||
/* 图像预览区域 */
|
||
#imagePreview {
|
||
max-height: 20rem;
|
||
}
|
||
|
||
/* 拖拽区域样式 */
|
||
#dropZone {
|
||
border: 2px dashed #ccc;
|
||
border-radius: 10px;
|
||
transition: var(--transition);
|
||
cursor: pointer;
|
||
}
|
||
|
||
#dropZone:hover {
|
||
border-color: var(--primary-color);
|
||
background: rgba(102, 126, 234, 0.05);
|
||
}
|
||
|
||
#dropZone.dragover {
|
||
border-color: var(--primary-color);
|
||
background: rgba(102, 126, 234, 0.1);
|
||
}
|
||
|
||
/* 聊天消息样式 */
|
||
.chat-message {
|
||
background: var(--light-color);
|
||
border-radius: 15px;
|
||
padding: 15px;
|
||
margin-bottom: 15px;
|
||
border-left: 4px solid var(--primary-color);
|
||
transition: var(--transition);
|
||
}
|
||
|
||
|
||
.chat-message.user {
|
||
background: #e3f2fd;
|
||
border-left-color: #2196f3;
|
||
}
|
||
|
||
.chat-message.assistant {
|
||
background: #f3e5f5;
|
||
border-left-color: #9c27b0;
|
||
}
|
||
|
||
/* 加载动画 */
|
||
.loading-spinner {
|
||
display: none;
|
||
text-align: center;
|
||
padding: 20px;
|
||
}
|
||
|
||
.spinner-border {
|
||
width: 3rem;
|
||
height: 3rem;
|
||
border-width: 0.3rem;
|
||
}
|
||
|
||
/* 设置面板样式 */
|
||
.settings-panel {
|
||
background: var(--light-color);
|
||
border-radius: 10px;
|
||
padding: 20px;
|
||
margin-bottom: 20px;
|
||
border: 1px solid #e9ecef;
|
||
}
|
||
|
||
/* 图像画廊样式 */
|
||
.image-gallery {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||
gap: 15px;
|
||
margin-top: 20px;
|
||
}
|
||
|
||
.image-item {
|
||
position: relative;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
||
transition: var(--transition);
|
||
}
|
||
|
||
.image-item:hover {
|
||
transform: translateY(-5px);
|
||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
||
}
|
||
|
||
.image-item img {
|
||
width: 100%;
|
||
height: 200px;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.image-overlay {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.7);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
transition: opacity 0.3s;
|
||
}
|
||
|
||
.image-item:hover .image-overlay {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* 移动端触摸设备优化 */
|
||
@media (hover: none) and (pointer: coarse) {
|
||
/* 在触摸设备上,overlay始终可见但透明度较低 */
|
||
.image-overlay {
|
||
opacity: 0.3;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
/* 点击时显示完整overlay */
|
||
.image-item:active .image-overlay,
|
||
.image-item.touched .image-overlay {
|
||
opacity: 1;
|
||
background: rgba(0, 0, 0, 0.8);
|
||
}
|
||
|
||
/* 为触摸设备添加点击提示 */
|
||
.image-item::after {
|
||
content: "轻触显示操作";
|
||
position: absolute;
|
||
bottom: 8px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
background: rgba(0, 0, 0, 0.7);
|
||
color: white;
|
||
padding: 4px 8px;
|
||
border-radius: 12px;
|
||
font-size: 12px;
|
||
opacity: 0.6;
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
}
|
||
|
||
.image-item.touched::after {
|
||
opacity: 0;
|
||
}
|
||
}
|
||
|
||
/* 在小屏幕设备上也应用类似效果 */
|
||
@media (max-width: 768px) {
|
||
.image-overlay {
|
||
opacity: 0.4;
|
||
background: rgba(0, 0, 0, 0.6);
|
||
}
|
||
|
||
.image-item:active .image-overlay,
|
||
.image-item.touched .image-overlay {
|
||
opacity: 1;
|
||
background: rgba(0, 0, 0, 0.8);
|
||
}
|
||
}
|
||
|
||
/* 状态指示器 */
|
||
.status-indicator {
|
||
display: inline-block;
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 50%;
|
||
margin-right: 5px;
|
||
animation: pulse 2s infinite;
|
||
}
|
||
|
||
.status-connected {
|
||
background-color: var(--success-color);
|
||
}
|
||
|
||
.status-disconnected {
|
||
background-color: var(--danger-color);
|
||
}
|
||
|
||
/* 动画效果 */
|
||
@keyframes pulse {
|
||
0% {
|
||
box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
|
||
}
|
||
70% {
|
||
box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
|
||
}
|
||
100% {
|
||
box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
|
||
}
|
||
}
|
||
|
||
@keyframes fadeIn {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(20px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.fade-in {
|
||
animation: fadeIn 0.5s ease-in;
|
||
}
|
||
|
||
/* 响应式设计 */
|
||
@media (max-width: 768px) {
|
||
.main-container {
|
||
padding: 10px;
|
||
}
|
||
|
||
.card {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.image-gallery {
|
||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||
gap: 10px;
|
||
}
|
||
|
||
.btn {
|
||
padding: 10px 20px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.form-control, .form-select {
|
||
padding: 10px;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 480px) {
|
||
.image-gallery {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.settings-panel {
|
||
padding: 15px;
|
||
}
|
||
|
||
.card-header {
|
||
padding: 15px;
|
||
}
|
||
}
|
||
|
||
/* 工具提示样式 */
|
||
.tooltip {
|
||
position: relative;
|
||
display: inline-block;
|
||
}
|
||
|
||
.tooltip .tooltiptext {
|
||
visibility: hidden;
|
||
width: 200px;
|
||
background-color: #555;
|
||
color: #fff;
|
||
text-align: center;
|
||
border-radius: 6px;
|
||
padding: 5px;
|
||
position: absolute;
|
||
z-index: 1;
|
||
bottom: 125%;
|
||
left: 50%;
|
||
margin-left: -100px;
|
||
opacity: 0;
|
||
transition: opacity 0.3s;
|
||
}
|
||
|
||
.tooltip:hover .tooltiptext {
|
||
visibility: visible;
|
||
opacity: 1;
|
||
}
|
||
|
||
/* 滚动条样式 */
|
||
::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
|
||
::-webkit-scrollbar-track {
|
||
background: #f1f1f1;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb {
|
||
background: var(--primary-color);
|
||
border-radius: 10px;
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb:hover {
|
||
background: var(--secondary-color);
|
||
}
|
||
|
||
/* 特殊效果 */
|
||
.glass-effect {
|
||
background: rgba(255, 255, 255, 0.1);
|
||
backdrop-filter: blur(10px);
|
||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.text-gradient {
|
||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
/* 加载骨架屏 */
|
||
.skeleton {
|
||
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
||
background-size: 200% 100%;
|
||
animation: loading 1.5s infinite;
|
||
}
|
||
|
||
@keyframes loading {
|
||
0% {
|
||
background-position: 200% 0;
|
||
}
|
||
100% {
|
||
background-position: -200% 0;
|
||
}
|
||
}
|
||
|
||
/* 图像查看模态框样式 */
|
||
#viewerModalImage {
|
||
max-height: 85vh;
|
||
max-width: 95vw;
|
||
object-fit: contain;
|
||
border-radius: 8px;
|
||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
#viewerModalImage:hover {
|
||
//transform: scale(1.02);
|
||
}
|
||
|
||
/* 全屏模态框样式 */
|
||
.modal-fullscreen .modal-dialog {
|
||
max-width: 100%;
|
||
margin: 0;
|
||
height: 100vh;
|
||
}
|
||
|
||
.modal-fullscreen .modal-content {
|
||
height: 100%;
|
||
border: none;
|
||
border-radius: 0;
|
||
}
|
||
|
||
.modal-fullscreen .modal-body {
|
||
height: calc(100% - 120px);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background-color: #000;
|
||
position: relative;
|
||
}
|
||
|
||
/* 模态框图片触摸优化 */
|
||
#viewerModalImage {
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-ms-user-select: none;
|
||
touch-action: pan-x pan-y;
|
||
cursor: grab;
|
||
}
|
||
|
||
#viewerModalImage:active {
|
||
cursor: grabbing;
|
||
}
|
||
|
||
/* 翻页按钮样式 */
|
||
#prevImageBtn, #nextImageBtn {
|
||
width: 50px;
|
||
height: 50px;
|
||
border-radius: 50%;
|
||
opacity: 0.7;
|
||
transition: opacity 0.3s ease;
|
||
z-index: 10;
|
||
}
|
||
|
||
#prevImageBtn:hover, #nextImageBtn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
#prevImageBtn {
|
||
left: 20px;
|
||
}
|
||
|
||
#nextImageBtn {
|
||
right: 20px;
|
||
}
|
||
|
||
/* 暗色背景下的按钮样式 */
|
||
.modal-fullscreen .modal-body .btn-light {
|
||
background-color: rgba(255, 255, 255, 0.2);
|
||
border-color: rgba(255, 255, 255, 0.3);
|
||
color: white;
|
||
}
|
||
|
||
.modal-fullscreen .modal-body .btn-light:hover {
|
||
background-color: rgba(255, 255, 255, 0.3);
|
||
border-color: rgba(255, 255, 255, 0.5);
|
||
color: white;
|
||
}
|
||
|
||
/* 触摸反馈 */
|
||
.modal-fullscreen .modal-body .btn-light:active {
|
||
transform: scale(0.95);
|
||
}
|
||
|
||
/* 移动端响应式样式 */
|
||
@media (max-width: 768px) {
|
||
.modal-fullscreen .modal-body .btn-light {
|
||
width: 40px;
|
||
height: 40px;
|
||
font-size: 16px;
|
||
}
|
||
|
||
#prevImageBtn {
|
||
left: 10px;
|
||
}
|
||
|
||
#nextImageBtn {
|
||
right: 10px;
|
||
}
|
||
|
||
/* 为触摸设备优化图片显示 */
|
||
#viewerModalImage {
|
||
touch-action: manipulation;
|
||
}
|
||
}
|
||
|
||
/* 图像查看模态框特定样式 */
|
||
#imageViewerModal .modal-content {
|
||
border-radius: 15px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
#imageViewerModal .modal-header {
|
||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
||
color: white;
|
||
border: none;
|
||
}
|
||
|
||
#imageViewerModal .modal-header .btn-close {
|
||
filter: invert(1);
|
||
opacity: 0.8;
|
||
}
|
||
|
||
#imageViewerModal .modal-header .btn-close:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
#imageViewerModal .modal-footer {
|
||
background: rgba(0, 0, 0, 0.05);
|
||
border: none;
|
||
}
|
||
|
||
/* 按钮网格布局 - 2排2列 */
|
||
.btn-grid {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 5px;
|
||
}
|
||
|
||
.btn-grid-row {
|
||
display: flex;
|
||
gap: 5px;
|
||
}
|
||
|
||
.btn-grid-row .btn {
|
||
flex: 1;
|
||
min-width: 0;
|
||
min-height: 36px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 移动端按钮优化 */
|
||
@media (max-width: 768px) {
|
||
.btn-grid {
|
||
gap: 8px;
|
||
}
|
||
|
||
.btn-grid-row {
|
||
gap: 8px;
|
||
}
|
||
|
||
.btn-grid-row .btn {
|
||
min-height: 44px; /* 增加触摸目标大小 */
|
||
font-size: 16px;
|
||
padding: 8px;
|
||
}
|
||
}
|
||
|
||
/* 触摸设备专用样式 */
|
||
@media (hover: none) and (pointer: coarse) {
|
||
.btn-grid-row .btn {
|
||
min-height: 48px; /* 更大的触摸目标 */
|
||
font-size: 18px;
|
||
padding: 10px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.btn-grid-row .btn:active {
|
||
transform: scale(0.95);
|
||
opacity: 0.8;
|
||
}
|
||
}
|
||
|
||
/* 错误状态 */
|
||
.error-state {
|
||
border-color: var(--danger-color) !important;
|
||
background-color: rgba(220, 53, 69, 0.1) !important;
|
||
}
|
||
|
||
/* 成功状态 */
|
||
.success-state {
|
||
border-color: var(--success-color) !important;
|
||
background-color: rgba(40, 167, 69, 0.1) !important;
|
||
}
|
||
|
||
/* 占位图像样式 */
|
||
.image-placeholder {
|
||
position: relative;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
||
transition: var(--transition);
|
||
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
||
border: 2px dashed #dee2e6;
|
||
}
|
||
|
||
.image-placeholder:hover {
|
||
transform: translateY(-5px);
|
||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
||
}
|
||
|
||
.image-placeholder-content {
|
||
width: 100%;
|
||
height: 200px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: #6c757d;
|
||
}
|
||
|
||
.image-placeholder-icon {
|
||
font-size: 3rem;
|
||
margin-bottom: 10px;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.image-placeholder-text {
|
||
font-size: 0.9rem;
|
||
text-align: center;
|
||
padding: 0 10px;
|
||
}
|
||
|
||
.image-placeholder-spinner {
|
||
position: absolute;
|
||
top: 10px;
|
||
right: 10px;
|
||
width: 20px;
|
||
height: 20px;
|
||
border: 2px solid #f3f3f3;
|
||
border-top: 2px solid var(--primary-color);
|
||
border-radius: 50%;
|
||
animation: spin 1s linear infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}
|
||
|
||
/* 批量生成状态指示器 */
|
||
.batch-status {
|
||
position: fixed;
|
||
top: 20px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
background: rgba(0, 0, 0, 0.8);
|
||
color: white;
|
||
padding: 10px 20px;
|
||
border-radius: 25px;
|
||
z-index: 9999;
|
||
display: none;
|
||
}
|
||
|
||
.batch-status.show {
|
||
display: block;
|
||
animation: slideDown 0.3s ease-out;
|
||
}
|
||
|
||
@keyframes slideDown {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateX(-50%) translateY(-20px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateX(-50%) translateY(0);
|
||
}
|
||
}
|
||
|
||
/* 图像生成模块样式 */
|
||
.image-generation-module {
|
||
background: var(--light-color);
|
||
border-radius: 10px;
|
||
padding: 20px;
|
||
margin-bottom: 20px;
|
||
border: 1px solid #e9ecef;
|
||
}
|
||
|
||
.image-generation-module .input-group {
|
||
margin-bottom: 15px;
|
||
}
|
||
|
||
.image-generation-module .btn {
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.image-generation-module .text-muted {
|
||
font-size: 0.85rem;
|
||
margin-top: 5px;
|
||
}
|
||
|
||
/* 确保按钮在移动设备上也能正确显示 */
|
||
@media (max-width: 768px) {
|
||
.image-generation-module .btn {
|
||
padding: 10px 15px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.image-generation-module .input-group-text {
|
||
font-size: 14px;
|
||
}
|
||
}
|
||
|
||
/* Accordion 样式定制 */
|
||
.accordion {
|
||
border-radius: var(--border-radius);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.accordion-item {
|
||
border: none;
|
||
margin-bottom: 1px;
|
||
}
|
||
|
||
.accordion-button {
|
||
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
|
||
color: white;
|
||
font-weight: 600;
|
||
border: none;
|
||
padding: 15px 20px;
|
||
border-radius: 0;
|
||
}
|
||
|
||
.accordion-button:not(.collapsed) {
|
||
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
|
||
color: white;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.accordion-button:focus {
|
||
box-shadow: none;
|
||
border: none;
|
||
}
|
||
|
||
.accordion-button::after {
|
||
filter: invert(1);
|
||
}
|
||
|
||
.accordion-body {
|
||
background: rgba(255, 255, 255, 0.95);
|
||
padding: 10px;
|
||
}
|
||
|
||
.accordion-item:first-of-type .accordion-button {
|
||
border-top-left-radius: var(--border-radius);
|
||
border-top-right-radius: var(--border-radius);
|
||
}
|
||
|
||
.accordion-item:last-of-type .accordion-button.collapsed {
|
||
border-bottom-left-radius: var(--border-radius);
|
||
border-bottom-right-radius: var(--border-radius);
|
||
}
|
||
|
||
.accordion-item:last-of-type .accordion-collapse {
|
||
border-bottom-left-radius: var(--border-radius);
|
||
border-bottom-right-radius: var(--border-radius);
|
||
}
|
||
|
||
/* 聊天消息操作按钮 */
|
||
.message-actions {
|
||
opacity: 0;
|
||
transition: opacity 0.3s ease;
|
||
}
|
||
|
||
.chat-message:hover .message-actions {
|
||
opacity: 1;
|
||
}
|
||
|
||
.message-actions .btn {
|
||
padding: 4px 8px;
|
||
font-size: 0.75rem;
|
||
border-radius: 6px;
|
||
min-width: 32px;
|
||
}
|
||
|
||
.message-actions .btn:hover {
|
||
transform: translateY(-1px);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.message-content {
|
||
word-break: break-word;
|
||
line-height: 1.5;
|
||
}
|