/* ============================================================
   飞羽互娱演示系统 · 老板端 / 陪玩端 统一布局层
   以管理端为模板：左对齐页头、1240 内容宽、圆角卡片、克制动效
   ============================================================ */

:root {
  --fy-page-max: 1240px;
  --fy-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 内容骨架：居中等宽、统一留白 ---------- */
.boss-layout-body,
.player-layout-body {
  background: radial-gradient(140% 70% at 50% -10%, #ffffff 0%, #f2f7ff 45%, #e8f0ff 100%) !important;
  min-height: 100vh;
}

.boss-layout-body > div:not(.nav-header),
.player-layout-body > div:not(.nav-header),
.boss-layout-body > main,
.player-layout-body > main {
  max-width: var(--fy-page-max);
  margin: 0 auto !important;
  padding: 6px 28px 48px !important;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- 页头：左对齐、去返回圆钮、标题加品牌竖条 ---------- */
.nav-header {
  padding: 14px 28px 4px !important;
  background: transparent !important;
}
.nav-bar {
  max-width: var(--fy-page-max) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  min-height: 44px;
}
.nav-back { display: none !important; }
.nav-title {
  position: static !important;
  transform: none !important;
  text-align: left !important;
  margin: 0 !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: .4px;
  color: #0f3c7f !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-title::before {
  content: "";
  width: 4px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, #1956b0, #94bafa);
  flex: none;
}

/* ---------- 老板端首页：把大 Logo 区改为品牌横幅卡 ---------- */
.home-page { padding-top: 8px !important; }

.home-logo-area {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 0 !important;
  padding: 26px 26px 24px !important;
  margin: 0 0 22px !important;
  background:
    radial-gradient(120% 160% at 0% 0%, #f1f6ff 0%, rgba(241,246,255, 0) 60%),
    #ffffff !important;
  border: 1px solid #e0ebff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(12,53,113, .07);
  overflow: hidden;
}
.home-logo-area::after {
  content: "";
  position: absolute; right: -40px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(148,186,250, .22) 0%, rgba(148,186,250, 0) 70%);
  pointer-events: none;
}
.home-logo-area img {
  width: 58px !important; height: 58px !important;
  max-width: 58px !important; max-height: 58px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(42,106,202, .18);
  flex: none;
  order: -1;
}
.home-club-name {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: .8px;
  color: #0f3c7f !important;
  margin: 0 !important;
  text-align: left !important;
  line-height: 1.2;
}
.home-club-name::after {
  content: "飞羽互娱演示系统 · 老板中心";
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .4px;
  color: #4984de;
}

/* ---------- 区块标题 ---------- */
.home-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 12px !important;
  font-size: 15px !important;
  font-weight: 700;
  color: #0f3c7f;
}
.home-section-title::before {
  content: "";
  width: 4px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #1956b0, #94bafa);
}

/* ---------- 首页快捷入口卡 ---------- */
.home-quick-nav {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.home-quick-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px !important;
  background: #ffffff;
  border: 1px solid #e0ebff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(12,53,113, .06);
  transition: transform .16s var(--fy-ease), box-shadow .16s var(--fy-ease);
}
.home-quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(12,53,113, .1);
}
.home-quick-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #ebf2ff, #f2f7ff);
  border: 1px solid #dbe8ff;
  color: #2a6aca;
  font-size: 18px;
  flex: none;
}
.home-quick-label { font-size: 15px; font-weight: 700; color: #0f3c7f; }
.home-quick-desc { font-size: 12px; color: #4984de; margin-top: 3px; }
.home-quick-arrow { margin-left: auto; color: #b1cdff; }

/* ---------- 订单 / 账单：统计条 + 筛选条做成卡片 ---------- */
.order-page .stats-bar,
.bill-page .stats-bar,
.me-page .stats-bar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start !important;
  gap: 64px;
  padding: 20px 26px !important;
  margin: 4px 0 16px !important;
  background: #ffffff !important;
  border: 1px solid #e0ebff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(12,53,113, .07);
}
.order-page .stats-bar > *,
.bill-page .stats-bar > * { text-align: left !important; }
.order-page .stats-bar strong,
.bill-page .stats-bar strong { font-size: 26px !important; color: #0f3c7f; font-weight: 800; }

.order-page .filter-bar,
.bill-page .filter-bar {
  padding: 14px 18px !important;
  margin: 0 0 14px !important;
  background: #ffffff !important;
  border: 1px solid #e0ebff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(12,53,113, .05);
}

.order-page .stats-item,
.bill-page .stats-item { flex: 0 0 auto !important; width: auto !important; }
.order-page .order-list { position: relative; z-index: 1; margin-top: 12px !important; }

/* ---------- 空状态做成卡片 ---------- */
.order-list:empty,
.bill-page .empty,
.order-page .empty,
.ant-empty {
  border-radius: 14px;
}
.order-page .order-list {
  background: #ffffff;
  border: 1px solid #e0ebff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(12,53,113, .07);
  padding: 8px 16px;
  min-height: 120px;
}

/* ---------- 通用卡片类补齐 ---------- */
.order-card,
.card-item,
.list-card,
.panel-card {
  background: #ffffff;
  border: 1px solid #e0ebff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(12,53,113, .06) !important;
  transition: box-shadow .16s var(--fy-ease);
}
.order-card:hover,
.card-item:hover,
.list-card:hover { box-shadow: 0 12px 26px rgba(12,53,113, .1) !important; }

/* ---------- 侧栏：分组标题更像管理端 ---------- */
.app-sider-group-title {
  font-size: 11.5px !important;
  letter-spacing: 1.2px !important;
  color: #70a1f0 !important;
  padding: 16px 16px 6px !important;
}
.app-sider-dot {
  width: 6px !important; height: 6px !important;
  border-radius: 2px !important;
  background: #a2c3fd !important;
  margin-right: 2px;
}
.app-sider-item.active .app-sider-dot { background: rgba(255,255,255, .7) !important; }

/* ---------- 动效：只做 opacity，列表不逐行动画 ---------- */
.boss-layout-body > div:not(.nav-header),
.player-layout-body > div:not(.nav-header) { animation: fyPageIn .16s linear both; }
@keyframes fyPageIn { from { opacity: 0; } to { opacity: 1; } }

@media (hover: none), (max-width: 900px) {
  .home-quick-item:hover { transform: none; }
  .boss-layout-body > div:not(.nav-header),
  .player-layout-body > div:not(.nav-header) { padding: 4px 14px 32px !important; }
  .home-quick-nav { grid-template-columns: 1fr; }
}
