* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.app-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    margin-right: 8px;
}

.points-icon {
    font-size: 14px;
}

.points-value {
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.points-label {
    font-size: 11px;
    opacity: 0.9;
}

.top-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}

.top-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Layout */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Node Library */
.node-library {
    width: 200px;
    background: rgba(248, 249, 250, 0.95);
    border-right: 1px solid #f5f5f5;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Floating Customer Service QR Code */
.floating-customer-service {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(224, 224, 224, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

.floating-customer-service.hidden {
    display: none;
}

.floating-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.floating-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.floating-qr-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.floating-qr-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
}


.library-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.library-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.library-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.node-template {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 6px;
    padding: 12px;
    cursor: grab;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    backdrop-filter: blur(10px);
}

.node-template:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.node-template:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.template-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: block;
}

.template-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* 节点库分隔线 */
.library-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(224, 224, 224, 0.8), transparent);
    margin: 8px 0;
    position: relative;
}

.library-separator::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(44, 62, 80, 0.2);
}

/* Canvas Controls */
.canvas-controls {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(224, 224, 224, 0.6);
    border-radius: 24px;
    padding: 8px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 50;
    font-size: 13px;
    user-select: none;
}

.zoom-info {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    text-align: center;
}

.canvas-control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.canvas-control-btn:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
    transform: translateY(-1px);
}

.canvas-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.control-icon {
    font-size: 14px;
    line-height: 1;
}

.control-text {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

/* Zoom Control Panel - 左下角悬浮缩放控制器 */
.zoom-control-panel {
    position: absolute;
    left: 16px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 50;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.zoom-control-panel:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.75);
}

.zoom-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 62, 80, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn svg {
    width: 12px;
    height: 12px;
}

.zoom-btn:hover {
    background: rgba(44, 62, 80, 0.9);
    transform: translateY(-1px);
}

.zoom-btn:active {
    transform: translateY(0) scale(0.95);
}

.zoom-slider-container {
    position: relative;
    width: 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 滑条轨道背景 */
.zoom-slider-container::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 70px;
    background: rgba(120, 120, 120, 0.3);
    border-radius: 2px;
    pointer-events: none;
}

.zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 20px;
    background: transparent;
    transform: rotate(-90deg);
    transform-origin: center center;
    cursor: pointer;
    position: absolute;
    margin: 0;
}

.zoom-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(100, 100, 100, 0.4);
    border-radius: 2px;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: rgba(44, 62, 80, 0.85);
    border-radius: 50%;
    cursor: grab;
    margin-top: -5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.15s ease;
}

.zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.zoom-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

.zoom-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(100, 100, 100, 0.4);
    border-radius: 2px;
}

.zoom-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: rgba(44, 62, 80, 0.85);
    border-radius: 50%;
    border: none;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.zoom-percentage-display {
    font-size: 9px;
    font-weight: 500;
    color: rgba(73, 80, 87, 0.8);
    text-align: center;
    min-width: 28px;
    padding-top: 3px;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
}

/* 升级通知栏 - 悬浮在一键全启动下方 */
.upgrade-notice {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
    white-space: nowrap;
}

.upgrade-notice .notice-text {
    flex: 1;
    text-align: center;
}

.upgrade-notice .notice-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.upgrade-notice .notice-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.workspace {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.canvas {
    position: relative;
    width: 999999px;
    height: 999999px;
    overflow: visible;
    background: #ffffff;
    background-image: radial-gradient(circle, #dddddd 1px, transparent 1px);
    background-size: 20px 20px;
    /* 通过极大的尺寸模拟无限画布 */
}

/* Node resize handle - for result nodes, image-upload nodes and image-matting nodes */
.result-node .resize-handle,
.node[data-node-type="image-upload"] .resize-handle,
.node[data-node-type="image-matting"] .resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 4px 0 6px 0; /* Match node border radius */
    cursor: nw-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(0, 123, 255, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 20;
    user-select: none;
}

.result-node:hover .resize-handle,
.node[data-node-type="image-upload"]:hover .resize-handle,
.node[data-node-type="image-matting"]:hover .resize-handle {
    opacity: 1;
    visibility: visible;
}

.result-node .resize-handle:hover,
.node[data-node-type="image-upload"] .resize-handle:hover,
.node[data-node-type="image-matting"] .resize-handle:hover {
    background: rgba(44, 62, 80, 0.2);
    border-color: rgba(0, 123, 255, 0.5);
    color: rgba(0, 123, 255, 1);
    transform: scale(1.1);
}

/* Node resizing state - for result nodes, image-upload nodes and image-matting nodes */
.result-node.resizing,
.node[data-node-type="image-upload"].resizing,
.node[data-node-type="image-matting"].resizing,
.node.resizing {
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
    transition: none !important; /* Disable all transitions during resizing */
}

.result-node.resizing *,
.node[data-node-type="image-upload"].resizing *,
.node[data-node-type="image-matting"].resizing *,
.node.resizing * {
    transition: none !important; /* Disable transitions on all child elements during resizing */
}

.result-node.resizing .resize-handle,
.node[data-node-type="image-upload"].resizing .resize-handle,
.node[data-node-type="image-matting"].resizing .resize-handle,
.node.resizing .resize-handle {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.7);
    opacity: 1;
    visibility: visible;
    transition: none !important;
}

/* Nodes */
.node {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 280px; /* 默认宽度，可被动态覆盖 */
    min-height: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: move;
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    overflow: visible; /* 改为visible让端口圆点完整显示 */
    padding: 0 10px; /* 添加左右padding为端口预留空间 */
    z-index: 10; /* 确保节点始终在连接线之上 */
}

/* Grok多参视频节点样式 */
.grok-multi-image-video-node {
    width: 460px !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.grok-multi-image-video-node .node-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.grok-multi-image-video-node .node-title {
    color: #fff !important;
}

.grok-multi-image-video-node .node-content {
    background: transparent !important;
}

.grok-multi-image-video-node label {
    color: #fff !important;
}

.grok-multi-image-video-node .grok-image-count {
    color: rgba(255,255,255,0.7) !important;
}

.grok-multi-image-video-node .param-select,
.grok-multi-image-video-node .text-input {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

.grok-multi-image-video-node .param-select option {
    background: #1a1a2e;
    color: #fff;
}

.grok-multi-image-video-node .grok-images-container,
.node.grok-multi-image-video-node .grok-images-container,
.node.grok-multi-image-video-node .node-content .grok-images-container,
div.grok-images-container {
    background: transparent !important;
    border: 2px dashed #333 !important;
    border-color: #333 !important;
    border-style: dashed !important;
}

.grok-multi-image-video-node .grok-add-image-btn,
.node.grok-multi-image-video-node .grok-add-image-btn,
.node.grok-multi-image-video-node .node-content .grok-add-image-btn,
div.grok-add-image-btn {
    background: transparent !important;
    border: 2px dashed #fff !important;
    border-color: #fff !important;
    border-style: dashed !important;
}

.grok-multi-image-video-node .grok-add-image-btn span,
.node.grok-multi-image-video-node .grok-add-image-btn span,
div.grok-add-image-btn span {
    color: #fff !important;
}

/* 入梦2.0多参视频节点样式 */
.seedance-multi-image-video-node {
    width: 460px !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.seedance-multi-image-video-node .node-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.seedance-multi-image-video-node .node-title {
    color: #fff !important;
}

.seedance-multi-image-video-node .node-content {
    background: transparent !important;
}

.seedance-multi-image-video-node label {
    color: #fff !important;
}

.seedance-multi-image-video-node .seedance-image-count {
    color: rgba(255,255,255,0.7) !important;
}

.seedance-multi-image-video-node .param-select,
.seedance-multi-image-video-node .text-input {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

.seedance-multi-image-video-node .param-select option {
    background: #1a1a2e;
    color: #fff;
}

.seedance-multi-image-video-node .seedance-images-container,
.node.seedance-multi-image-video-node .seedance-images-container,
.node.seedance-multi-image-video-node .node-content .seedance-images-container,
div.seedance-images-container {
    background: transparent !important;
    border: 2px dashed #333 !important;
    border-color: #333 !important;
    border-style: dashed !important;
}

.seedance-multi-image-video-node .seedance-add-image-btn,
.node.seedance-multi-image-video-node .seedance-add-image-btn,
.node.seedance-multi-image-video-node .node-content .seedance-add-image-btn,
div.seedance-add-image-btn {
    background: transparent !important;
    border: 2px dashed #fff !important;
    border-color: #fff !important;
    border-style: dashed !important;
}

.seedance-multi-image-video-node .seedance-add-image-btn span,
.node.seedance-multi-image-video-node .seedance-add-image-btn span,
div.seedance-add-image-btn span {
    color: #fff !important;
}

/* 大语言模型节点样式 */
.llm-chat-node {
    width: 360px !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* LLM消息气泡文字可选择样式 */
.llm-message-content {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}

.llm-messages-area {
    user-select: text;
    -webkit-user-select: text;
}

/* LLM文本结果节点样式 - 高级黑底白字设计 */
.llm-result-node {
    width: 360px !important;
    height: auto !important;
    min-height: 100px !important;
    overflow: visible !important;
    background: #1a1a2e !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.llm-result-node .node-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 16px !important;
}

.llm-result-node .node-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.llm-result-node .node-minimize-btn,
.llm-result-node .node-close-btn {
    color: rgba(255, 255, 255, 0.6) !important;
    background: transparent !important;
    border: none !important;
}

.llm-result-node .node-minimize-btn:hover,
.llm-result-node .node-close-btn:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.llm-result-node .llm-result-content {
    position: relative;
    padding: 0;
}

.llm-result-node .llm-result-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 450px;
    overflow-y: auto;
    background: transparent;
    padding: 16px 20px 50px 20px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* 自定义滚动条 */
.llm-result-node .llm-result-text::-webkit-scrollbar {
    width: 6px;
}

.llm-result-node .llm-result-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.llm-result-node .llm-result-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.llm-result-node .llm-result-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 文字可编辑状态 */
.llm-result-node .llm-result-text:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.03);
}

.llm-result-node .llm-result-text::selection {
    background: rgba(102, 126, 234, 0.4);
    color: white;
}

/* 复制按钮 - 悬浮右下角 */
.llm-result-node .llm-copy-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 14px;
    background: #16213e !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.llm-result-node .llm-copy-btn:hover {
    background: #1a2a4e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 清除对话按钮 hover 效果 */
.llm-clear-btn:hover {
    background: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* 视频首尾帧节点样式 - 确保高度正确包裹所有内容 */
.video-first-last-frame-node {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* 图生视频节点样式 - 确保高度根据内容自适应 */
.image-to-video-node {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* 文生视频节点样式 - 确保高度根据内容自适应 */
.text-to-video-node {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* 智能画布节点特殊样式 - 动态尺寸 */
.smart-canvas-node {
    /* width 由JavaScript动态设置，不在CSS中固定 */
    min-height: 520px !important;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 智能画布节点的hover效果 */
.smart-canvas-node:hover {
    border-color: #2c3e50 !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
}

/* 智能画布节点的选中效果 */
.smart-canvas-node.selected {
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important;
    transform: scale(1.02);
}

/* 智能扩图节点样式 - 动态尺寸自适应 */
.smart-outpaint-node {
    width: auto !important;
    min-width: 300px;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

.smart-outpaint-node .node-content {
    height: auto !important;
    overflow: visible !important;
}

.smart-outpaint-node .smart-outpaint-container {
    width: 100% !important;
    box-sizing: border-box;
}

.smart-outpaint-node .outpaint-canvas-area {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 智能扩图节点hover效果 */
.smart-outpaint-node:hover {
    border-color: #2c3e50 !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
}

/* 智能扩图节点选中效果 */
.smart-outpaint-node.selected {
    border-color: #2c3e50 !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important;
}

/* 护眼模式下的智能扩图节点 */
body.eye-care-mode .smart-outpaint-node {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .smart-outpaint-node .node-content {
    background: #2a2a2a !important;
}

body.eye-care-mode .smart-outpaint-node .node-header {
    background: linear-gradient(135deg, #141414, #1a1a1a) !important;
    border-bottom-color: #1f1f1f !important;
}

/* 智能画布节点的多个输入端口 */
.node-multiple-inputs {
    position: absolute;
    left: -15px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 60px 0 80px 0; /* 避开头部和底部操作栏 */
}

.input-port-group {
    position: relative;
    display: flex;
    align-items: center;
}

.blue-port {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #2c3e50 !important;
    border: 2px solid #34495e !important;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blue-port:hover {
    background: #34495e !important;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.8);
}

.port-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #2c3e50;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.2);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 苹果风格加载按钮样式 */
.apple-button {
    background: #2c3e50 !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.3) !important;
}

.apple-button:hover:not(:disabled) {
    background: #34495e !important;
    transform: translateY(-0.5px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4) !important;
}

.apple-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.3) !important;
}

.apple-button:disabled {
    background: #C7C7CC !important;
    color: #8E8E93 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* 结果节点特殊样式 - 允许内容驱动高度 */
.result-node {
    height: auto !important;
    min-height: auto !important;
    max-width: none !important; /* 允许结果节点放大，不受通用max-width限制 */
    border-radius: 8px !important; /* 确保结果节点保持统一圆角 */
    overflow: visible !important; /* 改为visible，避免端口被裁切导致的hover问题 */
    padding: 0 !important; /* 移除结果节点的左右padding，消除白边 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* 加强阴影效果 */
    border: 1px solid #f5f5f5 !important; /* 添加更明显的边框 */
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important; /* 只对阴影和边框做过渡 */
}

/* 精确移除结果节点内容区域的白边，但保留端口样式 */
.result-node .node-content,
.result-node .result-image,
.result-node .result-video,
.result-node .result-content,
.result-node .node-result,
.result-node .result-simple,
.result-node .result-image-container,
.result-node .result-video-container {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 0 8px 8px !important; /* 保留底部圆角，配合节点整体圆角 */
    box-shadow: none !important;
    background: transparent !important;
    overflow: hidden !important; /* 内容区域保持hidden确保圆角效果 */
}

/* 结果节点的内容区域需要特殊处理，确保图片贴边 */
.result-node .node-content {
    margin: 0 !important; /* 覆盖通用的负边距 */
}

/* 但是保留必要的头部样式，并调整padding补偿 */
.result-node .node-header {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
    border-radius: 6px 6px 0 0 !important;
    margin: 0 !important;
}

/* 确保端口样式正常显示，并调整位置 */
.result-node .input-port,
.result-node .output-port {
    width: 18px !important;
    height: 18px !important;
    background: #2c3e50 !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3) !important;
    z-index: 50 !important; /* 降低层级避免干扰hover检测 */
    pointer-events: auto !important; /* 确保端口可以接收事件 */
}

.result-node .node-input,
.result-node .node-output {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 50 !important; /* 与端口保持一致 */
}

.result-node .node-input {
    left: 0 !important;
}

.result-node .node-output {
    right: 0 !important;
}

.result-node .input-port {
    left: -9px !important;
}

.result-node .output-port {
    right: -9px !important;
}

.node:hover {
    border-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

/* 结果节点特殊的hover效果 - 覆盖通用样式 */
.result-node:hover {
    border-color: #007bff !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(44, 62, 80, 0.2) !important; /* 稳定的阴影效果 */
    transition: box-shadow 0.15s ease, border-color 0.15s ease !important; /* 很短的过渡时间 */
}

.node.dragging {
    transition: none;
    transform-origin: 0 0;
    z-index: 100; /* 拖拽时提高层级 */
}

/* 节点在分组拖拽时也禁用过渡 */
.node.group-dragging {
    transition: none !important;
    z-index: 99; /* 略低于单独拖拽的节点 */
}

/* 结果节点在分组拖拽时也禁用过渡 - 修复闪烁问题 */
.result-node.group-dragging {
    transition: none !important;
}

/* Node Group Container Styles - 节点分组容器样式 */
.node-group {
    position: absolute;
    background: rgba(100, 150, 255, 0.08); /* 半透明蓝色背景 */
    border: 2px dashed rgba(100, 150, 255, 0.4); /* 虚线边框 */
    border-radius: 12px;
    min-width: 400px;
    min-height: 300px;
    padding: 20px; /* 标题在外面，所以四周padding一致 */
    box-shadow: 0 2px 12px rgba(100, 150, 255, 0.15);
    cursor: move;
    transition: all 0.2s ease;
    z-index: 5; /* 确保在普通节点下层但在画布之上 */
    backdrop-filter: blur(2px);
    pointer-events: none; /* 允许鼠标事件穿透到下层连线 */
    user-select: none; /* 禁用文本选择 */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
}

/* 节点分组拖拽边框 - 四边独立的可拖拽区域 */
.node-group-drag-frame {
    position: absolute;
    pointer-events: auto; /* 边框区域可以接收鼠标事件用于拖拽 */
    cursor: move;
    z-index: 1;
    background: transparent;
}

.node-group-drag-frame:hover {
    background: rgba(100, 150, 255, 0.15);
}

/* 上边框 */
.node-group-drag-frame-top {
    top: -15px;
    left: -15px;
    right: -15px;
    height: 20px;
    border-radius: 12px 12px 0 0;
}

/* 下边框 */
.node-group-drag-frame-bottom {
    bottom: -15px;
    left: -15px;
    right: -15px;
    height: 20px;
    border-radius: 0 0 12px 12px;
}

/* 左边框 */
.node-group-drag-frame-left {
    top: 5px;
    bottom: 5px;
    left: -15px;
    width: 20px;
}

/* 右边框 */
.node-group-drag-frame-right {
    top: 5px;
    bottom: 5px;
    right: -15px;
    width: 20px;
}

.node-group:hover {
    background: rgba(100, 150, 255, 0.12);
    border-color: rgba(100, 150, 255, 0.6);
    box-shadow: 0 4px 16px rgba(100, 150, 255, 0.25);
}

.node-group.dragging {
    transition: none;
    z-index: 8; /* 拖拽时保持在节点下层(节点z-index为10) */
    opacity: 0.8;
}

.node-group.selected {
    border-color: rgba(100, 150, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.2);
    background: rgba(100, 150, 255, 0.15);
}

.node-group-header {
    position: absolute;
    top: -70px; /* 移到容器外面上方，留出更多空间 */
    left: 0;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    pointer-events: auto; /* 标题区域可交互 */
}

.node-group-title {
    font-size: 28px; /* 增大字体 */
    font-weight: 700; /* 更粗的字体 */
    color: rgba(44, 62, 80, 0.9); /* 更深的颜色 */
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(100, 150, 255, 0.15); /* 浅蓝色背景 */
    border: 2px dashed rgba(100, 150, 255, 0.4); /* 添加虚线边框 */
    cursor: text;
    user-select: text;
    max-width: none; /* 移除最大宽度限制，允许无限延伸 */
    min-width: 120px; /* 设置最小宽度 */
    width: auto; /* 自动宽度 */
    overflow: visible; /* 改为可见，允许内容完整显示 */
    white-space: normal; /* 允许换行，但实际上contentEditable会自动处理 */
    box-shadow: 0 2px 8px rgba(100, 150, 255, 0.2); /* 添加阴影 */
}

.node-group-title:hover {
    background: rgba(255, 255, 255, 0.8);
}

.node-group-title.editing {
    outline: 2px solid rgba(100, 150, 255, 0.6);
    background: white;
}

/* 颜色选择器样式 */
.node-group-color-picker {
    position: absolute;
    left: -40px; /* 移到容器左侧外面 */
    top: 58px; /* 对齐节点分组容器顶部(header高度) */
    display: flex;
    flex-direction: column; /* 竖向排列 */
    gap: 8px;
    align-items: center;
    pointer-events: auto; /* 颜色选择器可交互 */
}

.color-option {
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: rgba(44, 62, 80, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.color-option.color-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.color-option.color-red {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.color-option.color-yellow {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.color-option.color-black {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.node-group-close-btn {
    position: absolute;
    top: -52px; /* 移到容器外面上方，与标题同一行 */
    right: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 77, 77, 0.15);
    color: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 2;
    pointer-events: auto; /* 关闭按钮可交互 */
}

.node-group-close-btn:hover {
    background: rgba(255, 77, 77, 0.9);
    color: white;
    transform: scale(1.1);
}

/* 节点在分组内时的样式指示 */
.node.in-group {
    /* 可选：添加特殊边框指示该节点属于某个分组 */
}

/* 不同颜色主题 - 蓝色（默认） */
.node-group.color-blue {
    background: rgba(100, 150, 255, 0.08);
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 2px 12px rgba(100, 150, 255, 0.15);
}

.node-group.color-blue:hover {
    background: rgba(100, 150, 255, 0.12);
    border-color: rgba(100, 150, 255, 0.6);
    box-shadow: 0 4px 16px rgba(100, 150, 255, 0.25);
}

.node-group.color-blue .node-group-title {
    background: rgba(100, 150, 255, 0.15);
    color: rgba(44, 62, 80, 0.9);
    border-color: rgba(100, 150, 255, 0.4);
}

/* 红色主题 */
.node-group.color-red {
    background: rgba(255, 100, 120, 0.08);
    border-color: rgba(255, 100, 120, 0.4);
    box-shadow: 0 2px 12px rgba(255, 100, 120, 0.15);
}

.node-group.color-red:hover {
    background: rgba(255, 100, 120, 0.12);
    border-color: rgba(255, 100, 120, 0.6);
    box-shadow: 0 4px 16px rgba(255, 100, 120, 0.25);
}

.node-group.color-red .node-group-title {
    background: rgba(255, 100, 120, 0.15);
    color: rgba(139, 0, 0, 0.9);
    border-color: rgba(255, 100, 120, 0.4);
}

/* 黄色主题 */
.node-group.color-yellow {
    background: rgba(246, 211, 101, 0.08);
    border-color: rgba(253, 160, 133, 0.4);
    box-shadow: 0 2px 12px rgba(246, 211, 101, 0.15);
}

.node-group.color-yellow:hover {
    background: rgba(246, 211, 101, 0.12);
    border-color: rgba(253, 160, 133, 0.6);
    box-shadow: 0 4px 16px rgba(246, 211, 101, 0.25);
}

.node-group.color-yellow .node-group-title {
    background: rgba(246, 211, 101, 0.15);
    color: rgba(139, 90, 0, 0.9);
    border-color: rgba(253, 160, 133, 0.4);
}

/* 黑色主题 */
.node-group.color-black {
    background: rgba(50, 50, 50, 0.08);
    border-color: rgba(80, 80, 80, 0.5);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.node-group.color-black:hover {
    background: rgba(50, 50, 50, 0.12);
    border-color: rgba(80, 80, 80, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.node-group.color-black .node-group-title {
    background: rgba(80, 80, 80, 0.2);
    color: rgba(30, 30, 30, 0.95);
    border-color: rgba(80, 80, 80, 0.5);
}

/* 节点分组拖拽时的高亮效果 */
.node-group.drop-target {
    border-color: rgba(100, 150, 255, 0.9);
    background: rgba(100, 150, 255, 0.2);
    box-shadow: 0 4px 20px rgba(100, 150, 255, 0.4);
}

/* 节点分组缩放手柄 */
.node-group-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: rgba(100, 150, 255, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.5);
    border-radius: 4px 0 12px 0;
    cursor: nw-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(100, 150, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 3;
    user-select: none;
    pointer-events: auto; /* 缩放手柄可交互 */
}

.node-group:hover .node-group-resize-handle {
    opacity: 1;
    visibility: visible;
}

.node-group-resize-handle:hover {
    background: rgba(100, 150, 255, 0.4);
    border-color: rgba(100, 150, 255, 0.8);
    color: rgba(100, 150, 255, 1);
    transform: scale(1.1);
}

.node-group.resizing .node-group-resize-handle {
    background: rgba(100, 150, 255, 0.5);
    border-color: rgba(100, 150, 255, 1);
    opacity: 1;
    visibility: visible;
    transition: none;
}

.node-group.resizing {
    transition: none;
}

.node.minimized {
    width: 200px;
    height: 60px;
    overflow: visible; /* 确保最小化状态下端口也能完整显示 */
}

/* 确保最小化状态覆盖所有特殊节点样式 */
.node.minimized.has-full-image {
    height: 60px !important; /* 强制覆盖图片节点的自动高度 */
    min-height: 60px !important; /* 强制最小高度 */
}

.node.minimized .node-header {
    padding: 12px 16px;
}

.node.minimized .node-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.node.minimized .node-minimize-btn {
    right: 26px;
    top: 6px;
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.node.minimized .node-close-btn {
    right: 4px;
    top: 6px;
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.node.minimized .node-content,
.node.minimized .node-image,
.node.minimized .node-result,
.node.minimized .node-actions,
.node.minimized .image-upload-full {
    display: none;
}

.node.minimized .node-input,
.node.minimized .node-output {
    top: 30px;
}

.node.minimized .input-port,
.node.minimized .output-port {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.node.minimized .input-port {
    left: -9px;
}

.node.minimized .output-port {
    right: -9px;
}

.node-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 0 -10px; /* 负边距补偿节点的padding，让头部扩展到边缘 */
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.node-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.node-close-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.node-minimize-btn {
    position: absolute;
    top: 4px;
    right: 28px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(0, 123, 255, 0.1);
    color: #2c3e50;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.node-minimize-btn:hover {
    background: #2c3e50;
    color: white;
    transform: scale(1.1);
}


.node-title {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

.node-title.editing {
    padding: 0;
    margin: 0;
}

.node-title-input {
    width: 80%;
    max-width: 150px;
    border: 2px solid #2c3e50;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: white;
    outline: none;
}

.node-image {
    padding: 0; /* 移除内边距避免白边 */
    text-align: center;
    margin: 0; /* 移除边距 */
}

.node-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0; /* 移除圆角 */
    background: #f0f0f0;
    border: none; /* 移除边框 */
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除边距 */
}

/* 结果节点的图片不受通用样式限制 */
.result-image.has-content img.generated-image-full {
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
}

.result-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0; /* 移除圆角避免白边 */
    margin: 0; /* 移除边距避免白边 */
    overflow: hidden;
    position: relative;
}

/* 当有内容时重新样式化 - 铺满整个节点 */
.result-image.has-content {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    background: none;
    padding: 0;
    align-items: stretch;
    margin: 0 !important; /* 移除边距，铺满节点 */
    overflow: visible !important;
    border-radius: 0; /* 移除圆角，让内容完全贴边 */
}

.loading-state {
    text-align: center;
    color: white;
}

.loading-icon {
    font-size: 24px;
    margin-bottom: 8px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { 
        transform: scale(1.5); 
        box-shadow: 0 0 16px rgba(40, 167, 69, 1);
    }
    to { 
        transform: scale(1.7); 
        box-shadow: 0 0 20px rgba(40, 167, 69, 1);
    }
}

@keyframes connectionSuccess {
    0% { 
        transform: scale(1.5); 
        background: #28a745;
        box-shadow: 0 0 16px rgba(40, 167, 69, 1);
    }
    50% { 
        transform: scale(2.2); 
        background: #28a745;
        box-shadow: 0 0 25px rgba(40, 167, 69, 1);
    }
    100% { 
        transform: scale(1); 
        background: #2c3e50;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    }
}

.loading-text {
    font-size: 12px;
    opacity: 0.9;
}

.node-content {
    padding: 0;
    margin: 0 -10px; /* 负边距补偿节点的padding，让内容扩展到边缘 */
}

.node-content .input-group {
    padding: 16px;
    margin-bottom: 0;
}

.node-content .input-group:not(:last-child) {
    border-bottom: 1px solid #f5f5f5; /* 使用更淡的分隔线 */
}

.input-group {
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-group textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    resize: vertical;
    font-family: inherit;
    pointer-events: auto;
    user-select: text;
}

.input-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group .text-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
    pointer-events: auto;
    user-select: text;
    line-height: 1.4;
    background: #fafafa;
    transition: all 0.2s ease;
}

.input-group .text-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: white;
}

.input-group .text-input::placeholder {
    color: #999;
    font-style: italic;
}

.param-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    pointer-events: auto;
    user-select: none;
}

.param-select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.param-select:hover {
    border-color: #2c3e50;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
}

.param-value {
    color: #666;
    cursor: pointer;
}

.param-value.green {
    color: #28a745;
}

/* Ports */
.node-input,
.node-output {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30; /* 提高z-index确保端口在图片之上 */
}

.node-input {
    left: 0;
}

.node-output {
    right: 0;
}

.input-port,
.output-port {
    position: relative;
    width: 18px;
    height: 18px;
    background: #2c3e50;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    z-index: 35; /* 更高的z-index确保端口圆点在最上层 */
}

.input-port {
    left: -9px; /* 端口位置保持在节点边缘 */
}

.output-port {
    right: -9px; /* 端口位置保持在节点边缘 */
}

/* 隐藏输出端口的样式 */
.output-port.hidden {
    display: none;
}

.input-port:hover,
.output-port:hover {
    background: #0056b3;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.8);
}

.input-port.highlight,
.output-port.highlight {
    background: #28a745;
    transform: scale(1.5);
    box-shadow: 0 0 16px rgba(40, 167, 69, 1);
    border-color: #ffffff;
    border-width: 4px;
}

/* Connections - 在节点分组之上，普通节点之下 */
.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6; /* 高于节点分组(5)，低于普通节点(10+) */
}

.connection-line {
    stroke: #2c3e50;
    stroke-width: 3;
    fill: none;
    cursor: pointer;
    pointer-events: stroke;
    stroke-linecap: round;
}

.connection-line:hover {
    stroke: #34495e;
    stroke-width: 4;
}

.temp-connection-line {
    stroke: #2c3e50;
    stroke-width: 2;
    stroke-dasharray: 5,5;
    fill: none;
}

/* 连接线动画小球 - 生成时的流动效果 */
.connection-ball-group {
    pointer-events: none;
}

.connection-ball {
    fill: #d4af37;
    filter: drop-shadow(0 0 4px #d4af37) drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

@keyframes pulse-ball {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.connection-ball {
    animation: pulse-ball 0.5s ease-in-out infinite;
}

/* Drag Delete Indicator */
.drag-delete-indicator {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #dc3545;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.drag-delete-indicator::after {
    content: '×';
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .node-library {
        width: 160px;
    }
    
    .node {
        /* 移除固定宽度，允许动态调整 */
        min-width: 240px;
    }
}

/* Status Panel */
.status-panel {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-right: 8px;
}

.status-value {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 24px;
    text-align: right;
}

/* Selection Box */
.selection-box {
    position: absolute;
    border: 2px dashed #2c3e50;
    background: rgba(0, 123, 255, 0.1);
    pointer-events: none;
    z-index: 5; /* 选择框在连接线之上，但在节点之下 */
}

/* Selected Node */
.node.selected {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    transform: scale(1.02);
    z-index: 50; /* 选中时提高层级但低于拖拽 */
}

/* Modal Styles */
.profile-modal {
    width: 2000px;
    max-width: 98vw;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #4CAF50;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section h4 {
    color: #333;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item label {
    font-weight: 500;
    color: #666;
    width: 80px;
    flex-shrink: 0;
}

.info-item span {
    color: #333;
    flex-grow: 1;
}

/* 积分余额卡片 */
.points-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f5f5f5;
    text-align: center;
}

.points-section h4 {
    text-align: center;
    margin-bottom: 16px;
}

.balance-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.balance-info {
    flex-grow: 1;
    text-align: center;
}

.balance-amount {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 4px;
    text-align: center;
}

.balance-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}
}

/* 积分消费记录 */
.consumption-history {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
}

.consumption-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.consumption-item:last-child {
    border-bottom: none;
}

.consumption-info {
    flex-grow: 1;
}

.consumption-model {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.consumption-params {
    font-size: 12px;
    color: #666;
}

.consumption-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.consumption-cost {
    text-align: right;
}

.consumption-points {
    font-weight: bold;
    color: #f44336;
    font-size: 14px;
}

.consumption-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5f5f5;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.usage-details {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f5f5f5;
}

.usage-details h5 {
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Modal styles moved to line ~4878 to avoid duplication */

.config-group {
    margin-bottom: 16px;
}

.config-group:last-child {
    margin-bottom: 0;
}

.config-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.config-group input[type="text"],
.config-group input[type="password"],
.config-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.config-group input[type="text"]:focus,
.config-group input[type="password"]:focus,
.config-group input[type="number"]:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.config-group input[type="checkbox"] {
    margin-right: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #f5f5f5;
    background: #f8f9fa;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Image Upload Styles */
.image-upload-area {
    width: 100%;
    min-height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: #2c3e50;
    background: #f8f9ff;
}

/* Clean image upload area for image-upload nodes */
.image-upload-area.image-upload-clean {
    border: 2px dashed #ddd;
    background: #fafafa;
    padding: 16px;
    min-height: 100px;
}

.image-upload-area.image-upload-clean:hover {
    border-color: #2c3e50;
    background: #f8f9ff;
}

.image-upload-clean .image-preview {
    margin-top: 8px;
}

.image-upload-clean .image-preview img {
    border: 1px solid #ddd;
    box-shadow: none;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Full-size image upload area for image-upload nodes */
.image-upload-full {
    width: 100%;
    height: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.image-upload-full.has-image {
    height: auto;
    min-height: 200px;
}

.upload-dropzone {
    width: 100%;
    height: 100%;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.upload-dropzone:hover {
    border-color: #2c3e50;
    background: #f8f9ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
    color: #6c757d;
}

.upload-hint {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

.upload-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.image-preview {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-top: 8px;
}

/* Image preview for full-size upload nodes */
.image-upload-full .image-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    overflow: hidden;
    z-index: 5;
    display: none; /* 默认隐藏，通过JS控制显示 */
}

/* 当有图片时显示预览容器 */
.image-upload-full.has-image .image-preview {
    display: block;
}

.image-upload-full .image-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* 使用contain确保图片完整显示，不裁剪 */
    border-radius: 0;
    border: none;
    background: #f8f9fa;
    padding: 0;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Special styling for image upload nodes when they have images */
.node.has-full-image {
    height: auto;
    min-height: auto;
    overflow: visible; /* 让端口可见 */
    padding: 0 !important; /* 无padding，图片铺满 */
    display: flex;
    flex-direction: column;
    box-sizing: border-box !important;
}

/* Ensure resize handle is visible on image upload nodes */
.node.has-full-image .resize-handle {
    z-index: 25;
}

.node.has-full-image .node-content {
    position: absolute !important;
    top: var(--header-height, 50px) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 0 7px 7px;
    box-sizing: border-box !important;
}

.node.has-full-image .image-upload-full {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.node.has-full-image .image-upload-full .image-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.node.has-full-image .image-upload-full .image-preview img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
}

.node.has-full-image .node-header {
    position: relative;
    z-index: 10;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    padding: 12px 16px;
    margin: 0 !important; /* 覆盖默认的负边距 */
    border-radius: 7px 7px 0 0; /* 顶部圆角匹配节点 */
}

.node.has-full-image .input-port {
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.node.has-full-image .output-port {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

/* 确保有图片时端口有足够的背景对比度和最高层级 */
.node.has-full-image .input-port,
.node.has-full-image .output-port {
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.95);
    z-index: 35; /* 最高层级确保端口完全可见 */
}

/* ==================== 视频上传节点样式 ==================== */

/* 视频上传全尺寸容器 */
.video-upload-full {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* 视频预览容器 */
.video-upload-full .video-preview {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    overflow: hidden;
    z-index: 5;
    margin: 0 !important;
    padding: 0 !important;
}

/* 视频预览元素 - 节点内的视频 */
.video-upload-full .preview-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* 保持视频比例，不裁剪 */
    object-position: center;
    display: block;
    border-radius: 0;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 隐藏原生视频控件，使用自定义控件 */
.video-upload-full .preview-video::-webkit-media-controls {
    display: none !important;
}

.video-upload-full .preview-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* 自定义视频播放控件 */
.video-custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 30px 12px 12px 12px;
    z-index: 16;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
}

.video-preview:hover .video-custom-controls,
.video-custom-controls.active {
    opacity: 1;
}

/* 进度条容器 */
.video-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-progress-container:hover {
    height: 8px;
}

/* 缓冲进度 */
.video-buffer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    width: 0%;
}

/* 播放进度 */
.video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* 进度条拖动滑块 */
.video-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.video-progress-container:hover .video-progress-thumb {
    opacity: 1;
}

/* 控制按钮行 */
.video-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.video-controls-left,
.video-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 控制按钮基础样式 */
.video-control-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-control-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 播放/暂停按钮 - 更大更突出 */
.video-play-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 时间显示 */
.video-time-display {
    color: white;
    font-size: 12px;
    font-family: monospace;
    min-width: 80px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 音量控制 */
.video-volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.video-volume-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.video-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 中央大播放按钮 - 隐藏 */
.video-center-play {
    display: none;
}

/* 删除视频按钮 */
.video-upload-full .remove-video-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
    line-height: 1;
}

.video-upload-full .remove-video-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* 视频信息显示 - 隐藏 */
.video-upload-full .video-info {
    display: none;
}

/* 有视频时的节点样式 */
.node.has-full-video {
    height: auto;
    min-height: auto;
    overflow: visible; /* 让端口可见 */
    padding: 0 !important; /* 无padding，视频铺满 */
    display: flex;
    flex-direction: column;
}

.node.has-full-video .node-content {
    position: absolute !important;
    top: var(--header-height, 45px) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 0 7px 7px;
}

.node.has-full-video .video-upload-full {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.node.has-full-video .node-header {
    position: relative;
    z-index: 10;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    padding: 12px 16px;
    margin: 0; /* 覆盖默认的负边距 */
    border-radius: 7px 7px 0 0; /* 顶部圆角匹配节点 */
}

.node.has-full-video .input-port {
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.node.has-full-video .output-port {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.node.has-full-video .input-port,
.node.has-full-video .output-port {
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.95);
    z-index: 35;
}

.node.has-full-video .resize-handle {
    z-index: 25;
}

/* ==================== 图片预览样式 ==================== */

.image-preview img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    padding: 4px;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: rgba(220, 53, 69, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

/* Small remove button for image-upload nodes */
.remove-image-btn-small {
    width: 22px;
    height: 22px;
    font-size: 14px;
    border-width: 1px;
    top: 6px;
    right: 6px;
}

/* Image matting specific styles */
.matting-options {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.matting-options .input-group {
    margin-bottom: 12px;
}

.matting-options .input-group:last-child {
    margin-bottom: 0;
}

.matting-options label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.matting-options select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.matting-options select:focus {
    border-color: #2c3e50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.25);
}

/* Matting progress styles */
.matting-progress {
    margin: 12px 16px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 12px;
}

.matting-progress .progress-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.matting-progress .progress-icon {
    font-size: 16px;
    margin-right: 8px;
}

.matting-progress .progress-message {
    color: #495057;
    font-weight: 500;
}

.matting-progress .progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.matting-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Full image mode delete button */
.node.has-full-image .remove-image-btn {
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.85);
    backdrop-filter: blur(5px);
    z-index: 15;
}

.remove-image-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.node:hover .remove-image-btn {
    opacity: 1;
    visibility: visible;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1100;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* 节点操作按钮区域 */
.node-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    justify-content: center;
    margin: 12px 0 0 0; /* 只保留顶部边距，移除底部边距避免空白 */
}

.generate-btn, .regenerate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.3);
    min-width: 80px;
    justify-content: center;
}

.generate-btn:hover, .regenerate-btn:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.4);
    transform: translateY(-1px);
}

.generate-btn:active, .regenerate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.3);
}

.generate-btn:disabled, .regenerate-btn:disabled {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.3);
}

.regenerate-btn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.regenerate-btn:hover {
    background: linear-gradient(135deg, #F57C00, #E65100);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

.btn-icon {
    font-size: 14px;
    line-height: 1;
}

.btn-text {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap; /* 默认单行显示 */
}

/* 生成中文本更小且保持单行 */
.node.generating .generate-btn .btn-text,
.node.generating .regenerate-btn .btn-text {
    font-size: 11px;
    white-space: nowrap;
}

.btn-points {
    font-size: 10px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    white-space: nowrap;
    display: none; /* 默认隐藏，通过JS显示 */
}

.generate-btn .btn-points {
    background: rgba(255, 255, 255, 0.2);
}

.regenerate-btn .btn-points {
    background: rgba(255, 255, 255, 0.2);
}

/* 生成中状态 */
.node.generating {
    border-color: #2c3e50;
    box-shadow: 0 0 20px rgba(44, 62, 80, 0.3);
}

.node.generating .generate-btn .btn-icon,
.node.generating .regenerate-btn .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 节点结果显示区域 */
.node-result {
    margin: 0; /* 完全移除边距 */
    padding: 0; /* 完全移除内边距 */
    background: transparent; /* 移除背景色 */
    border-radius: 0; /* 移除圆角 */
    border: none; /* 移除边框 */
}

.result-preview {
    text-align: center;
}

.result-preview.error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.result-image, .result-video {
    max-width: 100%;
    /* 移除max-height限制，让内容完整显示 */
    border-radius: 0; /* 移除圆角 */
    box-shadow: none; /* 移除阴影 */
    border: none; /* 移除边框 */
    margin: 0; /* 移除边距 */
    padding: 0; /* 移除内边距 */
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    font-size: 11px;
}

.result-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.result-status.success {
    background: #d4edda;
    color: #155724;
}

.result-status.error {
    background: #f8d7da;
    color: #721c24;
}

.result-time {
    color: #6c757d;
    font-size: 10px;
}

.error-icon {
    font-size: 32px;
    color: #dc3545;
    margin-bottom: 8px;
}

.error-message {
    color: #721c24;
    font-weight: 500;
    margin-bottom: 8px;
}

.refund-message {
    color: #721c24;
    font-weight: 500;
    margin-top: 4px;
}

/* 提示词必填错误提示样式 */
.prompt-required-error {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    color: #c53030;
    animation: slideIn 0.3s ease-out;
}

.prompt-required-error .error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: inherit;
}

.prompt-required-error .error-icon {
    font-size: 14px;
    margin: 0;
    color: inherit;
}

.prompt-required-error .error-text {
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 节点出现动画 */
@keyframes nodeAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.node-appear {
    animation: nodeAppear 0.3s ease-out;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

/* 右键上下文菜单样式 - 苹果风格黑色磨砂玻璃 */
.context-menu {
    position: fixed;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10000;
    min-width: 220px;
    max-width: 280px;
    overflow: hidden;
    animation: contextMenuFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@keyframes contextMenuFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.context-menu-header {
    padding: 12px 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.context-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent
    );
}

.context-menu-items {
    padding: 4px 0;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 14px;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.context-menu-item:first-child {
    margin-top: 2px;
}

.context-menu-item:last-child {
    margin-bottom: 2px;
}

.context-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.context-menu-item:hover::before {
    opacity: 1;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.context-menu-item:active {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(1px) scale(0.98);
}

.context-menu-separator {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent
    );
    margin: 6px 12px;
    position: relative;
}

.context-menu-separator::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 0, 0, 0.2) 20%, 
        rgba(0, 0, 0, 0.2) 80%, 
        transparent
    );
}

.menu-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.1px;
    transition: color 0.15s ease;
}

.context-menu-item:hover .menu-label {
    color: rgba(255, 255, 255, 1);
}


/* 为整个菜单添加微妙的光效 */
.context-menu::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    animation: subtleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.3;
    }
}

/* 多图编辑功能说明区域样式 */
.feature-notice {
    margin: 8px 12px 0 12px;
    padding: 8px 10px;
    background: #f8f9ff;
    border: 1px solid #e1e6ff;
    border-radius: 6px;
    color: #4a5568;
}

.feature-notice .notice-content {
    display: flex;
    align-items: flex-start;
}

.feature-notice .notice-text {
    flex: 1;
}

.feature-notice .notice-title {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

.feature-notice .notice-desc {
    font-size: 11px;
    color: #718096;
    line-height: 1.3;
}

/* 结果节点样式更新 */
.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 11px;
}

.success-badge {
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.time-badge {
    color: #6c757d;
    font-size: 10px;
}

/* 豆包API专用样式 */
.seed-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.param-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.param-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.25);
}

/* Toggle开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2196F3;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.random-seed-btn {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.random-seed-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.random-seed-btn:active {
    transform: scale(0.95);
}

/* 增强选择框样式 */
.param-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 13px;
    cursor: pointer;
}

.param-select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.25);
}

/* 文本输入框样式优化 */
.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background: white;
    transition: border-color 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.25);
}

.text-input::placeholder {
    color: #999;
    font-style: italic;
}

/* 文本输入节点专用样式 */
.text-input-only-wrapper {
    padding: 8px;
    display: flex;
    gap: 8px;
}

.text-input-only {
    min-height: 300px;
    resize: vertical;
    flex: 1;
}

.text-input-node {
    min-width: 450px;
}

/* 字体大小调节按钮 */
.font-size-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.font-size-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.font-size-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.font-size-btn:active {
    background: #dee2e6;
}

/* 节点标题样式优化 */
.node-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* 标签样式优化 */
.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 结果节点增强样式 */
.result-content {
    padding: 0; /* 移除内边距 */
    background: transparent; /* 移除背景 */
    border-radius: 0; /* 移除圆角 */
    margin: 0; /* 移除边距 */
    box-shadow: none; /* 移除阴影 */
}

.generated-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.result-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.preview-btn, .download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.preview-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.preview-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.download-btn {
    background: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
}

.download-btn:hover {
    background: #0056b3;
    border-color: #34495e;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.success-badge {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.time-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.result-info {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    color: #343a40;
    font-weight: 400;
}

.btn-icon {
    font-size: 14px;
}

/* 视频预览模态框 */
.video-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto; /* 允许滚动以适应大尺寸视频 */
}

.video-preview-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.video-preview-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: fit-content;
    height: fit-content;
    min-width: 320px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1; /* 确保在背景之上 */
}

.video-preview-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.video-preview-modal .modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.video-preview-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.video-preview-modal .modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.video-preview-modal .modal-body {
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    max-height: none; /* 覆盖通用modal-body的高度限制，允许视频完整显示 */
    overflow: visible; /* 确保内容不被裁切 */
}

.preview-video {
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    object-position: center;
    display: block;
    /* 初始状态不设置最大尺寸限制，由JavaScript动态计算 */
}

.video-preview-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.video-preview-modal .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.video-preview-modal .btn-secondary {
    background: #6c757d;
    color: white;
}

.video-preview-modal .btn-secondary:hover {
    background: #545b62;
}

.video-preview-modal .btn-primary {
    background: #2c3e50;
    color: white;
}

.video-preview-modal .btn-primary:hover {
    background: #0056b3;
}

/* 图片预览模态框样式 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.image-preview-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-preview-modal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.image-preview-modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.image-preview-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
    line-height: 1;
}

.image-preview-modal .modal-close:hover {
    color: #333;
}

.image-preview-modal .modal-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
    overflow: auto;
}

.image-preview-modal .preview-image {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.image-preview-modal .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.image-preview-modal .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.image-preview-modal .btn-secondary {
    background: #6c757d;
    color: white;
}

.image-preview-modal .btn-secondary:hover {
    background: #545b62;
}

.image-preview-modal .btn-primary {
    background: #2c3e50;
    color: white;
}

.image-preview-modal .btn-primary:hover {
    background: #0056b3;
}

/* 文生图节点简化结果显示 */
.result-simple {
    padding: 0; /* 移除内边距 */
    background: transparent; /* 移除背景 */
    border: none; /* 移除边框 */
    border-radius: 0; /* 移除圆角 */
    margin: 0; /* 移除边距 */
}

.result-status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-hint {
    font-size: 13px;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

/* 结果节点无框图片显示 - 铺满整个节点 */
.result-image-container {
    position: relative;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    border-radius: 0; /* 移除圆角，让图片贴边显示 */
    overflow: visible !important;
    box-shadow: none; /* 移除阴影，让图片直接贴边 */
    margin: 0; /* 移除边距 */
    padding: 0; /* 移除内边距 */
}

/* 结果节点图片完整显示 - 最高优先级样式，铺满节点 */
.result-image-container img,
.result-image-container .generated-image-full,
.result-image.has-content img,
.result-image.has-content .generated-image-full,
.result-image .generated-image-full,
img.generated-image-full {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    max-height: none !important;
    min-height: auto !important;
    display: block !important;
    border-radius: 0 !important; /* 完全移除图片圆角 */
    background: #f8f9fa !important;
    margin: 0 !important; /* 移除图片边距 */
    padding: 0 !important; /* 移除图片内边距 */
    border: none !important; /* 移除图片边框 */
}

.generated-image-full {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    background: #f8f9fa;
    max-height: none !important; /* 移除高度限制，允许根据内容自适应 */
    border-radius: 0 !important; /* 完全移除圆角 */
    border: none !important; /* 移除边框 */
    margin: 0 !important; /* 移除边距 */
    padding: 0 !important; /* 移除内边距 */
}

/* 为了防止极高的图片撑爆界面，设置一个合理的最大高度 */
@media screen and (max-height: 800px) {
    .generated-image-full {
        max-height: 600px !important;
    }
}

@media screen and (min-height: 801px) {
    .generated-image-full {
        max-height: 800px !important;
    }
}

/* 结果节点图片显示的高优先级样式 */
.result-image.has-content .result-image-container .generated-image-full {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
    display: block !important;
}

.image-overlay-buttons {
    position: absolute;
    bottom: 12px; /* 更贴近底部，避免遮挡与漂移 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.result-node:hover .image-overlay-buttons {
    opacity: 1;
    pointer-events: auto;
}

.overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;          /* 统一尺寸 */
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    font-size: 13px;            /* 统一字号 */
    color: #fff;
    font-weight: 600;
    min-width: 84px;            /* 统一最小宽度 */
    height: 34px;               /* 统一高度 */
    white-space: nowrap;        /* 防止文字换行 */
}
.overlay-btn svg { margin-right: 6px; }

.overlay-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.overlay-btn.preview-btn {
    /* 与下载按钮一致的样式 */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.overlay-btn.preview-btn:hover {
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.overlay-btn.download-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.overlay-btn.download-btn:hover {
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 视频容器样式 - 铺满整个节点 */
.result-video-container {
    position: relative;
    width: 100%;
    border-radius: 0; /* 移除圆角，让视频贴边 */
    overflow: hidden;
    box-shadow: none; /* 移除阴影 */
    background: #000;
    margin: 0; /* 移除边距 */
    padding: 0; /* 移除内边距 */
}

.generated-video-full {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0; /* 移除视频圆角 */
    /* 移除max-height限制，让视频完整显示 */
}

.video-overlay-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 视频按钮居中显示 */
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 3;
}

.result-node:hover .video-overlay-buttons {
    opacity: 1;
    pointer-events: auto;
}

/* 极简状态信息 */
.result-meta-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
}

.success-badge-minimal {
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.time-badge-minimal {
    color: #6c757d;
    font-weight: 400;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 12px;
}

.info-value {
    color: #495057;
    font-size: 12px;
    font-weight: 600;
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.image-preview-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.image-preview-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.image-preview-modal .modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.image-preview-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.image-preview-modal .modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.image-preview-modal .modal-body {
    padding: 20px;
    text-align: center;
    max-height: 80vh;
    overflow: auto;
}

.preview-image {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

.image-preview-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

/* 生成的图片和视频样式 */
.generated-image, .generated-video {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s;
}

.generated-image:hover {
    border-color: #2c3e50;
}

/* 下载通知样式增强 */
.download-notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 16px;
}

.notification-text {
    font-weight: 500;
}

/* 连接状态显示样式 */
.connection-status {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.connection-item:last-child {
    margin-bottom: 0;
}

.connection-label {
    font-weight: 500;
    color: #495057;
    font-size: 12px;
}

.connection-value {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.connection-value.connected {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
    font-style: normal;
}

.connection-hint {
    margin-top: 8px;
    padding: 8px;
    background: rgba(44, 62, 80, 0.1);
    border-left: 3px solid #2c3e50;
    border-radius: 4px;
}

.connection-hint small {
    color: #495057;
    font-size: 11px;
    line-height: 1.4;
    display: block;
}

/* 视频任务进度显示 */
.task-progress {
    margin: 12px 16px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-status {
    font-weight: 600;
    color: #2c3e50;
}

.progress-attempt {
    color: #6c757d;
    font-size: 11px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c3e50, #34495e);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-text {
    color: #495057;
    font-style: italic;
    text-align: center;
}

/* Login Button and User Info */
/* User Center Styles */
.user-center-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Workflow Controls */
.workflow-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.workflow-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.workflow-btn:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.workflow-btn svg {
    width: 16px;
    height: 16px;
}

/* Login Button */
.user-center-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000000;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    outline: none;
}

.user-center-btn:hover {
    transform: translateY(-2px);
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.user-icon {
    width: 20px;
    height: 20px;
}

/* Logged In State */
.user-center.logged-in-state {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 充值按钮 */
.recharge-btn-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.recharge-btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.recharge-btn-top:active {
    transform: translateY(0);
}

.recharge-btn-top svg {
    width: 16px;
    height: 16px;
}

/* 积分显示 */
.points-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    min-width: 80px;
}

.points-display svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.points-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Points Badge */
.points-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.points-icon {
    font-size: 16px;
}

.points-value {
    font-weight: 700;
}

/* Points and Recharge Container */
.points-recharge-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

.points-recharge-container .points-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    opacity: 1;
}

.points-recharge-container .points-value {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    min-width: auto;
}

.points-recharge-container .separator {
    color: #adb5bd;
    font-weight: 300;
    margin: 0 4px;
}

.points-recharge-container .recharge-link {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.points-recharge-container .recharge-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* User Menu Trigger */
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-menu-trigger:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.username-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    color: #666;
    transition: transform 0.3s ease;
}

.user-menu-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item svg {
    color: #666;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

.logout-item {
    color: #dc3545;
}

.logout-item svg {
    color: #dc3545;
}

.logout-item:hover {
    background: #fff5f5;
}

/* Keep old styles for compatibility */
.login-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #000000;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    outline: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    background: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn {
    padding: 4px 8px;
    background: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.25);
}

/* 验证码输入组样式 */
.verification-group .verification-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.verification-group input {
    flex: 1;
}

.send-code-btn {
    padding: 10px 16px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.send-code-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.send-code-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-code-btn.countdown {
    background: #6c757d;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary {
    padding: 10px 20px;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Register/Login Section Styles */
.register-section, .login-section {
    margin-top: 20px;
    text-align: center;
}

.divider {
    margin-bottom: 12px;
    position: relative;
}

.divider span {
    color: #6c757d;
    font-size: 12px;
    padding: 0 8px;
    background: white;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #f5f5f5;
    z-index: 0;
}

.btn-register, .btn-login {
    width: 100%;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-register:hover, .btn-login:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* User Profile Styles */
.clickable-username {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clickable-username:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.profile-modal .modal-content {
    width: 2000px !important;
    max-width: 98vw !important;
    max-height: 90vh;
    overflow-y: auto;
}

#info-tab {
    width: 2000px;
    max-width: 100%;
}

#info-tab .profile-section {
    width: 2000px;
    max-width: 100%;
}

.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #212529;
    border-bottom-color: #212529;
    background: #f8f9fa;
}

.tab-btn:hover:not(.active) {
    color: #495057;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-section {
    padding: 20px 0;
}

.profile-section h4 {
    margin-bottom: 16px;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
}

.profile-section h5 {
    margin-bottom: 12px;
    color: #495057;
    font-size: 16px;
    font-weight: 500;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    min-width: 100px;
    flex-shrink: 0;
}

.info-item span {
    color: #212529;
    font-size: 14px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

.stat-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-details {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.usage-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.usage-breakdown-item:last-child {
    border-bottom: none;
}

.usage-tool-name {
    font-weight: 500;
    color: #495057;
}

.usage-count {
    color: #212529;
    font-weight: 600;
    background: #212529;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 积分相关样式 */
.points-summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.summary-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.consumption-history {
    max-height: 400px;
    overflow-y: auto;
}

.consumption-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.consumption-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #2c3e50;
}

.consumption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.model-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-name {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.model-type-badge {
    background: #2c3e50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.model-type-badge.text-to-image {
    background: #28a745;
}

.model-type-badge.text-to-video {
    background: #dc3545;
}

.model-type-badge.image-to-video {
    background: #ffc107;
    color: #212529;
}

.model-type-badge.image-edit {
    background: #6f42c1;
}

.model-type-badge.video-first-last-frame {
    background: #fd7e14;
}

.points-consumed {
    font-weight: 700;
    color: #dc3545;
    font-size: 16px;
}

.consumption-details {
    padding: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
}

.detail-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 13px;
    min-width: 60px;
}

.detail-value {
    color: #212529;
    font-size: 13px;
    text-align: right;
    flex: 1;
}

.params-info {
    font-family: 'Monaco', 'Menlo', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.no-data {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
}

/* Profile Form Styles */
#changePasswordForm .form-group {
    margin-bottom: 16px;
}

#changePasswordForm label {
    display: block;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

#changePasswordForm input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#changePasswordForm input:focus {
    outline: none;
    border-color: #212529;
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
}

#changePasswordForm .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#changePasswordForm .btn-primary {
    flex: 1;
    padding: 12px;
    background: #212529;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#changePasswordForm .btn-primary:hover {
    background: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 37, 41, 0.2);
}

#changePasswordForm .btn-secondary {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Responsive Design for Profile Modal */
@media (max-width: 600px) {
    .profile-modal .modal-content {
        width: 98vw;
        max-height: 90vh;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        border-right: none;
    }
    
    .tab-btn.active {
        border-bottom-color: #e9ecef;
        border-left: 3px solid #212529;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    #changePasswordForm .form-actions {
        flex-direction: column;
    }
}

/* 新的大窗口个人信息界面 - 磨砂玻璃风格 */
.large-profile-modal {
    width: 1200px;
    max-width: 95vw;
    height: 700px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.profile-main-content {
    display: flex;
    flex: 1;
    height: 100%;
}

.profile-sidebar {
    width: 250px;
    background: rgba(248, 248, 248, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    color: rgba(0, 0, 0, 0.8);
    margin: 4px 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-item.active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-text {
    font-size: 16px;
    font-weight: 500;
}

.profile-content-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    padding-bottom: 50px; /* 增加底部padding确保内容完整显示 */
}

.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* 基本信息页面样式 - 磨砂玻璃风格 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.info-card h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
}

.info-value {
    color: rgba(0, 0, 0, 0.9);
    font-size: 16px;
    font-weight: 600;
}

.balance-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-card h4 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.balance-card .info-row {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.balance-card .info-label {
    color: rgba(255, 255, 255, 0.7);
}

.balance-card .info-value {
    color: white;
}

.balance-display {
    text-align: center;
    padding: 20px 0;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 积分充值卡片样式 */
.recharge-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.recharge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0%, transparent 50%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.recharge-card h4 {
    color: rgba(0, 0, 0, 0.9);
    text-shadow: none;
    margin-bottom: 20px;
}

.recharge-content {
    position: relative;
    z-index: 1;
}

.recharge-form {
    margin-bottom: 20px;
}

.recharge-form .form-group {
    margin-bottom: 16px;
}

.recharge-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
    font-size: 14px;
}

.recharge-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: rgba(0, 0, 0, 0.9);
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.recharge-form input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: normal;
}

.recharge-form input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.recharge-btn {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recharge-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.recharge-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.recharge-btn:disabled {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-size: 16px;
}

.recharge-tips {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.recharge-tips p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.recharge-tips p:last-child {
    margin-bottom: 0;
}

/* 充值页面样式 */
.recharge-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recharge-section .info-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* 充值套餐卡片 */
.pricing-cards {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.pricing-cards h4 {
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 8px;
}

.price-points {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 8px;
}

.price-desc {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

/* 客服二维码区域 */
.service-qr {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 30px; /* 增加底部边距确保边框完整显示 */
}

.service-qr h4 {
    color: rgba(0, 0, 0, 0.9);
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 10px;
}

.qr-image {
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-image {
        width: 160px;
        height: 160px;
        max-width: 100%;
    }
}

/* 使用详情区域样式 */
.usage-breakdown-section {
    margin-bottom: 32px;
}

.usage-breakdown-section h4 {
    color: rgba(0, 0, 0, 0.9);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#userUsageBreakdown {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
}

#userUsageBreakdown .breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#userUsageBreakdown .breakdown-item:last-child {
    border-bottom: none;
}

#userUsageBreakdown .tool-name {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

#userUsageBreakdown .usage-count {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 123, 255, 0.1);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
}

#userUsageBreakdown .no-data {
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
    padding: 40px 20px;
}

/* 使用统计页面样式 - 磨砂玻璃风格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.consumption-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.consumption-section h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.consumption-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.summary-label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

.summary-value {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
}

/* 修改密码页面样式 - 磨砂玻璃风格 */
.password-form-container {
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-row label {
    width: 120px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    font-size: 16px;
}

.form-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(0, 0, 0, 0.9);
}

.form-row input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-row input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

.btn-primary {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 新界面响应式设计 - 磨砂玻璃风格 */
@media (max-width: 768px) {
    .large-profile-modal {
        width: 95vw;
        height: 95vh;
    }
    
    .profile-main-content {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 16px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item {
        flex-shrink: 0;
        padding: 12px 20px;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom-color: rgba(255, 255, 255, 0.8);
    }
    
    .profile-content-area {
        padding: 20px;
        padding-bottom: 40px; /* 移动端也需要足够的底部padding */
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .consumption-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-row label {
        width: auto;
    }
    
    .form-row input {
        width: 100%;
    }
}

/* 消费记录样式增强 - 磨砂玻璃风格 */
.consumption-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.consumption-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.consumption-info {
    flex: 1;
}

.consumption-model {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 4px;
    font-size: 14px;
}

.consumption-params {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    margin-bottom: 4px;
}

.consumption-time {
    color: rgba(0, 0, 0, 0.5);
    font-size: 11px;
}

.consumption-cost {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.consumption-points {
    font-weight: 700;
    color: #d9534f;
    margin-bottom: 4px;
    font-size: 14px;
}

.consumption-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 不同节点功能类型的颜色标识 */
.consumption-badge[data-function="文生图片"] {
    background: rgba(52, 144, 220, 0.8) !important;
}

.consumption-badge[data-function="文生视频"] {
    background: rgba(220, 53, 69, 0.8) !important;
}

.consumption-badge[data-function="图生视频"] {
    background: rgba(255, 193, 7, 0.8) !important;
    color: #000 !important;
}

.consumption-badge[data-function="图片编辑"] {
    background: rgba(40, 167, 69, 0.8) !important;
}

.consumption-badge[data-function="视频首尾帧提取"] {
    background: rgba(108, 117, 125, 0.8) !important;
}

/* 使用说明按钮样式 */
.help-button-container {
    position: absolute;
    bottom: 20px;
    right: -28px;
    z-index: 10;
}

.help-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    background: rgba(44, 62, 80, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 6px;
    color: #2c3e50;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
    cursor: pointer;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: upright;
    width: 22px;
    height: 60px;
}

.help-button:hover {
    background: rgba(44, 62, 80, 0.25);
    border-color: rgba(44, 62, 80, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.25);
    color: #34495e;
}

.help-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.2);
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(44, 62, 80, 0.2);
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.help-text {
    font-size: 10px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* 节点缩小时隐藏使用说明按钮 */
.node.minimized .help-button-container {
    display: none !important;
}

/* 智能画布节点的使用说明按钮位置更高 */
.smart-canvas-node .help-button-container {
    bottom: 60px;
}

.smart-canvas-2-node .help-button-container {
    bottom: 60px;
}

/* 标记改图节点样式 */
.image-marker-edit-node {
    min-width: 520px;
    max-width: none; /* 允许节点根据图片宽度自动扩展 */
    width: fit-content;
}

.image-marker-edit-node .node-content {
    padding: 15px;
}

.image-marker-edit-node .marker-edit-layout {
    display: flex;
    gap: 16px;
    width: fit-content;
}

.image-marker-edit-node .marker-left-panel {
    flex: none; /* 固定宽度，由JS控制 */
    min-width: 220px;
    max-width: 480px;
}

.image-marker-edit-node .marker-right-panel {
    flex: none;
    width: 340px;
    display: flex;
    flex-direction: column;
}

.image-marker-edit-node .marker-canvas-wrapper {
    transition: border-color 0.2s ease, background 0.2s ease;
}

.image-marker-edit-node .marker-canvas-wrapper:hover {
    border-color: #007AFF;
    background: #f0f7ff;
}

.image-marker-edit-node .marker-preview-img {
    cursor: crosshair !important;
}

.image-marker-edit-node .marker-pin {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.image-marker-edit-node .marker-pin:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(0,122,255,0.4);
}

.image-marker-edit-node .marker-reupload-btn:hover {
    background: #e8e8e8 !important;
}

.image-marker-edit-node .marker-clear-img-btn:hover {
    background: #ffe6e6 !important;
}

@keyframes markerPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.image-marker-edit-node .marker-list::-webkit-scrollbar {
    width: 4px;
}

.image-marker-edit-node .marker-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.image-marker-edit-node .marker-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.image-marker-edit-node .input-group {
    margin-bottom: 10px;
}

.image-marker-edit-node .text-input {
    min-height: 60px;
}

.image-marker-edit-node .marker-prompt-input {
    min-height: 180px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.image-marker-edit-node .marker-prompt-input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0,122,255,0.1);
}

.image-marker-edit-node .marker-prompt-input.empty::before {
    content: attr(data-placeholder);
    color: #999;
    pointer-events: none;
}

.image-marker-edit-node .marker-prompt-input .marker-tag {
    transition: transform 0.15s, box-shadow 0.15s;
}

.image-marker-edit-node .marker-prompt-input .marker-tag:hover {
    opacity: 0.85;
}

.image-marker-edit-node .node-actions {
    margin-top: auto;
}

.workflow-list-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.workflow-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workflow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workflow-item:hover {
    background: #e9ecef;
    border-color: #4CAF50;
    transform: translateX(4px);
}

.workflow-item.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.workflow-info {
    flex: 1;
}

.workflow-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.workflow-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.workflow-actions {
    display: flex;
    gap: 8px;
}

.workflow-action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #f5f5f5;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.workflow-action-btn:hover {
    background: #f8f9fa;
}

.workflow-action-btn.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.workflow-action-btn.delete:hover {
    background: #dc3545;
    color: white;
}

.workflow-action-btn.load {
    color: #4CAF50;
    border-color: #4CAF50;
}

.workflow-action-btn.load:hover {
    background: #4CAF50;
    color: white;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-workflows {
    text-align: center;
    padding: 40px;
    color: #999;
}

#workflowDescription {
    width: 100%;
    resize: vertical;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Sora角色创建节点 - 文本结果样式 */
.text-result {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.text-result .result-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.text-result .result-value {
    font-size: 14px;
    color: #212529;
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    margin-bottom: 12px;
    word-break: break-all;
    font-family: monospace;
}

.text-result .copy-btn {
    width: 100%;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.text-result .copy-btn:hover {
    background: #0056b3;
}

.text-result .copy-btn:active {
    background: #004085;
}

/* Sora角色创建节点 - 角色列表样式 */
.character-list-container {
    margin-top: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.character-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.character-list-header .list-title {
    font-size: 14px;
    font-weight: 600;
}

.character-list-header .character-count {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
}

.character-list {
    max-height: 300px;
    overflow-y: auto;
    background: white;
}

.character-list::-webkit-scrollbar {
    width: 6px;
}

.character-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.character-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.character-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.empty-list .empty-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-list .empty-text {
    font-size: 14px;
}

.character-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.character-item:last-child {
    border-bottom: none;
}

.character-item:hover {
    background: #f8f9fa;
}

.character-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #e9ecef;
}

.character-info {
    flex: 1;
    min-width: 0;
}

.character-name {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-id-short {
    font-size: 11px;
    color: #6c757d;
    font-family: monospace;
}

.character-copy-btn {
    padding: 6px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.character-copy-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.character-copy-btn:active {
    transform: scale(0.95);
}

/* Sora角色创建节点 - 侧边栏布局 */
.character-list-sidebar {
    position: absolute;
    right: -240px;
    top: 0;
    width: 220px;
    height: 100%;
    z-index: 1;
}

.sora-character-create-node {
    position: relative;
}

.character-list-sidebar .character-list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.character-list-sidebar .character-list {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}

.character-list-sidebar .character-list-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.character-list-sidebar .character-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Sora角色创建节点 - 加宽并使用flex布局 */
.sora-character-create-node {
    min-width: 600px !important;
    width: 600px !important;
}

.sora-character-create-node .node-content {
    display: flex;
    gap: 16px;
}

.sora-character-create-node .node-content > *:not(.character-list-sidebar-inner) {
    flex: 1;
}

/* 角色列表内部侧边栏样式 */
.character-list-sidebar-inner {
    width: 240px;
    flex-shrink: 0;
}

.character-list-sidebar-inner .character-list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.character-list-sidebar-inner .character-list-header {
    background: white !important;
    color: #000;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.character-list-sidebar-inner .list-title {
    font-size: 13px;
    font-weight: 600;
}

.character-list-sidebar-inner .character-count {
    background: #000;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.character-list-sidebar-inner .character-list {
    flex: 1;
    overflow-y: auto;
    background: white;
    border: none;
    border-top: none;
    max-height: 400px;
    padding: 8px;
}

/* 主内容区域样式 */
.node-main-content {
    flex: 1;
    min-width: 0;
}

/* 优化角色列表滚动条 */
.character-list-sidebar-inner .character-list::-webkit-scrollbar {
    width: 6px;
}

.character-list-sidebar-inner .character-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.character-list-sidebar-inner .character-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.character-list-sidebar-inner .character-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Sora角色创建节点 - 简约黑白设计 */
.sora-character-create-node {
    min-width: 700px !important;
    width: 700px !important;
    background: white;
}

.sora-character-create-node .node-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
}

.node-main-content {
    flex: 1;
    min-width: 0;
    max-width: 240px;
}

/* 角色列表侧边栏 - 简约设计 */
.character-list-sidebar-inner {
    flex: 1;
    min-width: 0;
    max-width: 440px;
    flex-shrink: 0;
    background: white;
    border-left: 1px solid #f5f5f5;
    padding-left: 16px;
}

/* 简洁的标题 - 黑白配色 */
.character-list-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.character-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #000;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* 角色列表容器 */
.character-list-sidebar-inner .character-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 16px;
}

/* 滚动条样式 - 简约黑白 */
.character-list-sidebar-inner .character-list::-webkit-scrollbar {
    width: 4px;
}

.character-list-sidebar-inner .character-list::-webkit-scrollbar-track {
    background: transparent;
}

.character-list-sidebar-inner .character-list::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 2px;
}

.character-list-sidebar-inner .character-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 空列表状态 - 简约设计 */
.character-list .empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    text-align: center;
    background: #fafafa;
    border-radius: 4px;
    border: 1px dashed #e5e5e5;
}

.empty-list .empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.3;
}

.empty-list .empty-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.empty-list .empty-text small {
    font-size: 11px;
    color: #999;
}

/* 角色卡片 - 简约黑白设计 */
.character-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    background: white;
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.character-item:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 头像 - 简约边框 */
.character-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f5f5f5;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.character-item:hover .character-avatar {
    border-color: #000;
}

/* 角色信息 */
.character-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.character-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-id-short {
    font-size: 10px;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* 复制按钮 - 黑白配色 */
.character-copy-btn {
    padding: 4px 8px;
    background: white;
    color: #333;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    flex-shrink: 0;
    font-weight: 500;
}

.character-copy-btn:hover {
    background: #000;
    border-color: #000;
    color: white;
    transform: scale(1.05);
}

.character-copy-btn:active {
    transform: scale(0.95);
}

/* Sora节点 - 时间范围输入框样式 */
.sora-character-create-node .timestamp-range-input {
    width: 120px !important;
    max-width: 120px !important;
}

.sora-character-create-node .input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sora-character-create-node .input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.sora-character-create-node .input-group small {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* 角色卡片 - 按钮容器 */
.character-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* 删除按钮样式 */
.character-delete-btn {
    padding: 4px 8px;
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    flex-shrink: 0;
    font-weight: 500;
}

.character-delete-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.05);
}

.character-delete-btn:active {
    transform: scale(0.95);
}

/* 调整复制按钮在有删除按钮时的样式 */
.character-actions .character-copy-btn {
    min-width: 60px;
}

/* 角色列表使用提示 */
.character-list-hint {
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    padding: 6px 0;
    margin-bottom: 8px;
    border-bottom: 1px dashed #f5f5f5;
}

/* 标题左侧容器 */
.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 更新角色列表使用提示样式 - 同行显示 */
.character-list-title .character-list-hint {
    font-size: 9px;
    color: #999;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    border: none;
    font-weight: normal;
}

/* 更新提示文字字号与标题一致 */
.character-list-title .character-list-hint {
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 600 !important;
}

/* 警告框样式 - 黑色虚线边框 */
.warning-box {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px dashed #000;
    border-radius: 4px;
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    background: #fafafa;
}

/* ============ 历史记录弹窗样式 ============ */
.history-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.history-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #f8f9fa;
}

.history-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.history-expire-tip {
    margin-left: 12px;
    font-size: 12px;
    color: #999;
}

.history-modal-header .modal-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.history-modal-header .modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.history-modal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
}

.history-filter-tabs {
    display: flex;
    gap: 8px;
}

.history-tab {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-tab:hover {
    border-color: #333;
    color: #333;
}

.history-tab.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.history-action-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-action-btn:hover {
    border-color: #333;
    color: #333;
}

.history-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 300px;
    background: #fff;
}

.history-loading,
.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #999;
}

.history-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #f5f5f5;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.history-empty p {
    margin: 0;
    font-size: 14px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.history-item {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.history-item:hover {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item-media {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
}

.history-item-media img,
.history-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-item-type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.history-item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.history-item:hover .history-item-actions {
    opacity: 1;
}

.history-item-action {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    color: #333;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.history-item-action:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.history-item-action.delete:hover {
    background: #dc3545;
    border-color: #dc3545;
}

.history-item-info {
    padding: 10px;
}

.history-item-prompt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.history-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.history-item-model {
    background: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
}

.history-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f5f5f5;
    background: #f8f9fa;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #333;
    color: #333;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: #666;
    font-size: 13px;
}

/* 历史记录预览弹窗 */
.history-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.history-preview-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.history-preview-content img,
.history-preview-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.history-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.history-preview-info {
    margin-top: 16px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* ==================== 护眼模式开关样式 ==================== */
.eye-care-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin-left: 4px;
}

.eye-care-toggle .mode-icon {
    transition: opacity 0.3s ease, color 0.3s ease;
    user-select: none;
}

.eye-care-toggle .sun-icon {
    opacity: 1;
    color: #f39c12;
}

.eye-care-toggle .moon-icon {
    opacity: 0.4;
    color: #666;
}

/* 护眼模式开启时的图标状态 */
body.eye-care-mode .eye-care-toggle .sun-icon {
    opacity: 0.4;
    color: #888;
}

body.eye-care-mode .eye-care-toggle .moon-icon {
    opacity: 1;
    color: #f1c40f;
}

body.eye-care-mode .eye-care-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ==================== 护眼模式 - 深色主题 ==================== */
body.eye-care-mode {
    background: #000000;
}

body.eye-care-mode .app {
    background: #000000;
}

/* 顶部栏 */
body.eye-care-mode .top-bar {
    background: #0a0a0a;
    border-bottom-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 开关样式在护眼模式下 */
body.eye-care-mode .eye-care-toggle {
    background: rgba(255, 255, 255, 0.1);
}

body.eye-care-mode .eye-care-toggle .toggle-label {
    color: #d4af37;
}

/* 节点库侧边栏 */
body.eye-care-mode .node-library {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
}

body.eye-care-mode .library-header h3 {
    color: #f5f5f5;
}

body.eye-care-mode .node-template {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .node-template:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.eye-care-mode .template-label {
    color: #f5f5f5;
}

body.eye-care-mode .template-subtitle {
    color: #888;
}

body.eye-care-mode .library-separator::before {
    background: linear-gradient(90deg, transparent, #1f1f1f, transparent);
}

/* 画布列表侧边栏 */
body.eye-care-mode .canvas-list-panel {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
}

body.eye-care-mode .canvas-list-header h3 {
    color: #f5f5f5;
}

body.eye-care-mode .canvas-list-header span {
    color: #666 !important;
}

body.eye-care-mode .canvas-add-btn {
    background: #1a1a1a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .canvas-add-btn:hover {
    background: #1f1f1f;
}

body.eye-care-mode .canvas-item {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #ffffff !important;
}

body.eye-care-mode .canvas-item * {
    color: #ffffff !important;
}

body.eye-care-mode .canvas-item:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.eye-care-mode .canvas-item.active {
    background: #1a1a1a;
    border-color: #d4af37;
}

/* 工作区和画布 */
body.eye-care-mode .workspace {
    background: #000000;
}

body.eye-care-mode .canvas {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.015) 0%, transparent 60%),
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    background-color: #050505;
}

/* 画布控制按钮 */
body.eye-care-mode .canvas-controls {
    background: rgba(10, 10, 10, 0.9);
    border-color: #1a1a1a;
}

body.eye-care-mode .canvas-control-btn {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .canvas-control-btn:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.eye-care-mode .zoom-info {
    color: #888;
}

/* 节点样式 - 灰色节点 + 白色边框 */
body.eye-care-mode .node {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

body.eye-care-mode .node:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

body.eye-care-mode .node-header {
    background: linear-gradient(135deg, #353535, #2f2f2f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f5f5f5;
}

body.eye-care-mode .node-title {
    color: #ffffff !important;
}

body.eye-care-mode .node-content {
    background: #2a2a2a !important;
    color: #e5e5e5;
}

body.eye-care-mode .node-content label {
    color: #d4d4d4;
}

body.eye-care-mode .node-content input,
body.eye-care-mode .node-content textarea,
body.eye-care-mode .node-content select {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .node-content input:focus,
body.eye-care-mode .node-content textarea:focus,
body.eye-care-mode .node-content select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

body.eye-care-mode .node-content input::placeholder,
body.eye-care-mode .node-content textarea::placeholder {
    color: #666;
}

/* 节点端口 */
body.eye-care-mode .node-input,
body.eye-care-mode .node-output {
    background: transparent !important;
}

body.eye-care-mode .input-port,
body.eye-care-mode .output-port {
    background: #d4af37 !important;
    border-color: #000 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4) !important;
}

body.eye-care-mode .input-port:hover,
body.eye-care-mode .output-port:hover {
    background: #f0c850 !important;
    border-color: #000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8) !important;
}

/* 节点分组 */
body.eye-care-mode .node-group {
    background: rgba(30, 30, 30, 0.3) !important;
    border-color: rgba(50, 50, 50, 0.5) !important;
}

body.eye-care-mode .node-group .node-header {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.4), rgba(20, 20, 20, 0.3)) !important;
}

body.eye-care-mode .node-group-title {
    color: #ffffff !important;
    background: rgba(60, 60, 100, 0.5) !important;
    border-color: rgba(60, 60, 60, 0.5) !important;
}

body.eye-care-mode .node-group-title:hover {
    background: rgba(40, 40, 40, 0.6) !important;
}

body.eye-care-mode .node-group-title.editing {
    background: rgba(20, 20, 20, 0.8) !important;
    outline-color: rgba(100, 150, 255, 0.6) !important;
}

body.eye-care-mode .node-group-close-btn {
    color: #ffffff !important;
    background: rgba(255, 100, 100, 0.2) !important;
}

body.eye-care-mode .node-group-close-btn:hover {
    background: rgba(255, 100, 100, 0.4) !important;
}

/* 结果节点 - 与普通节点统一 */
body.eye-care-mode .result-node {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.eye-care-mode .result-node .node-header {
    background: linear-gradient(135deg, #353535, #2f2f2f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f5f5f5 !important;
}

/* 上传节点 - 与普通节点统一 */
body.eye-care-mode .image-upload-node {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.eye-care-mode .image-upload-node .node-header {
    background: linear-gradient(135deg, #353535, #2f2f2f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.eye-care-mode .image-upload-node .node-content {
    background: #2a2a2a !important;
}

/* 视频上传节点 - 与普通节点统一 */
body.eye-care-mode .video-upload-node {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.eye-care-mode .video-upload-node .node-header {
    background: linear-gradient(135deg, #353535, #2f2f2f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.eye-care-mode .video-upload-node .node-content {
    background: #2a2a2a !important;
}

/* 按钮样式 */
body.eye-care-mode .workflow-btn {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .workflow-btn:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

/* 状态面板 */
body.eye-care-mode .status-panel {
    background: rgba(10, 10, 10, 0.9);
    border-color: #1a1a1a;
}

body.eye-care-mode .status-label {
    color: #888;
}

body.eye-care-mode .status-value {
    color: #d4af37;
}

/* 缩放控制面板 */
body.eye-care-mode .zoom-control-panel {
    background: rgba(10, 10, 10, 0.95);
    border-color: #1a1a1a;
}

body.eye-care-mode .zoom-btn {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .zoom-btn:hover {
    background: #1a1a1a;
}

body.eye-care-mode .zoom-percentage-display {
    color: #888;
}

/* 画布列表切换按钮 */
body.eye-care-mode .canvas-toggle-btn {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .canvas-toggle-btn:hover {
    background: #1a1a1a;
}

/* 右键菜单 */
body.eye-care-mode .context-menu {
    background: #2a2a2a;
    border-color: #1f1f1f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body.eye-care-mode .context-menu-header {
    background: #2a2a2a;
    color: #f5f5f5;
    border-bottom-color: #1f1f1f;
}

body.eye-care-mode .context-menu-item {
    color: #e5e5e5;
}

body.eye-care-mode .context-menu-item:hover {
    background: #1a1a1a;
}

/* ========== 文本框右键菜单 - 护眼模式高级感设计 ========== */
body.eye-care-mode .textarea-context-menu {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 6px 0 !important;
    min-width: 140px !important;
}

body.eye-care-mode .textarea-context-menu .context-menu-item {
    color: #e5e5e5 !important;
    background: transparent !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.15s ease !important;
    border-radius: 6px !important;
    margin: 2px 6px !important;
}

body.eye-care-mode .textarea-context-menu .context-menu-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.eye-care-mode .textarea-context-menu .context-menu-item:active {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: scale(0.98) !important;
}

/* 分隔线样式 */
body.eye-care-mode .textarea-context-menu > div[style*="height: 1px"] {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent
    ) !important;
    margin: 6px 12px !important;
}

/* ========== 用户中心 - 护眼模式完整重设计 ========== */

/* 登录按钮 */
body.eye-care-mode .user-center-btn {
    background: linear-gradient(135deg, #1a1a1a, #141414) !important;
    border: 1px solid #1f1f1f !important;
    color: #f5f5f5 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.eye-care-mode .user-center-btn:hover {
    background: linear-gradient(135deg, #1f1f1f, #1a1a1a) !important;
    border-color: #d4af37 !important;
    color: #d4af37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
}

body.eye-care-mode .user-center-btn .user-icon {
    color: #d4af37 !important;
}

/* 已登录状态容器 */
body.eye-care-mode .user-center.logged-in-state {
    color: #f5f5f5 !important;
}

/* 积分和充值容器 */
body.eye-care-mode .points-recharge-container {
    background: linear-gradient(135deg, #141414, #0d0d0d) !important;
    border: 1px solid #1f1f1f !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.eye-care-mode .points-recharge-container .points-label {
    color: #d4af37 !important;
}

body.eye-care-mode .points-recharge-container .points-value {
    color: #d4af37 !important;
    font-weight: 600 !important;
}

body.eye-care-mode .points-recharge-container .separator {
    color: #2a2a2a !important;
}

body.eye-care-mode .points-recharge-container .recharge-link {
    color: #d4af37 !important;
}

body.eye-care-mode .points-recharge-container .recharge-link:hover {
    color: #c0c0c0 !important;
    text-decoration: underline !important;
}

/* 用户菜单触发器 */
body.eye-care-mode .user-menu-trigger {
    background: linear-gradient(135deg, #141414, #0d0d0d) !important;
    border: 2px solid #1f1f1f !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.eye-care-mode .user-menu-trigger:hover {
    border-color: #d4af37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
}

/* 用户头像 */
body.eye-care-mode .user-avatar {
    background: linear-gradient(135deg, #d4af37, #808080) !important;
    color: #0d0d0d !important;
}

/* 用户名 */
body.eye-care-mode .username-text {
    color: #f5f5f5 !important;
}

/* 下拉箭头 */
body.eye-care-mode .dropdown-arrow {
    color: #888 !important;
}

body.eye-care-mode .user-menu-trigger:hover .dropdown-arrow {
    color: #d4af37 !important;
}

/* 下拉菜单 */
body.eye-care-mode .user-dropdown-menu {
    background: #2a2a2a !important;
    border: 1px solid #1f1f1f !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

/* 下拉菜单项 */
body.eye-care-mode .dropdown-item {
    color: #e5e5e5 !important;
    transition: all 0.2s ease !important;
}

body.eye-care-mode .dropdown-item:hover {
    background: #1a1a1a !important;
    color: #d4af37 !important;
}

body.eye-care-mode .dropdown-item svg {
    color: inherit !important;
}

/* 退出登录项特殊样式 */
body.eye-care-mode .dropdown-item.logout-item:hover {
    background: rgba(220, 53, 69, 0.15) !important;
    color: #ff6b6b !important;
}

/* 下拉菜单分隔线 */
body.eye-care-mode .dropdown-divider {
    background: #1f1f1f !important;
    height: 1px !important;
}

/* ========== 弹窗样式 - 护眼模式完整重设计 ========== */

/* 登录弹窗分割线样式 */
body.eye-care-mode .divider span {
    background: #2a2a2a !important;
    color: #888 !important;
}

body.eye-care-mode .divider::before {
    background: #1f1f1f !important;
}


body.eye-care-mode .modal-overlay,
body.eye-care-mode .modal-backdrop {
    background: rgba(0, 0, 0, 0.8) !important;
}

body.eye-care-mode .modal-content,
body.eye-care-mode .modal {
    background: #2a2a2a !important;
    border: 1px solid #1f1f1f !important;
    color: #f5f5f5 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

body.eye-care-mode .modal-header {
    background: #2a2a2a !important;
    border-bottom: 1px solid #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal-header h3 {
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal-close {
    color: #888 !important;
}

body.eye-care-mode .modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal-body {
    background: #2a2a2a !important;
    color: #e5e5e5 !important;
}

body.eye-care-mode .modal-footer {
    background: #2a2a2a !important;
    border-top: 1px solid #1f1f1f !important;
}

/* 配置组 */
body.eye-care-mode .config-group label {
    color: #d4d4d4 !important;
}

body.eye-care-mode .config-group input[type="text"],
body.eye-care-mode .config-group input[type="password"],
body.eye-care-mode .config-group input[type="number"],
body.eye-care-mode .config-group input[type="email"],
body.eye-care-mode .config-group textarea,
body.eye-care-mode .config-group select {
    background: #2a2a2a !important;
    border: 1px solid #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .config-group input:focus,
body.eye-care-mode .config-group textarea:focus,
body.eye-care-mode .config-group select:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

/* 按钮样式 */
body.eye-care-mode .btn {
    color: #f5f5f5 !important;
}

body.eye-care-mode .btn-primary {
    background: linear-gradient(135deg, #d4af37, #808080) !important;
    color: #0d0d0d !important;
}

body.eye-care-mode .btn-primary:hover {
    background: linear-gradient(135deg, #d4d4d4, #909090) !important;
}

body.eye-care-mode .btn-secondary {
    background: #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .btn-secondary:hover {
    background: #2a2a2a !important;
}

/* ========== 个人中心弹窗 ========== */

/* 标签页 */
body.eye-care-mode .profile-tabs {
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .tab-btn {
    color: #888 !important;
    border-bottom-color: transparent !important;
}

body.eye-care-mode .tab-btn.active {
    color: #d4af37 !important;
    border-bottom-color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

body.eye-care-mode .tab-btn:hover:not(.active) {
    color: #d4d4d4 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* 个人信息区块 */
body.eye-care-mode .profile-section {
    color: #f5f5f5 !important;
}

body.eye-care-mode .profile-section h4,
body.eye-care-mode .profile-section h5 {
    color: #f5f5f5 !important;
}

/* 信息项 */
body.eye-care-mode .info-item {
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .info-item label {
    color: #888 !important;
}

body.eye-care-mode .info-item span {
    color: #f5f5f5 !important;
}

/* 统计卡片 */
body.eye-care-mode .stat-card {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .stat-number {
    color: #d4af37 !important;
}

body.eye-care-mode .stat-label {
    color: #888 !important;
}

/* 使用详情 */
body.eye-care-mode .usage-details {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .usage-breakdown-item {
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .usage-tool-name {
    color: #d4d4d4 !important;
}

body.eye-care-mode .usage-count {
    background: #d4af37 !important;
    color: #0d0d0d !important;
}

/* 积分摘要 */
body.eye-care-mode .points-summary {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .summary-item {
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .summary-label {
    color: #888 !important;
}

body.eye-care-mode .summary-value {
    color: #d4af37 !important;
}

/* 消费历史 */
body.eye-care-mode .consumption-item {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .consumption-item:hover {
    background: #1a1a1a !important;
}

/* 表格 */
body.eye-care-mode table {
    border-color: #1f1f1f !important;
}

body.eye-care-mode th {
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode td {
    background: #2a2a2a !important;
    color: #e5e5e5 !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode tr:hover td {
    background: #2a2a2a !important;
}

/* 通用白底容器覆盖 */
body.eye-care-mode .modal [style*="background: white"],
body.eye-care-mode .modal [style*="background:#fff"],
body.eye-care-mode .modal [style*="background: #fff"],
body.eye-care-mode .modal [style*="background-color: white"],
body.eye-care-mode .modal [style*="background: #f8f9fa"],
body.eye-care-mode .modal [style*="background:#f8f9fa"] {
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
}

/* 所有 label 和文字 */
body.eye-care-mode .modal label {
    color: #d4d4d4 !important;
}

body.eye-care-mode .modal p,
body.eye-care-mode .modal span {
    color: inherit !important;
}

/* 输入框通用样式 */
body.eye-care-mode .modal input[type="text"],
body.eye-care-mode .modal input[type="password"],
body.eye-care-mode .modal input[type="email"],
body.eye-care-mode .modal input[type="number"],
body.eye-care-mode .modal textarea,
body.eye-care-mode .modal select {
    background: #2a2a2a !important;
    border: 1px solid #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal input::placeholder,
body.eye-care-mode .modal textarea::placeholder {
    color: #666 !important;
}

/* 图片/视频预览弹窗 */
body.eye-care-mode .image-preview-modal .modal-content,
body.eye-care-mode .video-preview-modal .modal-content {
    background: #2a2a2a !important;
}

body.eye-care-mode .image-preview-modal .modal-header,
body.eye-care-mode .video-preview-modal .modal-header {
    background: #2a2a2a !important;
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .image-preview-modal .modal-footer,
body.eye-care-mode .video-preview-modal .modal-footer {
    background: #2a2a2a !important;
    border-top-color: #1f1f1f !important;
}

/* ========== 充值套餐卡片 ========== */
body.eye-care-mode .pricing-cards {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .pricing-cards h4 {
    color: #ffffff !important;
}

body.eye-care-mode .pricing-card {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .pricing-card:hover {
    background: #1a1a1a !important;
    border-color: #d4af37 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
}

body.eye-care-mode .price-amount {
    color: #d4af37 !important;
}

body.eye-care-mode .price-points {
    color: #ffffff !important;
}

body.eye-care-mode .price-desc {
    color: #d4af37 !important;
}

/* ========== 客服二维码区域 ========== */
body.eye-care-mode .service-qr {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .service-qr h4 {
    color: #ffffff !important;
}

body.eye-care-mode .qr-image {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ========== 使用详情区域 ========== */
body.eye-care-mode .usage-breakdown-section h4 {
    color: #ffffff !important;
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode #userUsageBreakdown {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .breakdown-item {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #ffffff !important;
}

body.eye-care-mode .breakdown-item:hover {
    background: #1a1a1a !important;
}

body.eye-care-mode .breakdown-label {
    color: #d4af37 !important;
}

body.eye-care-mode .breakdown-value {
    color: #d4af37 !important;
}

/* ========== 充值表单 ========== */
body.eye-care-mode .recharge-card {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .recharge-card h4 {
    color: #ffffff !important;
}

body.eye-care-mode .recharge-form label {
    color: #ffffff !important;
}

body.eye-care-mode .recharge-form input {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

body.eye-care-mode .recharge-form input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.eye-care-mode .recharge-form input:focus {
    border-color: #d4af37 !important;
}

body.eye-care-mode .recharge-btn {
    background: #1f1f1f !important;
    color: #ffffff !important;
}

body.eye-care-mode .recharge-btn:hover {
    background: #2a2a2a !important;
}

body.eye-care-mode .recharge-tips {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .recharge-tips p {
    color: #d4af37 !important;
}

/* ========== 个人中心弹窗主色调 ========== */
body.eye-care-mode .large-profile-modal {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .profile-header {
    background: #2a2a2a !important;
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .profile-sidebar {
    background: #2a2a2a !important;
    border-right-color: #1f1f1f !important;
}

body.eye-care-mode .nav-item {
    color: #f5f5f5 !important;
}

body.eye-care-mode .nav-item:hover {
    background: #1a1a1a !important;
}

body.eye-care-mode .nav-item.active {
    background: #1f1f1f !important;
    border-left-color: #d4af37 !important;
    color: #ffffff !important;
}

body.eye-care-mode .profile-content-area {
    background: #2a2a2a !important;
}

body.eye-care-mode .content-header h3 {
    color: #ffffff !important;
}

body.eye-care-mode .modal-close-btn {
    background: #1f1f1f !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
}

body.eye-care-mode .modal-close-btn:hover {
    background: #2a2a2a !important;
}

/* ========== 修改密码表单 ========== */
body.eye-care-mode .password-form-container label,
body.eye-care-mode #password-tab label,
body.eye-care-mode .form-group label,
body.eye-care-mode .modal .form-group label {
    color: #ffffff !important;
}

body.eye-care-mode .password-form-container,
body.eye-care-mode #password-tab {
    color: #ffffff !important;
}

body.eye-care-mode .password-form-container input,
body.eye-care-mode #password-tab input {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #ffffff !important;
}

/* ========== 全局文字颜色强制覆盖 ========== */

/* 弹窗内所有文字 */
body.eye-care-mode .modal,
body.eye-care-mode .modal-content,
body.eye-care-mode .modal-body,
body.eye-care-mode .modal *:not(input):not(textarea):not(select):not(button):not(.btn):not(.generate-btn):not(.recharge-btn) {
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal h1,
body.eye-care-mode .modal h2,
body.eye-care-mode .modal h3,
body.eye-care-mode .modal h4,
body.eye-care-mode .modal h5,
body.eye-care-mode .modal h6,
body.eye-care-mode .modal-content h1,
body.eye-care-mode .modal-content h2,
body.eye-care-mode .modal-content h3,
body.eye-care-mode .modal-content h4,
body.eye-care-mode .modal-content h5,
body.eye-care-mode .modal-content h6 {
    color: #ffffff !important;
}

body.eye-care-mode .modal p,
body.eye-care-mode .modal-content p {
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal label,
body.eye-care-mode .modal-content label {
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal span,
body.eye-care-mode .modal-content span {
    color: #f5f5f5 !important;
}

body.eye-care-mode .modal a,
body.eye-care-mode .modal-content a {
    color: #d4af37 !important;
}

body.eye-care-mode .modal a:hover,
body.eye-care-mode .modal-content a:hover {
    color: #c0c0c0 !important;
}

/* 黑色文字强制覆盖 */
body.eye-care-mode [style*="color: #000"],
body.eye-care-mode [style*="color:#000"],
body.eye-care-mode [style*="color: black"],
body.eye-care-mode [style*="color:black"],
body.eye-care-mode [style*="color: #333"],
body.eye-care-mode [style*="color:#333"],
body.eye-care-mode [style*="color: #212529"],
body.eye-care-mode [style*="color:#212529"],
body.eye-care-mode [style*="color: rgba(0, 0, 0"],
body.eye-care-mode [style*="color:rgba(0, 0, 0"],
body.eye-care-mode [style*="color: rgba(0,0,0"],
body.eye-care-mode [style*="color:rgba(0,0,0"] {
    color: #f5f5f5 !important;
}

/* 绿色文字全部改成白色 */
body.eye-care-mode .modal [style*="color: #4CAF50"],
body.eye-care-mode .modal [style*="color:#4CAF50"],
body.eye-care-mode .modal [style*="color: #28a745"],
body.eye-care-mode .modal [style*="color:#28a745"],
body.eye-care-mode .modal [style*="color: green"],
body.eye-care-mode .modal [style*="color:green"],
body.eye-care-mode .modal [style*="color: #d4af37"],
body.eye-care-mode .modal [style*="color:#d4af37"],
body.eye-care-mode .modal [style*="color: #45a049"],
body.eye-care-mode .modal [style*="color:#45a049"],
body.eye-care-mode .modal [style*="color: #2e7d32"],
body.eye-care-mode .modal [style*="color:#2e7d32"],
body.eye-care-mode .modal-content [style*="color: #4CAF50"],
body.eye-care-mode .modal-content [style*="color:#4CAF50"],
body.eye-care-mode .modal-content [style*="color: #28a745"],
body.eye-care-mode .modal-content [style*="color:#28a745"],
body.eye-care-mode .modal-content [style*="color: green"],
body.eye-care-mode .modal-content [style*="color:green"] {
    color: #ffffff !important;
}

/* 弹窗内积分相关绿色改白色 */
body.eye-care-mode .modal .stat-number,
body.eye-care-mode .modal .points-value,
body.eye-care-mode .modal .summary-value,
body.eye-care-mode .modal .breakdown-value,
body.eye-care-mode .modal .price-amount,
body.eye-care-mode .modal .usage-count {
    color: #ffffff !important;
}

/* ========== 弹窗内所有绿色按钮改成深色 ========== */
body.eye-care-mode .modal button,
body.eye-care-mode .modal .btn,
body.eye-care-mode .modal-content button,
body.eye-care-mode .modal-content .btn {
    background: #1f1f1f !important;
    color: #ffffff !important;
    border-color: #2a2a2a !important;
}

body.eye-care-mode .modal button:hover,
body.eye-care-mode .modal .btn:hover,
body.eye-care-mode .modal-content button:hover,
body.eye-care-mode .modal-content .btn:hover {
    background: #2a2a2a !important;
    border-color: #5a5a7a !important;
}

/* 主要操作按钮（立即充值、修改密码等）*/
body.eye-care-mode .modal .btn-primary,
body.eye-care-mode .modal .recharge-btn,
body.eye-care-mode .modal .submit-btn,
body.eye-care-mode .modal [class*="primary"],
body.eye-care-mode .modal-content .btn-primary {
    background: #1f1f1f !important;
    color: #ffffff !important;
    border-color: #2a2a2a !important;
}

body.eye-care-mode .modal .btn-primary:hover,
body.eye-care-mode .modal .recharge-btn:hover,
body.eye-care-mode .modal .submit-btn:hover,
body.eye-care-mode .modal-content .btn-primary:hover {
    background: #2a2a2a !important;
}

/* 绿色背景按钮强制覆盖 */
body.eye-care-mode .modal [style*="background: #4CAF50"],
body.eye-care-mode .modal [style*="background:#4CAF50"],
body.eye-care-mode .modal [style*="background: #28a745"],
body.eye-care-mode .modal [style*="background:#28a745"],
body.eye-care-mode .modal [style*="background: green"],
body.eye-care-mode .modal [style*="background:green"],
body.eye-care-mode .modal [style*="background-color: #4CAF50"],
body.eye-care-mode .modal [style*="background-color:#4CAF50"],
body.eye-care-mode .modal [style*="background-color: #28a745"],
body.eye-care-mode .modal [style*="background-color:#28a745"],
body.eye-care-mode .modal-content [style*="background: #4CAF50"],
body.eye-care-mode .modal-content [style*="background:#4CAF50"],
body.eye-care-mode .modal-content [style*="background: #28a745"],
body.eye-care-mode .modal-content [style*="background:#28a745"] {
    background: #1f1f1f !important;
    color: #ffffff !important;
}

/* 使用统计数字改白色 */
body.eye-care-mode .modal .stat-card .stat-number,
body.eye-care-mode .modal .usage-stat,
body.eye-care-mode .modal .count,
body.eye-care-mode .modal .number,
body.eye-care-mode .modal .value,
body.eye-care-mode .modal .total,
body.eye-care-mode .modal [class*="count"],
body.eye-care-mode .modal [class*="number"],
body.eye-care-mode .modal [class*="value"],
body.eye-care-mode .modal [class*="total"],
body.eye-care-mode .modal [class*="stat"] {
    color: #ffffff !important;
}

/* Tab 按钮特殊处理 */
body.eye-care-mode .modal .tab-btn {
    background: transparent !important;
    color: #888 !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
}

body.eye-care-mode .modal .tab-btn.active {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

body.eye-care-mode .modal .tab-btn:hover:not(.active) {
    color: #d4d4d4 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* 关闭按钮 */
body.eye-care-mode .modal .modal-close,
body.eye-care-mode .modal-content .modal-close {
    background: transparent !important;
    color: #888 !important;
}

body.eye-care-mode .modal .modal-close:hover,
body.eye-care-mode .modal-content .modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* 信息卡片 */
body.eye-care-mode .info-card {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .info-card h4,
body.eye-care-mode .info-card h5 {
    color: #ffffff !important;
}

body.eye-care-mode .info-card p,
body.eye-care-mode .info-card span,
body.eye-care-mode .info-card label {
    color: #e5e5e5 !important;
}

/* 所有白底容器强制覆盖 */
body.eye-care-mode [style*="background: rgba(255, 255, 255"],
body.eye-care-mode [style*="background:rgba(255, 255, 255"],
body.eye-care-mode [style*="background: rgba(255,255,255"],
body.eye-care-mode [style*="background:rgba(255,255,255"] {
    background: #2a2a2a !important;
}

/* 历史记录面板 */
body.eye-care-mode .history-panel {
    background: #2a2a2a;
    border-color: #1f1f1f;
}

body.eye-care-mode .history-panel-header {
    background: #2a2a2a;
    border-bottom-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .history-item {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #e5e5e5;
}

body.eye-care-mode .history-item:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

/* 历史记录卡片简化 - 图片铺满，时间悬浮 */
body.eye-care-mode .history-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: transparent !important;
    z-index: 2;
}

body.eye-care-mode .history-item-prompt {
    display: none !important;
}

body.eye-care-mode .history-item-meta {
    justify-content: flex-end;
}

body.eye-care-mode .history-item-model {
    display: none !important;
}

body.eye-care-mode .history-item-meta span:last-child {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
}

/* 滚动条样式 */
body.eye-care-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.eye-care-mode ::-webkit-scrollbar-track {
    background: #0a0a0a;
}

body.eye-care-mode ::-webkit-scrollbar-thumb {
    background: #1f1f1f;
    border-radius: 4px;
}

body.eye-care-mode ::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* 连接线颜色 */
body.eye-care-mode .connections path {
    stroke: rgba(255, 255, 255, 0.6) !important;
}

body.eye-care-mode .connections path.active {
    stroke: #ffffff !important;
}

/* 提示文字 */
body.eye-care-mode .hint-text,
body.eye-care-mode .tip-text {
    color: #888;
}

/* 加载状态 */
body.eye-care-mode .loading-spinner {
    border-color: #1f1f1f;
    border-top-color: #d4af37;
}

/* 过渡动画 - 移除通用过渡以避免性能问题 */

/* 节点说明容器（内联样式覆盖） */
body.eye-care-mode .usage-tips,
body.eye-care-mode .jimeng-usage-tips,
body.eye-care-mode .points-status-container,
body.eye-care-mode .info-hint,
body.eye-care-mode .quantity-hint,
body.eye-care-mode .connection-hint,
body.eye-care-mode .upload-hint,
body.eye-care-mode .image-count-hint,
body.eye-care-mode .min-images-hint,
body.eye-care-mode [class*="hint"],
body.eye-care-mode [class*="tips"],
body.eye-care-mode [class*="note"],
body.eye-care-mode [style*="background: #f8f9fa"],
body.eye-care-mode [style*="background: #f5f5f5"],
body.eye-care-mode [style*="background:#f8f9fa"],
body.eye-care-mode [style*="background:#f5f5f5"] {
    background: #2a2a2a !important;
    color: #d4d4d4 !important;
    border-left-color: rgba(255, 255, 255, 0.3) !important;
}

/* 节点边框和分隔线 - 去除所有分隔线 */
body.eye-care-mode .node-header {
    border-bottom: none !important;
}

body.eye-care-mode .node-content .input-group:not(:last-child) {
    border-bottom: none !important;
}

body.eye-care-mode .input-group {
    border: none !important;
}

body.eye-care-mode .input-group label {
    color: #d4d4d4 !important;
}

body.eye-care-mode .input-group textarea,
body.eye-care-mode .input-group .text-input {
    background: #222222 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .input-group textarea:focus,
body.eye-care-mode .input-group .text-input:focus {
    border-color: #d4af37 !important;
    background: #1a1a1a !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

body.eye-care-mode .param-select {
    background-color: #141414 !important;
    border-color: #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .param-select:hover,
body.eye-care-mode .param-select:focus {
    border-color: #d4af37 !important;
}

body.eye-care-mode .param-row {
    color: #d4d4d4 !important;
}

body.eye-care-mode .node *[style*="border"] {
    border-color: #1f1f1f !important;
}

body.eye-care-mode .node hr,
body.eye-care-mode .node-content hr {
    border-color: #1f1f1f !important;
    background: #1f1f1f !important;
}

/* 节点内所有白色/浅色背景元素 */
body.eye-care-mode .node [style*="background: white"],
body.eye-care-mode .node [style*="background:#fff"],
body.eye-care-mode .node [style*="background: #fff"],
body.eye-care-mode .node [style*="background-color: white"],
body.eye-care-mode .node [style*="background-color:#fff"] {
    background: #2a2a2a !important;
}

/* 端口标签 */
body.eye-care-mode .port-label {
    background: rgba(30, 30, 50, 0.95) !important;
    color: #f5f5f5 !important;
    border-color: #1f1f1f !important;
}

/* 节点操作按钮区域 */
body.eye-care-mode .node-actions {
    background: #2a2a2a !important;
    border-top: none !important;
}

/* 生成按钮 - 蓝紫色调 */
body.eye-care-mode .generate-btn,
body.eye-care-mode .regenerate-btn {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #ffffff !important;
}

body.eye-care-mode .generate-btn:hover,
body.eye-care-mode .regenerate-btn:hover {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a) !important;
    border-color: rgba(212, 175, 55, 0.7) !important;
}

/* 使用说明按钮 */
body.eye-care-mode .help-button-container .help-button {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

body.eye-care-mode .help-button-container .help-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

body.eye-care-mode .help-button .help-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

body.eye-care-mode .help-button .help-text {
    color: #ffffff !important;
}

/* 苹果风格按钮 */
body.eye-care-mode .apple-button {
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .apple-button:hover:not(:disabled) {
    background: #1f1f1f !important;
}

/* 字符列表提示 */
body.eye-care-mode .character-list-hint {
    color: #888 !important;
}

/* 上传区域 */
body.eye-care-mode .upload-area,
body.eye-care-mode .image-upload-area,
body.eye-care-mode .video-upload-area {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #d4d4d4 !important;
}

body.eye-care-mode .upload-area:hover,
body.eye-care-mode .image-upload-area:hover,
body.eye-care-mode .video-upload-area:hover {
    border-color: #d4af37 !important;
    background: #1a1a1a !important;
}

/* 图片上传节点 - 完整样式 */
body.eye-care-mode .image-upload-full,
body.eye-care-mode .image-upload-clean {
    background: transparent !important;
}

body.eye-care-mode .upload-dropzone {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .upload-dropzone:hover {
    background: #1a1a1a !important;
    border-color: #5a5a7a !important;
}

body.eye-care-mode .upload-icon {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .upload-hint {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .upload-btn {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

body.eye-care-mode .upload-btn:hover {
    background: #5a5a7a !important;
}

body.eye-care-mode .image-preview {
    background: transparent !important;
}

body.eye-care-mode .image-preview img {
    background: transparent !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .image-upload-clean .image-preview img {
    background: transparent !important;
    border-color: #1f1f1f !important;
}

/* 视频上传节点 - 完整样式 */
body.eye-care-mode .video-upload-node .node-content {
    min-height: 200px !important;
    background: #2a2a2a !important;
}

body.eye-care-mode .video-upload-full {
    background: transparent !important;
    min-height: 200px !important;
}

body.eye-care-mode .video-preview {
    background: transparent !important;
}

body.eye-care-mode .video-info {
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .remove-video-btn,
body.eye-care-mode .remove-image-btn {
    background: rgba(255, 100, 100, 0.3) !important;
    color: #ffffff !important;
}

body.eye-care-mode .remove-video-btn:hover,
body.eye-care-mode .remove-image-btn:hover {
    background: rgba(255, 100, 100, 0.5) !important;
}

/* 视频上传节点 - has-full-video 样式覆盖 */
body.eye-care-mode .node.has-full-video {
    background: #2a2a2a !important;
}

body.eye-care-mode .node.has-full-video {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.eye-care-mode .node.has-full-video .node-header {
    background: linear-gradient(135deg, #353535, #2f2f2f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.eye-care-mode .node.has-full-video .node-content {
    background: #2a2a2a !important;
}

body.eye-care-mode .node.has-full-video .video-upload-full {
    background: transparent !important;
}

body.eye-care-mode .node.has-full-video .video-preview {
    background: #2a2a2a !important;
}

body.eye-care-mode .node.has-full-video .preview-video {
    background: #2a2a2a !important;
}

/* 图片上传节点 - has-full-image 样式覆盖 */
body.eye-care-mode .node.has-full-image {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.eye-care-mode .node.has-full-image .node-header {
    background: linear-gradient(135deg, #353535, #2f2f2f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.eye-care-mode .node.has-full-image .node-content {
    background: #2a2a2a !important;
}

body.eye-care-mode .node.has-full-image .image-upload-full,
body.eye-care-mode .node.has-full-image .image-upload-clean {
    background: transparent !important;
}

body.eye-care-mode .node.has-full-image .image-preview {
    background: #2a2a2a !important;
}

/* 智能画布节点 */
body.eye-care-mode .smart-canvas-node {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .smart-canvas-node:hover {
    border-color: #2a2a2a !important;
}

/* 节点缩小按钮和关闭按钮 */
body.eye-care-mode .node-minimize-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body.eye-care-mode .node-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body.eye-care-mode .node-close-btn {
    background: rgba(255, 100, 100, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 100, 100, 0.4) !important;
}

body.eye-care-mode .node-close-btn:hover {
    background: rgba(255, 100, 100, 0.4) !important;
    color: #ffffff !important;
    border-color: rgba(255, 100, 100, 0.6) !important;
}

/* Sora角色创建节点 - 角色列表护眼模式 */
body.eye-care-mode .character-list-container {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .character-list-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%) !important;
}

body.eye-care-mode .character-list {
    background: #2a2a2a !important;
}

body.eye-care-mode .character-list::-webkit-scrollbar-track {
    background: #2a2a2a !important;
}

body.eye-care-mode .character-list::-webkit-scrollbar-thumb {
    background: #2a2a2a !important;
}

body.eye-care-mode .character-list::-webkit-scrollbar-thumb:hover {
    background: #5a5a7a !important;
}

body.eye-care-mode .character-item {
    background: #2a2a2a !important;
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .character-item:hover {
    background: #2a2a2a !important;
}

body.eye-care-mode .character-name {
    color: #ffffff !important;
}

body.eye-care-mode .character-id-short {
    color: #d4af37 !important;
}

body.eye-care-mode .character-avatar {
    border-color: #1f1f1f !important;
}

body.eye-care-mode .empty-list {
    color: #888 !important;
}

body.eye-care-mode .empty-list .empty-text {
    color: #d4af37 !important;
}

body.eye-care-mode .character-copy-btn {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

body.eye-care-mode .character-copy-btn:hover {
    background: #5a5a7a !important;
}

/* 角色列表侧边栏内部样式 */
body.eye-care-mode .character-list-sidebar-inner {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .character-list-sidebar-inner .character-list-container {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .character-list-title {
    color: #ffffff !important;
    background: #2a2a2a !important;
    border-bottom-color: #1f1f1f !important;
}

body.eye-care-mode .character-list-sidebar-inner .character-list {
    background: #2a2a2a !important;
}

/* 智能抠图节点 - 护眼模式 */
body.eye-care-mode .matting-options {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .matting-options label {
    color: #ffffff !important;
    background: transparent !important;
}

body.eye-care-mode .matting-options select {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .matting-options select:focus {
    border-color: #5a5a7a !important;
    box-shadow: 0 0 0 2px rgba(90, 90, 122, 0.3) !important;
}

body.eye-care-mode .matting-progress {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .matting-progress .progress-message {
    color: #f5f5f5 !important;
    background: transparent !important;
}

body.eye-care-mode .matting-progress .progress-bar {
    background: #1f1f1f !important;
}

body.eye-care-mode .matting-progress .progress-fill {
    background: linear-gradient(90deg, #2a2a2a, #5a5a7a) !important;
}

/* 智能画布节点 - 护眼模式 (覆盖内联样式) */
body.eye-care-mode .smart-canvas-container {
    background: transparent !important;
}

body.eye-care-mode .canvas-main-area,
body.eye-care-mode .canvas-main-area[style],
body.eye-care-mode [class*="canvas-main-area"] {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .canvas-placeholder,
body.eye-care-mode .canvas-placeholder[style] {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .canvas-placeholder div,
body.eye-care-mode .canvas-placeholder div[style] {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .canvas-operation-bar,
body.eye-care-mode .canvas-operation-bar[style] {
    background: transparent !important;
}

body.eye-care-mode .layer-selector,
body.eye-care-mode .layer-selector[style] {
    background: transparent !important;
}

body.eye-care-mode .layer-selector > div,
body.eye-care-mode .layer-selector > div[style] {
    color: #f5f5f5 !important;
    background: transparent !important;
}

body.eye-care-mode .layer-btn,
body.eye-care-mode .layer-btn[style],
body.eye-care-mode button.layer-btn {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .layer-btn:hover {
    background: #1a1a1a !important;
    border-color: #5a5a7a !important;
}

body.eye-care-mode .layer-btn.active {
    background: #2a2a2a !important;
    border-color: #007AFF !important;
    color: #ffffff !important;
}

body.eye-care-mode .layer-up-btn,
body.eye-care-mode .layer-up-btn[style],
body.eye-care-mode .layer-down-btn,
body.eye-care-mode .layer-down-btn[style],
body.eye-care-mode button.layer-up-btn,
body.eye-care-mode button.layer-down-btn {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #f5f5f5 !important;
}

body.eye-care-mode .layer-up-btn:hover,
body.eye-care-mode .layer-down-btn:hover {
    background: #1a1a1a !important;
    border-color: #5a5a7a !important;
}

body.eye-care-mode .layer-order-controls,
body.eye-care-mode .layer-order-controls[style] {
    background: transparent !important;
}

/* 智能画布2节点 - 护眼模式 (覆盖内联样式) */
body.eye-care-mode .smart-canvas2-container {
    background: transparent !important;
}

body.eye-care-mode .canvas2-toolbar,
body.eye-care-mode .canvas2-toolbar[style] {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .canvas2-toolbar .tool-btn,
body.eye-care-mode .canvas2-toolbar .tool-btn[style] {
    color: #f5f5f5 !important;
    background: transparent !important;
}

body.eye-care-mode .canvas2-toolbar .tool-btn[style*="background: #2c3e50"],
body.eye-care-mode .canvas2-toolbar .tool-btn.active {
    background: #2a2a2a !important;
    color: #ffffff !important;
}

body.eye-care-mode .canvas2-toolbar > div,
body.eye-care-mode .canvas2-toolbar > div[style] {
    background: transparent !important;
}

body.eye-care-mode .brush-size-display,
body.eye-care-mode .brush-size-display[style],
body.eye-care-mode span.brush-size-display {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .brush-size-slider,
body.eye-care-mode .brush-size-slider[style] {
    background: #1f1f1f !important;
}

body.eye-care-mode .canvas2-main-area,
body.eye-care-mode .canvas2-main-area[style] {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
}

body.eye-care-mode .canvas2-placeholder,
body.eye-care-mode .canvas2-placeholder[style] {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .canvas2-placeholder div,
body.eye-care-mode .canvas2-placeholder div[style] {
    color: #d4af37 !important;
    background: transparent !important;
}

body.eye-care-mode .canvas2-placeholder span,
body.eye-care-mode .canvas2-placeholder span[style] {
    color: #888 !important;
    background: #2a2a2a !important;
}

/* 智能画布 - 加载/清空按钮 */
body.eye-care-mode .load-image-btn[style],
body.eye-care-mode button.load-image-btn {
    background: #4a6a4a !important;
}

body.eye-care-mode .undo-canvas2-btn[style],
body.eye-care-mode button.undo-canvas2-btn {
    background: #4a4a5a !important;
}

body.eye-care-mode .clear-canvas2-btn[style],
body.eye-care-mode button.clear-canvas2-btn {
    background: #6a5a4a !important;
}

/* 智能画布 canvas 元素背景 */
body.eye-care-mode .smart-canvas,
body.eye-care-mode canvas.smart-canvas {
    background: #2a2a2a !important;
}

body.eye-care-mode .smart-canvas-2,
body.eye-care-mode canvas.smart-canvas-2 {
    background: #2a2a2a !important;
}

/* 智能画布1 - 加载/清空按钮 */
body.eye-care-mode .load-images-btn[style],
body.eye-care-mode button.load-images-btn {
    background: #3a5a8a !important;
}

body.eye-care-mode .clear-canvas-btn[style],
body.eye-care-mode button.clear-canvas-btn {
    background: #6a4a4a !important;
}

/* 智能画布 - 工具按钮组背景 */
body.eye-care-mode .canvas2-toolbar > div[style*="background"] {
    background: #2a2a2a !important;
}

/* 智能画布节点内的 select 下拉框 */
body.eye-care-mode .smart-canvas-node select,
body.eye-care-mode .smart-canvas-2-node select {
    background: #2a2a2a !important;
    border-color: #1f1f1f !important;
    color: #f5f5f5 !important;
}

/* 智能画布节点内的 node-content 背景 */
body.eye-care-mode .smart-canvas-node .node-content,
body.eye-care-mode .smart-canvas-2-node .node-content {
    background: #2a2a2a !important;
}

/* 智能画布节点头部 */
body.eye-care-mode .smart-canvas-node .node-header,
body.eye-care-mode .smart-canvas-2-node .node-header {
    background: linear-gradient(135deg, #141414, #1a1a1a) !important;
    border-bottom-color: #1f1f1f !important;
}

/* 智能画布容器 */
body.eye-care-mode .smart-canvas-container,
body.eye-care-mode .smart-canvas-container[style] {
    background: #2a2a2a !important;
}

body.eye-care-mode .smart-canvas2-container,
body.eye-care-mode .smart-canvas2-container[style] {
    background: #2a2a2a !important;
}

/* 智能画布操作栏 */
body.eye-care-mode .canvas-operation-bar,
body.eye-care-mode .canvas-operation-bar[style] {
    background: #2a2a2a !important;
}

/* 智能画布占位符文字背景 - 确保透明 */
body.eye-care-mode .canvas-placeholder,
body.eye-care-mode .canvas-placeholder[style],
body.eye-care-mode .canvas-placeholder div,
body.eye-care-mode .canvas-placeholder div[style] {
    background: transparent !important;
    color: #d4af37 !important;
}

body.eye-care-mode .canvas2-placeholder,
body.eye-care-mode .canvas2-placeholder[style],
body.eye-care-mode .canvas2-placeholder div,
body.eye-care-mode .canvas2-placeholder div[style] {
    background: transparent !important;
    color: #d4af37 !important;
}

/* 智能画布2 标签背景 */
body.eye-care-mode .canvas2-placeholder span,
body.eye-care-mode .canvas2-placeholder span[style] {
    background: #2a2a2a !important;
    color: #888 !important;
}

/* 智能画布节点整体背景 */
body.eye-care-mode .smart-canvas-node,
body.eye-care-mode .smart-canvas-2-node {
    background: #2a2a2a !important;
}

/* ==================== VEO3.1 视频延长功能样式 ==================== */

/* 视频延长区块 */
.video-extend-section {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

/* 延长提示词输入框行 */
.extend-input-row {
    margin-bottom: 8px;
}

.extend-prompt-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.extend-prompt-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.extend-prompt-input::placeholder {
    color: #9ca3af;
}

/* 延长操作行 */
.extend-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* 延长视频按钮 */
.extend-video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.extend-video-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.extend-video-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.extend-video-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #9ca3af;
    box-shadow: none;
}

/* 延长次数信息 */
.extend-count-info {
    font-size: 12px;
    color: #6b7280;
}

/* 延长中状态遮罩 */
.extend-status-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;
    border-radius: 8px;
    z-index: 10;
}

.extend-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
}

/* 延长中旋转加载动画 */
.extend-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: extend-spin 1s linear infinite;
}

@keyframes extend-spin {
    to {
        transform: rotate(360deg);
    }
}

.extend-status-text {
    font-size: 14px;
    font-weight: 500;
}

/* 护眼模式适配 */
body.eye-care-mode .video-extend-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-color: #1f1f1f;
}

body.eye-care-mode .extend-prompt-input {
    background: #2a2a2a;
    border-color: #1f1f1f;
    color: #f5f5f5;
}

body.eye-care-mode .extend-prompt-input::placeholder {
    color: #666;
}

body.eye-care-mode .extend-prompt-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.eye-care-mode .extend-count-info {
    color: #888;
}
