<div class="page-head">
    <div><h1>站点设置</h1><div class="desc">网站名称、联系方式与 SEO 信息</div></div>
</div>
<div class="admin-card">
    <form method="post" action="<?php echo site_url('admin/settings'); ?>" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <div class="form-grid">
            <div class="field"><label>网站名称</label><input name="site_name" value="<?php echo e($v['site_name']); ?>"></div>
            <div class="field"><label>网站标语</label><input name="site_slogan" value="<?php echo e($v['site_slogan']); ?>"></div>
            <div class="field"><label>联系电话</label><input name="contact_phone" value="<?php echo e($v['contact_phone']); ?>"></div>
            <div class="field"><label>联系邮箱</label><input name="contact_email" value="<?php echo e($v['contact_email']); ?>"></div>
        </div>
        <div class="field"><label>联系地址</label><input name="contact_address" value="<?php echo e($v['contact_address']); ?>"></div>
        <div class="field" style="grid-column:1/-1">
            <label>网站 Logo（酷冰甲商标）</label>
            <input type="file" name="logo" accept="image/*">
            <small style="color:#888;display:block;margin-top:4px">选择图片上传将替换当前 Logo；也可在下方直接填写图片路径或网址（留空则保留现有）。当前：<?php echo e($v['site_logo'] ?: '默认商标'); ?></small>
            <input type="text" name="logo_url" value="<?php echo e($v['site_logo']); ?>" placeholder="图片路径或网址，如 assets/img/logo.png 或 https://...">
        </div>
        <div class="field"><label>备案号（ICP）</label><input name="icp" value="<?php echo e($v['icp']); ?>" placeholder="如 苏ICP备XXXXXXXX号"></div>
        <div class="field"><label>公安备案号（网安备）</label><input name="gongan" value="<?php echo e($v['gongan'] ?? ''); ?>" placeholder="如 京公网安备11010802012345号"></div>
        <hr style="border:none;border-top:1px solid #eef2f7;margin:18px 0">
        <div class="field"><label>SEO 标题</label><input name="seo_title" value="<?php echo e($v['seo_title']); ?>"></div>
        <div class="field"><label>SEO 关键词</label><input name="seo_keywords" value="<?php echo e($v['seo_keywords']); ?>"></div>
        <div class="field"><label>SEO 描述</label><textarea name="seo_description"><?php echo e($v['seo_description']); ?></textarea></div>
        <div class="form-actions">
            <button class="btn-primary" type="submit">保存设置</button>
        </div>
    </form>
</div>
