/* ===== 电子福利商城后台 · 主题样式 =====
 * 参考: 后台参考样式图.jpg (Ele Admin Plus 风格)
 * 主色: #2d8cf0 (蓝) · 辅助: #f5f7fa 背景 · #fff 卡片
 */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.admin-body { background: #f5f7fa; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: #2c3e50; font-size: 14px; }
a { color: inherit; text-decoration: none; }
.muted { color: #909399; font-size: 12px; }

/* ===== 整体布局 ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sider { width: 220px; background: #fff; border-right: 1px solid #ebeef5; flex-shrink: 0; overflow-y: auto; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ===== 侧边栏 ===== */
.sider-logo { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #ebeef5; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #2d8cf0, #5cadff); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.logo-text { font-weight: 600; font-size: 15px; color: #2c3e50; line-height: 1.2; display: flex; flex-direction: column; }
.logo-text small { font-size: 10px; color: #b4bccc; font-weight: 400; letter-spacing: 1px; margin-top: 2px; }

.sider-menu { list-style: none; padding: 8px 0; margin: 0; }
.sider-menu .menu-group-title { padding: 14px 20px 6px; font-size: 11px; color: #b4bccc; letter-spacing: 1px; }
.sider-menu .menu-item a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #5e6d82; font-size: 14px; border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.sider-menu .menu-item a:hover { background: #f5f7fa; color: #2d8cf0; }
.sider-menu .menu-item a .layui-icon { font-size: 16px; }
.sider-menu .menu-item.is-active a { background: #ecf5ff; color: #2d8cf0; border-left-color: #2d8cf0; font-weight: 500; }

/* ===== 顶栏 ===== */
.admin-topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; background: #fff; border-bottom: 1px solid #ebeef5; padding: 0 20px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-home { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #909399; border-radius: 6px; }
.topbar-home:hover { background: #f5f7fa; color: #2d8cf0; }
.breadcrumb { font-size: 13px; color: #909399; }
.breadcrumb .bc-current { color: #2c3e50; }
.breadcrumb .bc-sep { margin: 0 6px; color: #c0c4cc; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.topbar-user { color: #5e6d82; display: flex; align-items: center; gap: 4px; }
.topbar-logout { color: #909399; }
.topbar-logout:hover { color: #f56c6c; }

/* ===== 内容区 ===== */
.admin-content { padding: 20px; flex: 1; overflow: auto; }

/* ===== Dashboard ===== */
.dashboard-greeting { background: #fff; border-radius: 10px; padding: 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.greeting-left { display: flex; align-items: center; gap: 16px; }
.greeting-left .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #2d8cf0, #5cadff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.greeting-left h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.greeting-right { display: flex; gap: 18px; }
.stat-pill { text-align: center; padding: 4px 18px; border-left: 1px solid #ebeef5; }
.stat-pill:first-child { border-left: none; }
.stat-pill-label { display: block; color: #909399; font-size: 12px; margin-bottom: 4px; }
.stat-pill strong { font-size: 20px; color: #2c3e50; }

.quick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 20px; }
.quick-card { background: #fff; border-radius: 10px; padding: 18px 12px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.quick-card .layui-icon { font-size: 22px; color: #2d8cf0; }
.quick-card span { font-size: 13px; color: #5e6d82; }

.dashboard-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.dash-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #ebeef5; }
.dash-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 16px 20px; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; font-size: 13px; }
.timeline .time { color: #909399; min-width: 50px; }
.goal { padding: 32px 20px; text-align: center; }
.goal-ring { width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; border: 6px solid #ecf5ff; color: #2d8cf0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }

@media (max-width: 1200px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-row { grid-template-columns: 1fr; }
}

/* ===== 登录页 ===== */
body.login-body { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #2d8cf0 100%); }
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; border-radius: 16px; padding: 44px 40px 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo-mark { display: inline-flex; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #2d8cf0, #5cadff); color: #fff; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.login-brand h1 { margin: 0; font-size: 22px; font-weight: 700; color: #1a1a2e; }
.login-brand p { margin: 4px 0 0; font-size: 13px; color: #909399; }

.login-form .layui-form-item { margin-bottom: 18px; }
.login-form label { display: block; font-size: 13px; color: #5e6d82; margin-bottom: 6px; font-weight: 500; }
.login-form .layui-input { height: 42px; line-height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid #dcdfe6; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.login-form .layui-input:focus { border-color: #2d8cf0; box-shadow: 0 0 0 3px rgba(45,140,240,.12); outline: none; }
.login-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #909399; }
.checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.link-muted { color: #909399; }
.link-muted:hover { color: #2d8cf0; }
.login-submit { height: 44px; line-height: 44px; font-size: 15px; background: linear-gradient(135deg, #2d8cf0, #5cadff); border: none; border-radius: 8px; margin-top: 8px; letter-spacing: 4px; }
.login-submit:hover { opacity: .92; }
.login-footer { text-align: center; font-size: 12px; color: #b4bccc; margin-top: 24px; }
