* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e8edf4;
  --primary: #2563eb;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* 登录页 */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, #eef3ff 0%, #f5f7fb 55%, #eefaf6 100%); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; box-shadow: 0 12px 40px rgba(30,41,59,.08); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.brand-name { font-size: 16px; font-weight: 600; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.login-title { font-size: 24px; margin-top: 34px; font-weight: 650; }
.login-hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
.alert { margin-top: 18px; padding: 11px 14px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; font-size: 13px; }
.field-label { display: block; font-size: 13px; font-weight: 500; margin: 28px 0 8px; }
.field-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.btn-primary { width: 100%; height: 46px; margin-top: 18px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: #1d4ed8; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }

/* 导航首页 */
.wrap { max-width: 1000px; margin: 0 auto; padding: 28px 24px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.logout { font-size: 13px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.logout:hover { color: var(--ink); }
.hero { margin: 44px 0 30px; }
.hero h1 { font-size: 30px; font-weight: 650; letter-spacing: -.5px; }
.hero p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; display: flex; align-items: flex-start; gap: 18px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(30,41,59,.10); }
.card-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 26px; height: 26px; }
.card-body h2 { font-size: 17px; font-weight: 600; }
.card-body p { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.5; }
.card-arrow { position: absolute; right: 22px; top: 24px; color: var(--line); font-size: 20px; transition: color .18s, transform .18s; }
.card:hover .card-arrow { color: var(--accent); transform: translateX(3px); }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 48px; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 25px; }
  .login-card { padding: 32px 26px; }
}
