文件
fenleixinxi/application/admin/view/index/login.html
linda e8b5ae6f16 feat(admin): 主题对齐春绿(Spring Green v4 · #00E070)
- FcInstall:BANNERS 种子改 105deg 亮绿→深绿(与小程序 common/mock/data.js 逐字对齐)
- FcInstall:幂等升级新增 LEGACY_COLOR_KEYS,可识别「旧暖橙 + v1.2 生态绿」两种历史底色并覆盖为春绿,
  已是春绿渐变或运营自定义标题的轮播自动跳过(老库执行 php think fc:install 即可,无需 --reset)
- 轮播表单:占位示例与帮助文案改春绿 105deg,并注明小程序侧文字为墨绿字
- 登录页:品牌色改春绿(--brand 白底可读 #04874A / --brand-bright #00E070 只做按钮面 + 墨绿字),
  品牌栏深绿渐变与光晕同步
- docs/05:fc_banner.color 取值约定与 §7.6 升级规则同步 v1.3.0
2026-10-15 22:14:33 +08:00

405 行
16 KiB
HTML
可执行文件

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<!DOCTYPE html>
<html lang="zh-cn">
<head>
{include file="common/meta" /}
<title>山间小仓 · 同城分类信息平台 — 后台登录</title>
<style type="text/css">
:root {
--brand: #04874a; /* 白底可读的绿字/描边(4.6:1) */
--brand-bright: #00e070; /* 品牌亮绿(与小程序 $fc-primary 同色号):只做「面」 */
--brand-ink: #04301e; /* 亮绿面上的字(8.2:1) */
--brand-dark: #046b3b;
--brand-deep: #023a21;
--accent: #ffb020;
--ink: #16241f;
--muted: #7b8a86;
--line: #e5ece9;
--card: #ffffff;
}
html, body { height: 100%; }
body {
margin: 0;
color: var(--ink);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
background: #f3f6f5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
.login-page {
min-height: 100vh;
display: flex;
align-items: stretch;
}
/* ============ 左侧品牌栏 ============ */
.brand-panel {
position: relative;
flex: 1 1 52%;
max-width: 56%;
color: #fff;
overflow: hidden;
background:
radial-gradient(900px 600px at 12% 8%, rgba(255, 176, 32, .18), transparent 55%),
radial-gradient(820px 700px at 92% 92%, rgba(0, 224, 112, .42), transparent 60%),
linear-gradient(152deg, #023a21 0%, #046b3b 50%, #04874a 115%);
}
.brand-panel::after {
content: "";
position: absolute;
inset: 0;
background-image:
radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.2px);
background-size: 26px 26px;
opacity: .5;
pointer-events: none;
}
.brand-inner {
position: relative;
z-index: 2;
height: 100%;
padding: 56px 60px;
display: flex;
flex-direction: column;
}
.brand-top { display: flex; align-items: center; gap: 14px; }
/* 品牌 LOGO:圆形徽标 / 圆外透明(assets/img/brand-logo.png) */
.brand-mark {
display: block;
width: 52px; height: 52px;
border-radius: 50%;
box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5);
}
.brand-word { line-height: 1.15; }
.brand-word b { display: block; font-size: 22px; font-weight: 700; letter-spacing: 3px; }
.brand-word span { display: block; font-size: 12px; letter-spacing: 4px; color: rgba(255, 255, 255, .62); margin-top: 4px; }
.brand-hero { margin-top: auto; margin-bottom: auto; padding: 40px 0; }
.brand-hero h1 {
margin: 0;
font-size: 40px;
line-height: 1.28;
font-weight: 800;
letter-spacing: 2px;
text-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.brand-hero h1 em { font-style: normal; color: var(--accent); }
.brand-hero p {
margin: 20px 0 0;
max-width: 420px;
font-size: 15px;
line-height: 1.9;
color: rgba(255, 255, 255, .78);
}
.brand-points { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 18px; }
.brand-points li { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.brand-points .ic {
flex: 0 0 auto;
width: 38px; height: 38px;
border-radius: 11px;
display: flex; align-items: center; justify-content: center;
background: rgba(255, 255, 255, .12);
border: 1px solid rgba(255, 255, 255, .18);
}
.brand-points .ic svg { width: 19px; height: 19px; }
.brand-foot { font-size: 12.5px; letter-spacing: 1px; color: rgba(255, 255, 255, .5); }
/* ============ 右侧表单区 ============ */
.form-panel {
flex: 1 1 48%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
padding: 40px 24px;
background:
radial-gradient(720px 480px at 82% -6%, rgba(14, 124, 102, .08), transparent 60%),
linear-gradient(180deg, #f7faf9 0%, #eef3f1 100%);
}
.login-card {
width: 100%;
max-width: 400px;
background: var(--card);
border: 1px solid rgba(14, 124, 102, .07);
border-radius: 20px;
padding: 40px 38px 26px;
box-shadow: 0 1px 2px rgba(16, 42, 36, .04), 0 26px 52px -26px rgba(6, 54, 44, .30), 0 10px 22px -18px rgba(6, 54, 44, .18);
animation: cardIn .55s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes cardIn {
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: none; }
}
.mobile-brand { display: none; }
.form-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 1px; color: var(--ink); }
.form-sub { margin: 8px 0 26px; font-size: 13.5px; color: var(--muted); letter-spacing: .5px; }
#login-form { margin: 0; }
#errtips {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
padding: 11px 14px;
font-size: 13px;
line-height: 1.5;
border-radius: 11px;
background: #fdf0ef;
color: #d6402f;
border: 1px solid #f7d5d0;
}
#errtips:empty { display: none; }
#errtips::before {
content: "!";
flex: 0 0 auto;
width: 17px; height: 17px;
border-radius: 50%;
background: #d6402f;
color: #fff;
font-size: 12px;
font-weight: 700;
line-height: 17px;
text-align: center;
}
.field { position: relative; }
#login-form .form-group { margin: 0 0 16px; }
.field .field-icon {
position: absolute;
left: 16px; top: 50%;
transform: translateY(-50%);
color: #9fb0ab;
font-size: 15px;
z-index: 3;
pointer-events: none;
transition: color .18s ease;
}
.field:focus-within .field-icon { color: var(--brand); }
#login-form .form-control {
height: 52px;
line-height: 52px;
padding: 0 16px 0 46px;
font-size: 14.5px;
color: var(--ink);
background: #f7faf9;
border: 1px solid var(--line);
border-radius: 13px;
box-shadow: none;
transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
#login-form .form-control::placeholder { color: #a7b6b1; }
#login-form .form-control:focus {
background: #fff;
border-color: var(--brand);
box-shadow: 0 0 0 4px rgba(14, 124, 102, .13);
}
#login-form .has-error .form-control {
border-color: #e05b52;
box-shadow: 0 0 0 4px rgba(224, 91, 82, .10);
}
.captcha-row { position: relative; }
.captcha-row .form-control { padding-right: 152px; }
.captcha-row .input-group-addon {
position: absolute;
right: 5px; top: 5px; bottom: 5px;
width: 140px;
display: flex; align-items: center; justify-content: center;
padding: 0;
background: #eef3f1;
border: none;
border-radius: 9px;
cursor: pointer;
overflow: hidden;
}
.captcha-row .input-group-addon img { height: 100%; width: auto; display: block; }
.keep-row { margin: 4px 0 22px; }
.keep-row label { font-size: 13px; color: var(--muted); cursor: pointer; font-weight: normal; margin: 0; -webkit-user-select: none; user-select: none; }
.keep-row input { margin-right: 7px; vertical-align: -1px; }
.login-btn {
width: 100%;
height: 52px;
font-size: 16px;
font-weight: 700;
letter-spacing: 8px;
text-indent: 8px;
color: var(--brand-ink) !important;
border: none;
border-radius: 13px;
background: linear-gradient(135deg, var(--brand-bright) 0%, #00c860 55%, #00b85c 100%);
box-shadow: 0 16px 30px -14px rgba(0, 168, 85, .75);
transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.login-btn:hover, .login-btn:focus {
filter: brightness(1.07);
box-shadow: 0 18px 34px -14px rgba(0, 168, 85, .9);
color: var(--brand-ink) !important;
outline: none;
}
.login-btn:active { transform: translateY(1px); }
.form-foot {
margin-top: 24px;
text-align: center;
font-size: 12px;
color: #aebbb7;
letter-spacing: .4px;
}
@media (max-width: 992px) {
.brand-panel { display: none; }
.form-panel { flex: 1 1 100%; }
.login-card { max-width: 420px; }
.mobile-brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}
.mobile-brand .mk {
display: block;
width: 46px; height: 46px;
border-radius: 50%;
box-shadow: 0 10px 20px -10px rgba(14, 124, 102, .55);
}
.mobile-brand b { font-size: 19px; letter-spacing: 2px; color: var(--ink); }
.mobile-brand span { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-top: 3px; }
}
@media (max-width: 480px) {
.form-panel { padding: 24px 14px; }
.login-card { padding: 30px 22px 22px; border-radius: 18px; }
.form-title { font-size: 21px; }
}
</style>
<!--@formatter:off-->
{if $background}
<style type="text/css">
body { background-image: url('{$background|htmlentities}'); background-size: cover; }
</style>
{/if}
<!--@formatter:on-->
</head>
<body>
<div class="login-page">
<!-- ===== 左侧品牌形象区 ===== -->
<aside class="brand-panel">
<div class="brand-inner">
<div class="brand-top">
<img class="brand-mark" src="__CDN__/assets/img/brand-logo.png" alt="山间小仓" width="52" height="52">
<div class="brand-word">
<b>山间小仓</b>
<span>SHANJIAN XIAOCANG</span>
</div>
</div>
<div class="brand-hero">
<h1>同城分类<em>信息平台</em></h1>
<p>一城一站,让同城的每一份需求与供给更快相遇。分类信息发布、同城商家服务、社区生活互助,尽在山间小仓。</p>
<ul class="brand-points">
<li>
<span class="ic"><svg viewBox="0 0 24 24" fill="none"><path d="M8 6h11M8 12h11M8 18h11M4 6h.01M4 12h.01M4 18h.01" stroke="#ffffff" stroke-width="1.9" stroke-linecap="round"/></svg></span>
分类信息 · 一站式发布与检索
</li>
<li>
<span class="ic"><svg viewBox="0 0 24 24" fill="none"><path d="M4 9.5 5.5 5h13L20 9.5M4 9.5h16M4 9.5V19h16V9.5M9.5 19v-5h5v5" stroke="#ffffff" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
同城商家 · 服务与口碑聚合
</li>
<li>
<span class="ic"><svg viewBox="0 0 24 24" fill="none"><path d="M12 20s-6.5-3.8-6.5-8.4A3.9 3.9 0 0 1 12 8.6a3.9 3.9 0 0 1 6.5 3c0 4.6-6.5 8.4-6.5 8.4Z" stroke="#ffffff" stroke-width="1.9" stroke-linejoin="round"/></svg></span>
社区互助 · 让生活更有温度
</li>
</ul>
</div>
<div class="brand-foot">© {:date('Y')} 山间小仓同城分类信息平台 · 保留所有权利</div>
</div>
</aside>
<!-- ===== 右侧登录表单区 ===== -->
<main class="form-panel">
<div class="login-card">
<div class="mobile-brand">
<img class="mk" src="__CDN__/assets/img/brand-logo.png" alt="山间小仓" width="46" height="46">
<span>
<b>山间小仓</b>
<span>同城分类信息平台</span>
</span>
</div>
<h2 class="form-title">欢迎回来</h2>
<p class="form-sub">登录「山间小仓同城分类信息平台」后台管理系统</p>
<form action="" method="post" id="login-form">
<!--@AdminLoginFormBegin-->
<div id="errtips"></div>
{:token()}
<div class="field form-group">
<span class="field-icon glyphicon glyphicon-user" aria-hidden="true"></span>
<input type="text" class="form-control" id="pd-form-username" placeholder="请输入用户名" name="username" autocomplete="off" value="" data-rule="{:__('Username')}:required;username"/>
</div>
<div class="field form-group">
<span class="field-icon glyphicon glyphicon-lock" aria-hidden="true"></span>
<input type="password" class="form-control" id="pd-form-password" placeholder="请输入密码" name="password" autocomplete="off" value="" data-rule="{:__('Password')}:required;password"/>
</div>
<!--@CaptchaBegin-->
{if $Think.config.fastadmin.login_captcha}
<div class="captcha-row field form-group">
<span class="field-icon glyphicon glyphicon-option-horizontal" aria-hidden="true"></span>
<input type="text" name="captcha" class="form-control" placeholder="请输入验证码" data-rule="{:__('Captcha')}:required;length({$Think.config.captcha.length|htmlentities})" autocomplete="off"/>
<span class="input-group-addon">
<img src="{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha" alt="点击刷新" title="点击刷新验证码" onclick="this.src = '{:rtrim('__PUBLIC__', '/')}/index.php?s=/captcha&r=' + Math.random();"/>
</span>
</div>
{/if}
<!--@CaptchaEnd-->
{if $keeyloginhours>0}
<div class="keep-row checkbox">
<label for="keeplogin" data-toggle="tooltip" title="{:__('The duration of the session is %s hours', $keeyloginhours)}">
<input type="checkbox" name="keeplogin" id="keeplogin" value="1"/>
记住登录状态
</label>
</div>
{/if}
<button type="submit" class="btn login-btn">{:__('Sign in')}</button>
<!--@AdminLoginFormEnd-->
</form>
<div class="form-foot">© {:date('Y')} 山间小仓同城分类信息平台</div>
</div>
</main>
</div>
{include file="common/script" /}
</body>
</html>