<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        body {
            font-family: Arial, sans-serif;
            padding: 30px;
            max-width: 800px;
            margin: 0 auto;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid ;
        }
        .description {
            margin-bottom: 30px;
            line-height: 1.5;
            padding: 15px;
            background-color: rgba(0,0,0,0.03);
            border-radius: 5px;
        }
        .commands {
            margin-top: 20px;
        }
        .commands h3 {
            margin-bottom: 15px;
        }
        .command {
            margin-bottom: 15px;
            padding: 12px;
            background-color: rgba(0,0,0,0.02);
            border-radius: 5px;
        }
        .command-text {
            font-weight: bold;
            font-family: monospace;
            font-size: 16px;
        }
        .command-desc {
            margin-top: 5px;
        }
        .aliases {
            margin-top: 8px;
            font-size: 14px;
            padding-left: 10px;
        }
        .meta {
            display: flex;
            gap: 20px;
            margin-bottom: 10px;
            font-size: 14px;
        }
        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
    </style>
</head>
<body>
    <div class="title">{{ title }}</div>
    {{if version || description || author}}
    <div class="meta">
        {{if version}}<div class="meta-item">📦 版本: {{ version }}</div>{{/if}}
        {{if author}}<div class="meta-item">👤 作者: {{ author }}</div>{{/if}}
    </div>
    {{if description}}
    <div class="description">
        📝 {{ description }}
    </div>
    {{/if}}
    {{/if}}
    <div class="commands">
        <h3>🔧 可用命令</h3>
        {{each commands}}
        <div class="command">
            <div class="command-text">{{ $value.fullCmd }}</div>
            <div class="command-desc">{{ $value.desc }}</div>
            {{if $value.aliases && $value.aliases.length}}
            <div class="aliases">别名: {{ $value.aliases.join(', ') }}</div>
            {{/if}}
        </div>
        {{/each}}
    </div>
</body>
</html>