/* 固定在头部的输入框样式 */ .fixed-header { position: fixed; top: 0; left: 0; width: 100%; background: linear-gradient(135deg, #6e8efb, #a777e3); z-index: 999; padding: 15px 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); display: flex; justify-content: center; align-items: center; } .fixed-header .layui-form-item { margin-bottom: 0; display: flex; align-items: center; } .fixed-header .layui-form-label { color: #fff; font-weight: bold; margin-right: 10px; } .fixed-header .layui-input { border-radius: 20px; border: none; padding: 10px 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: all 0.3s; } .fixed-header .layui-input:focus { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } .fixed-header .layui-btn { border-radius: 20px; border: none; background: #fff; color: #6e8efb; font-weight: bold; padding: 10px 20px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: all 0.3s; display: flex; justify-content: center; align-items: center; height: 40px; /* 确保按钮高度与输入框一致 */ } .fixed-header .layui-btn:hover { background: #f8f8f8; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } /* 历史记录下拉菜单 */ .history-dropdown { position: absolute; top: 100%; left: 0; width: 100%; max-height: 200px; overflow-y: auto; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); z-index: 1000; display: none; } .history-dropdown div { padding: 8px 15px; cursor: pointer; border-bottom: 1px solid #eee; } .history-dropdown div:hover { background: #f5f5f5; } /* 固定左侧面板样式,确保表单项垂直排列且显示在左侧 */ .fixed-left { position: fixed; left: 12px; /* 根据需要微调 */ top: 65px; /* 与头部高度对齐(调整为实际头部高度) */ width: 260px; /* 根据需要调整宽度 */ z-index: 999; background: transparent; padding: 8px 6px; } /* 强制 LayUI 表单项垂直堆叠,消除 layui-input-block 的左右偏移 */ .fixed-left .layui-form { display: flex; flex-direction: column; gap: 8px; } .fixed-left .layui-form .layui-form-item { display: flex; align-items: center; } .fixed-left .layui-form .layui-form-label { width: 72px; /* 标签宽度,可调整 */ padding-right: 6px; } .fixed-left .layui-form .layui-input-block { flex: 1; margin-left: 0; /* 清除 LayUI 的默认左边距 */ } /* 按钮横向排列并自适应 */ .fixed-left .layui-btn { display: inline-block; vertical-align: middle; } /* 使两个按钮并排且间距合适,使用小号按钮样式 */ .inline-btns { display: flex; gap: 8px; align-items: center; } /* 可选:更小屏幕时改为竖排按钮 */ @media (max-width: 600px) { .fixed-left { position: static; width: auto; padding: 0; } .fixed-left .layui-form { gap: 6px; } } /* 调整主内容区域,避免被左侧固定栏遮挡 */ .layui-container { margin-left: 350px; } /* 道具区域的额外右移样式 */ .asset-form { margin-left: 40px; /* 向右移动 40px */ } .layui-input-inline.double-button { display: flex; gap: 10px; width: 290px; } .layui-input-inline.gm-input { width: 300px; } .layui-input-inline.handle-gm-btn { width: 70px; } /* GM命令帮助窗口样式 */ .help-btn { width: 40px !important; padding: 10px !important; } .gm-help-window { position: absolute; top: 100%; right: 0; width: 500px; max-height: 600px; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); z-index: 1001; display: none; border: 1px solid #e6e6e6; } .help-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #e6e6e6; background: #f8f9fa; border-radius: 8px 8px 0 0; } .help-header h3 { margin: 0; color: #333; font-size: 16px; } .close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } .close-btn:hover { color: #333; background: #e6e6e6; border-radius: 50%; } .help-content { padding: 20px; max-height: 400px; overflow-y: auto; } .help-section { margin-bottom: 20px; } .help-section h4 { margin: 0 0 10px 0; color: #6e8efb; font-size: 14px; font-weight: bold; } .help-section ul { margin: 0; padding-left: 20px; } .help-section li { margin-bottom: 8px; font-size: 15px; line-height: 1.4; color: #666; } .help-section code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-family: 'Courier New', monospace; color: #e74c3c; font-size: 15px; }