:root {
  --brand: #1a56db;
  --brand-dark: #1442ab;
  --brand-light: #e8effc;
  --accent: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f5f7fb;
}

body { color: var(--ink); background: #fff; font-size: 15px; }
a { text-decoration: none; }

/* ---------- 前台导航（抽屉式） ---------- */
.front-body { background: #fff; padding-top: 56px; }
/* 用 .navbar.front-topbar 提高优先级，避免被后台 .app-topbar 的蓝色底覆盖 */
.navbar.front-topbar { background: #fff; box-shadow: 0 1px 12px rgba(16,24,40,.06); }
.navbar.front-topbar .front-toggle { background: #fff; border: 1px solid #e2e6ee; color: var(--ink); font-size: 1.2rem; line-height: 1; padding: .3rem .55rem; border-radius: 10px; }
.navbar.front-topbar .front-toggle:hover { background: var(--bg); }
.navbar.front-topbar .front-brand { font-weight: 800; color: var(--brand); font-size: 1.2rem; margin-right: 0; white-space: nowrap; }
/* 前台抽屉在所有尺寸下都默认隐藏，点击展开（不常驻） */
.front-sidebar { transform: translateX(-100%) !important; box-shadow: none !important; }
.front-sidebar.show { transform: translateX(0) !important; box-shadow: 0 0 34px rgba(16,24,40,.18) !important; }
.front-sidebar .sidebar-close { display: block; }

/* ---------- 前台导航（桌面端，保留样式供历史页面兼容） ---------- */
.site-nav { background: #fff; box-shadow: 0 1px 12px rgba(16,24,40,.06); padding: .6rem 0; }
.site-nav .navbar-brand { font-weight: 700; color: var(--brand); font-size: 1.25rem; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }

/* ---------- 首屏 ---------- */
.hero { background: linear-gradient(135deg, #1a56db 0%, #2f7bf6 55%, #4f9bff 100%); color: #fff; padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero:after { content: ""; position: absolute; inset: auto -10% -60% 60%; height: 420px; background: rgba(255,255,255,.08); transform: rotate(18deg); border-radius: 40px; }
.hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: .5px; }
.hero .lead { opacity: .92; }
.hero-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 1.5rem; box-shadow: 0 18px 45px rgba(9,20,50,.18); }

/* ---------- 通用区块 ---------- */
.section { padding: 3.5rem 0; }
.section-title { font-weight: 800; font-size: 1.5rem; margin-bottom: .4rem; }
.section-sub { color: var(--muted); margin-bottom: 2rem; }

.product-card { border: 1px solid #eceff5; border-radius: 14px; transition: .25s; height: 100%; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,24,40,.1); border-color: #c9d9fb; }
.product-card .rate { color: #d92d20; font-weight: 800; }
.product-card .rate small { font-size: .75rem; font-weight: 600; }
.tag-chip { display: inline-block; background: var(--brand-light); color: var(--brand-dark); border-radius: 20px; padding: .1rem .6rem; font-size: .75rem; margin: 0 .3rem .3rem 0; }

.step-item { text-align: center; }
.step-no { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin: 0 auto .6rem; display: flex; align-items: center; justify-content: center; line-height: 1; text-align: center; }

.feature-box { background: var(--bg); border-radius: 14px; padding: 1.4rem; height: 100%; }
.feature-box i { font-size: 1.6rem; color: var(--brand); }

.site-footer { background: #16233c; color: #d7dbe5; padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer h6 { color: #fff; }

/* ---------- 后台 ---------- */
.app-body { background: var(--bg); padding-top: 56px; }
.app-topbar { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1060; background: var(--brand); box-shadow: 0 1px 8px rgba(16,24,40,.15); padding: 0 1rem; }
.app-topbar .navbar-brand { font-weight: 700; margin-right: 0; }
.sidebar-toggle { border: none; font-size: 1.15rem; line-height: 1; padding: .25rem .5rem; }
.sidebar-close { position: absolute; top: .55rem; right: .55rem; border: none; background: transparent; color: var(--muted); font-size: 1.05rem; display: none; }
.sidebar-close:hover { color: var(--ink); }
.app-sidebar { position: fixed; top: 56px; left: 0; bottom: 0; width: 230px; z-index: 1055; background: #fff; border-right: 1px solid #eceef3; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; }
.app-sidebar.show { transform: translateX(0); box-shadow: 0 0 34px rgba(16,24,40,.18); }
.sidebar-mask { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; z-index: 1050; background: rgba(16,24,40,.45); display: none; }
.sidebar-mask.show { display: block; }
.app-sidebar .sidebar-title { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: .9rem 1.1rem .3rem; }
.app-sidebar .nav-link { color: var(--ink); padding: .55rem 1.1rem; border-radius: 8px; margin: .1rem .5rem; font-size: .92rem; }
.app-sidebar .nav-link:hover { background: var(--bg); }
.app-sidebar .nav-link.active { background: var(--brand); color: #fff; }
.app-sidebar .nav-link i { margin-right: .5rem; }
.app-main { padding: 1.2rem 1.2rem 3rem; }

/* 桌面端：左侧固定常驻，隐藏抽屉控件 */
@media (min-width: 992px) {
  .app-sidebar { transform: none; box-shadow: none; }
  .app-main { margin-left: 230px; padding: 1.4rem 1.6rem 3rem; }
  .sidebar-toggle { display: none !important; }
  .sidebar-close { display: none !important; }
}
@media (max-width: 991.98px) {
  .sidebar-close { display: block; }
}

.stat-card { border-radius: 14px; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

.card { border: 1px solid #eceef3; border-radius: 14px; }
.card-header { background: #fff; border-bottom: 1px solid #f0f2f7; font-weight: 600; }
.table > :not(caption) > * > * { padding: .65rem .75rem; vertical-align: middle; }
.table thead th { color: var(--muted); font-weight: 600; font-size: .85rem; }

.page-title { font-weight: 700; font-size: 1.25rem; margin-bottom: .2rem; }
.page-desc { color: var(--muted); font-size: .88rem; }

.upload-preview { max-width: 100%; border-radius: 10px; border: 1px solid #e5e7eb; }
.thumb { width: 88px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid #e5e7eb; }
.timeline { list-style: none; padding-left: 1.2rem; border-left: 2px solid #e6e9f0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1rem; }
.timeline li:before { content: ""; position: absolute; left: -1.65rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

.small-muted { color: var(--muted); font-size: .82rem; }
.flash-wrap { position: sticky; top: 60px; z-index: 1050; }
.flash-wrap .alert { border-radius: 10px; box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.badge { font-weight: 500; }
.auth-card { max-width: 460px; margin: 3rem auto; }
