{% extends "base.html" %} {% block extra_styles %} /* 帮助卡片内联样式,优化长说明展示 */ body { padding: 8px; } .card { max-width: none; width: 100%; } .help-section-title { font-size: 18px; font-weight: 800; color: #111827; margin: 14px 0 10px; padding: 6px 10px; border-left: 4px solid #667eea; background: linear-gradient(90deg, #f8fafc 0%, rgba(248,250,252,0) 100%); border-radius: 4px; } .help-row { display: grid; grid-template-columns: 220px 1fr; /* 固定左列宽度,右列自适应,确保第二列统一对齐 */ align-items: start; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; } .help-row:last-child { border-bottom: none; } .help-label { font-weight: 500; color: #4b5563; text-align: left; white-space: normal; /* 允许命令名换行,避免被裁剪 */ overflow: visible; text-overflow: initial; word-break: break-word; } .help-desc { flex: 1 1 auto; font-size: 14px; color: #6b7280; line-height: 1.6; word-break: break-word; overflow-wrap: anywhere; } /* 命令示例(小字) */ .cmd-mini { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; font-size: 12px; color: #9ca3af; } .cmd-inline { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; padding: 4px 8px; margin-right: 6px; word-break: break-all; /* 示例过长时允许断行,避免裁剪 */ line-height: 1.2; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; min-height: 20px; box-sizing: border-box; } {% endblock %} {% block content %}
使用帮助