/* ============================================================
   FleetFlow · 页面级样式（Landing / Login / 各业务页微调）
   ============================================================ */

/* ============ Landing Page ============ */
.ff-landing { background: #fff; }

.ff-lnav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ff-border);
}
.ff-lnav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ff-text); }
.ff-lnav .brand .ff-brand-mark { width: 32px; height: 32px; }
.ff-lnav .nav-link { color: var(--ff-text-secondary); font-size: 14px; padding: 8px 14px; }
.ff-lnav .nav-link:hover { color: var(--ff-primary); }

/* —— 工作室署名 —— */
.ff-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--ff-border); border-radius: 999px;
  padding: 6px 16px 6px 7px; font-size: 13px; color: var(--ff-muted);
  box-shadow: var(--ff-shadow);
}
.ff-eyebrow img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.ff-eyebrow b { color: var(--ff-text); font-weight: 600; }
.ff-byline {
  font-size: 10.5px; font-weight: 600; color: var(--ff-faint);
  border: 1px solid var(--ff-border); border-radius: 999px;
  padding: 2px 8px; margin-left: 6px; letter-spacing: 0.02em; line-height: 1.5;
  white-space: nowrap;
}

.ff-hero {
  padding: 88px 0 60px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}
.ff-hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.22; }
@media (max-width: 767.98px) {
  .ff-hero { padding: 52px 0 40px; }
  .ff-hero h1 { font-size: 31px; }
  .ff-mock-side { display: none; }
  .ff-mock-body { height: 300px; }
  .ff-mock-panel { display: none; }
}
.ff-hero h1 .hl { color: var(--ff-primary); }
.ff-hero .lead-txt { font-size: 17px; color: var(--ff-muted); max-width: 640px; }
.ff-hero-cta .btn { padding: 9px 26px; font-size: 15px; border-radius: 9px; }
.ff-hero-badges { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ff-muted); font-size: 13px; }
.ff-hero-badges .hb { display: inline-flex; align-items: center; gap: 6px; }
.ff-hero-badges .hb svg { width: 15px; height: 15px; color: var(--ff-success); }

.ff-section-title { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }
.ff-section-sub { color: var(--ff-muted); font-size: 14.5px; }

.ff-feature-card {
  border: 1px solid var(--ff-border); border-radius: 13px;
  padding: 22px; height: 100%;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ff-feature-card:hover { box-shadow: var(--ff-shadow-lg); transform: translateY(-3px); }
.ff-feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--ff-primary-soft); color: var(--ff-primary);
  display: grid; place-items: center; margin-bottom: 14px;
}
.ff-feature-icon svg { width: 20px; height: 20px; }
.ff-feature-card h5 { font-size: 15.5px; font-weight: 700; }
.ff-feature-card p { font-size: 13px; color: var(--ff-muted); margin-bottom: 0; }

/* —— 伪调度中心截图 —— */
.ff-mockwin {
  border: 1px solid var(--ff-border); border-radius: 15px;
  overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(15, 23, 42, 0.07);
}
.ff-mockwin-bar {
  height: 40px; background: #f1f5f9;
  border-bottom: 1px solid var(--ff-border);
  display: flex; align-items: center; gap: 7px; padding: 0 16px;
}
.ff-mockwin-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.ff-mockwin-bar .url {
  margin-left: 14px; background: #fff; border: 1px solid var(--ff-border);
  border-radius: 6px; font-size: 11.5px; color: var(--ff-muted);
  padding: 2px 40px;
}
.ff-mock-body { display: flex; height: 420px; }
.ff-mock-side { width: 158px; background: var(--ff-sidebar-bg); padding: 14px 12px; flex: none; }
.ff-mock-side .ms-brand { height: 14px; width: 84px; border-radius: 4px; background: #24344d; margin-bottom: 20px; }
.ff-mock-side .ms-item { height: 11px; border-radius: 4px; background: #223049; margin-bottom: 13px; }
.ff-mock-side .ms-item.on { background: var(--ff-primary); width: 78%; }
.ff-mock-side .ms-gap { height: 14px; }
.ff-mock-main { flex: 1; background: #f6f8fb; padding: 14px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ff-mock-stats { display: flex; gap: 10px; flex: none; }
.ff-mock-stat { flex: 1; background: #fff; border: 1px solid var(--ff-border); border-radius: 9px; padding: 9px 12px; }
.ff-mock-stat .msl { height: 7px; width: 46px; border-radius: 3px; background: #e2e8f0; margin-bottom: 8px; }
.ff-mock-stat .msv { height: 15px; width: 58px; border-radius: 4px; background: #cbd5e1; }
.ff-mock-map {
  position: relative; flex: 1;
  background: #e9f0f8; border: 1px solid var(--ff-border); border-radius: 10px;
  overflow: hidden;
}
.ff-mock-map .ff-mock-route { fill: none; stroke: #93b4d8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ff-mock-map .ff-mock-city { fill: #fff; stroke: #64748b; stroke-width: 2.5; }
.ff-mock-map .ff-mock-citylbl { font-size: 11px; fill: #475569; font-weight: 600; }
.ff-mock-map .ff-mock-truck { fill: var(--ff-primary); stroke: #fff; stroke-width: 2; }
.ff-mock-panel { width: 210px; background: #fff; border: 1px solid var(--ff-border); border-radius: 10px; padding: 10px; flex: none; }
.ff-mock-panel .mp-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #f1f5f9; }
.ff-mock-panel .mp-row:last-child { border-bottom: none; }
.ff-mock-panel .mp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ff-mock-panel .mp-line { height: 8px; border-radius: 3px; background: #e2e8f0; }

.ff-landing-footer { border-top: 1px solid var(--ff-border); padding: 30px 0 34px; color: var(--ff-muted); font-size: 13px; background: #fff; }

/* ============ Login ============ */
.ff-login-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(8, 145, 178, 0.08), transparent 60%),
    #f4f6fa;
  padding: 20px;
}
.ff-login-card {
  width: 410px; max-width: 94vw;
  background: #fff; border: 1px solid var(--ff-border);
  border-radius: 16px; box-shadow: var(--ff-shadow-lg);
  padding: 36px 36px 28px;
}
.ff-login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; text-align: center; }
.ff-login-brand .ff-brand-mark { width: 46px; height: 46px; border-radius: 12px; }
.ff-login-brand .ff-brand-mark svg { width: 25px; height: 25px; }
.ff-login-brand h1 { font-size: 21px; font-weight: 700; margin: 0; }
.ff-login-brand p { color: var(--ff-muted); font-size: 13px; margin: 0; }
.ff-login-hint {
  background: var(--ff-primary-soft);
  border: 1px dashed #b6ccf7; border-radius: 9px;
  color: #3b5bab; font-size: 12.5px;
  padding: 9px 13px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ff-login-hint code { color: #1d4ed8; font-family: var(--ff-mono); }
.ff-login-foot { text-align: center; color: var(--ff-faint); font-size: 12px; margin-top: 18px; }
.ff-login-alert { font-size: 12.5px; padding: 7px 12px; }

/* ============ 业务页面微调 ============ */
/* 调度总览 */
.ff-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1199.98px) { .ff-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .ff-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* 卡片等高填充（地图卡与列表面板对齐） */
.ff-card.h-100 { display: flex; flex-direction: column; }
.ff-card.h-100 .card-body { flex: 1 1 auto; min-height: 0; }
.ff-map-flex { flex: 1 1 auto; position: relative; min-height: 480px; }
/* 绝对定位填充，避免百分比高度在 flex 中形成反馈循环 */
.ff-map-flex > .ff-map-wrap { position: absolute; inset: 0; height: auto; }

.ff-live-panel .card-body { padding: 0; display: flex; flex-direction: column; }
.ff-live-panel .ff-live-list { flex: 1 1 auto; max-height: 560px; }
.ff-map-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 实时监控 */
.ff-monitor-list { height: calc(100vh - 230px); min-height: 420px; }
.ff-monitor-map .ff-map-wrap { height: calc(100vh - 176px); min-height: 460px; }

/* 数据分析 */
.ff-analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 1199.98px) { .ff-analytics-grid { grid-template-columns: 1fr; } }

/* 设置 */
.ff-settings-wrap { max-width: 860px; }

/* 车辆详情头部 */
.ff-veh-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ff-veh-plate-badge {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--ff-primary-soft); color: var(--ff-primary);
  display: grid; place-items: center; flex: none;
}
.ff-veh-plate-badge svg { width: 26px; height: 26px; }
