{{template "admin/layout/base.html" .}}
        <div class="page-header">
            <h1>站点设置</h1>
            <p class="page-desc">管理站点基本配置、维护开关、审核开关与注册策略</p>
        </div>

        <!-- 基本设置 -->
        <div class="settings-section">
            <div class="section-title">基本设置</div>
            <div class="section-body">
                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">版权信息</span>
                        <span class="setting-desc">页脚附加信息，留空则隐藏（如 "Framework: MetaZone"）</span>
                    </div>
                    <div class="setting-input-wrap">
                        <input type="text" id="setting-site-framework" class="setting-input" placeholder="留空则不显示" value="{{.Framework}}">
                        <button class="btn btn-sm btn-primary btn-save" data-key="site.framework" data-input="setting-site-framework">保存</button>
                    </div>
                </div>
                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">版权起始年份</span>
                        <span class="setting-desc">页脚版权标起始年（如 2024 → © 2024-当前年）</span>
                    </div>
                    <div class="setting-input-wrap">
                        <input type="text" id="setting-site-copyright" class="setting-input" placeholder="2024" value="{{.CopyrightStart}}">
                        <button class="btn btn-sm btn-primary btn-save" data-key="site.copyright_start" data-input="setting-site-copyright">保存</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 维护设置 -->
        <div class="settings-section">
            <div class="section-title">维护设置</div>
            <div class="section-body">
                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">启用维护模式</span>
                        <span class="setting-desc">开启后仅站长可登录和访问，其他用户将看到维护提示</span>
                    </div>
                    <label class="toggle-switch">
                        <input type="checkbox" id="maintenance-enabled" data-key="maintenance.enabled">
                        <span class="toggle-slider"></span>
                    </label>
                </div>
            </div>
        </div>

        <!-- 注册设置 -->
        <div class="settings-section">
            <div class="section-title">注册设置</div>
            <div class="section-body">
                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">允许注册</span>
                        <span class="setting-desc">关闭后，新用户将无法注册</span>
                    </div>
                    <label class="toggle-switch">
                        <input type="checkbox" id="registration-enabled" data-key="registration.enabled">
                        <span class="toggle-slider"></span>
                    </label>
                </div>
            </div>
        </div>

        <!-- 审核设置 -->
        <div class="settings-section">
            <div class="section-title">审核设置</div>
            <div class="section-body">
                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">启用审核系统</span>
                        <span class="setting-desc">启用后，用户名、头像、签名修改将进入审核流程</span>
                    </div>
                    <label class="toggle-switch">
                        <input type="checkbox" id="audit-enabled" data-key="audit.enabled">
                        <span class="toggle-slider"></span>
                    </label>
                </div>

                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">用户名审核</span>
                        <span class="setting-desc">更改用户名需要管理员审核</span>
                    </div>
                    <label class="toggle-switch">
                        <input type="checkbox" id="audit-username" data-key="audit.username_audit">
                        <span class="toggle-slider"></span>
                    </label>
                </div>

                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">头像审核</span>
                        <span class="setting-desc">更改头像需要管理员审核</span>
                    </div>
                    <label class="toggle-switch">
                        <input type="checkbox" id="audit-avatar" data-key="audit.avatar_audit">
                        <span class="toggle-slider"></span>
                    </label>
                </div>

                <div class="setting-item">
                    <div class="setting-info">
                        <span class="setting-label">签名审核</span>
                        <span class="setting-desc">更改个人签名需要管理员审核</span>
                    </div>
                    <label class="toggle-switch">
                        <input type="checkbox" id="audit-bio" data-key="audit.bio_audit">
                        <span class="toggle-slider"></span>
                    </label>
                </div>
            </div>
        </div>

        <!-- 通用设置 -->
        <div class="settings-section">
            <div class="section-title">其他设置</div>
            <div class="section-body" id="general-settings">
                <div class="settings-empty" id="settings-empty">加载中...</div>
            </div>
        </div>
{{template "admin/layout/footer.html" .}}
